InternalInternalbagInternalconstrThe constructor function of this schema.
Schema definition.
InternaldeferredList of deferred initializers.
InternalinputThe inferred input type
The set of issues this check might throw.
InternalisstThe set of issues this schema might throw during type checking.
Optional InternaloptinOptional InternaloptoutInternaloutputThe inferred output type
Optional InternalparentThe parent of this schema. Only set during certain clone operations.
InternalpatternThis flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().
Optional InternalpropA set of literal discriminators used for the fast path in discriminated unions.
OptionaltoAn optional method used to override toJSONSchema logic.
InternaltraitsStores identifiers for the set of traits implemented by this schema.
Optional InternalvaluesThe 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?
The @zod/core version of this schema
InternalParses input, doesn't run checks.
InternalParses input and runs all checks (refinements).
A catchall object for bag metadata related to this schema. Commonly modified by checks using
onattach.