Internal
Internal
deferredList of deferred initializers.
Internal
traitsStores identifiers for the set of traits implemented by this schema.
Optional
Internal
optinOptional
Internal
optoutOptional
Internal
valuesThe set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
Defined on: enum, const, literal, null, undefined Passthrough: optional, nullable, branded, default, catch, pipe Todo: unions?
Optional
Internal
propA set of literal discriminators used for the fast path in discriminated unions.
Internal
constrThe constructor function of this schema.
Optional
toAn optional method used to override toJSONSchema
logic.
Optional
Internal
parentThe parent of this schema. Only set during certain clone operations.
Internal
outputThe inferred output type
Internal
inputThe inferred input type
Schema definition.
Internal
bagA catchall object for bag metadata related to this schema. Commonly modified by checks using onattach
.
Internal
Parses input and runs all checks (refinements).
Internal
Parses input, doesn't run checks.
The
@zod/core
version of this schema