function validateQuery validateQuery(schema: unknown): MiddlewareFunction Validate query parameters against a schema. Delegates to the configured IValidationService so the error format matches the plugin registration. Parameters schema: unknown The schema (must expose safeParse) Return Type MiddlewareFunction A middleware function