InternalThe @zod/core version of this schema
InternaldeferredList of deferred initializers.
InternaltraitsStores identifiers for the set of traits implemented by this schema.
Optional InternaloptinOptional InternaloptoutOptional 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?
Optional InternalpropA set of literal discriminators used for the fast path in discriminated unions.
InternalconstrThe constructor function of this schema.
OptionaltoAn optional method used to override toJSONSchema logic.
Optional InternalparentThe parent of this schema. Only set during certain clone operations.
InternaloutputThe inferred output type
InternalinputThe inferred input type
InternalbagA catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.
Schema definition.
InternalParses input and runs all checks (refinements).
InternalParses input, doesn't run checks.
The set of issues this check might throw.