ZodValidationOptions
Defined in: packages/pipeline-zod/src/zod-validation.behavior.ts:66
Options of ZodValidationBehavior.
Properties
Section titled “Properties”schema?
Section titled “schema?”
optionalschema?:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>
Defined in: packages/pipeline-zod/src/zod-validation.behavior.ts:73
The schema of the input. Given, the input is parsed into a copy that the handler
receives, so the caller’s value never changes; this is how a wrapped function is
validated (its arguments as a z.tuple when it takes several). Absent, the schema
attached to the request class applies, in place.