Internal
Internal
Internal
Parses input, doesn't run checks.
The @zod/core
version of this schema
Internal
deferredList of deferred initializers.
Internal
traitsStores identifiers for the set of traits implemented by this schema.
Internal
patternThis flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().
Internal
constrThe constructor function of this schema.
Internal
bagA catchall object for bag metadata related to this schema. Commonly modified by checks using onattach
.
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
isstThe set of issues this schema might throw during type checking.
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?
Internal
optinInternal
optoutInternal
propA set of literal discriminators used for the fast path in discriminated unions.
Parses input and runs all checks (refinements).