Μετάβαση στο περιεχόμενο

ZodValidationOptions

Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.

Defined in: packages/pipeline-zod/src/zod-validation.behavior.ts:66

Options of ZodValidationBehavior.

optional schema?: 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.