gatex
    Preparing search index...

    Function Schema

    • Attaches a Zod validation schema to a repository method.

      Parameters

      • schema: RequestSchemaType

        The Zod schema or an object of schemas for validating body, query, params, and headers.

      Returns (target: any, propertyKey: string | symbol) => void

      A method decorator.