docs: def validate_config(data: dict) -> dict:
          """Convert to MIP config format."""
          errors = ConfigSchema().validate(data)
          if errors:
              for field, messages in errors.items():
                  if isinstance(messages, dict):
                      for level, sample_errors in messages.items():
                          sample_id = data['samples'][level]['sample_id']
                          for sub_field, sub_messages in sample_errors.items():
                              LOG.error(f"{sample_id} -> {sub_field}: {', '.join(sub_messages)}")
                  else:
                      LOG.error(f"{field}: {', '.join(messages)}")
              raise ConfigError('invalid config input', errors=errors)