InternalInternaldeferredList of deferred initializers.
InternaltraitsStores identifiers for the set of traits implemented by this schema.
Optional InternalpropA set of literal discriminators used for the fast path in discriminated unions.
InternalconstrThe constructor function of this schema.
InternalbagA catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.
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
Schema definition.
InternaloptinInternaloptoutInternalisstThe set of issues this schema might throw during type checking.
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?
InternalpatternThis flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().
InternalParses input and runs all checks (refinements).
InternalParses input, doesn't run checks.
The
@zod/coreversion of this schema