Setu-TS
    Preparing search index...

    Function ValidateQuery

    • Attaches a query parameter schema to the decorated route handler.

      The schema is enforced (invalid queries answered with 400) when a CAPABILITIES.VALIDATION provider is registered and enforceSchemas is not false; otherwise it remains description-only. See the module documentation.

      Parameters

      • schema: unknown

        Validation schema (Zod schema by convention)

      Returns SetuMethodDecorator

      A method decorator

      0.1.0