Type Alias RouteOptions<BodySchema, ResponseSchema>

RouteOptions<BodySchema, ResponseSchema>: {
    bodySchema?: BodySchema;
    openApi?: OpenAPIV3.OperationObject;
    responseSchema?: ResponseSchema;
}

Defines the different options that can be set for a route.

Type Parameters

  • BodySchema extends ZodSchema<any> = ZodSchema<any>
  • ResponseSchema extends ZodSchema<any> = ZodSchema<any>