OptionalliteralIf true, treat empty arrays [] as literal empty arrays that only match
arrays with zero elements. When false, empty arrays match any array.
OptionalliteralIf true, treat empty objects {} as literal empty objects that only
match objects with zero own properties
OptionalliteralIf true, use literal schema for primitive values instead of type schema
OptionalliteralIf true, treat RegExp literals as RegExp literals; otherwise treat as
strings and attempt match
OptionalliteralIf true, treat arrays as tuples wherever possible.
Implies false for noMixedArrays.
OptionalmaxMaximum nesting depth to prevent stack overflow
OptionalnoWhether to allow mixed types in arrays
If literalTuples is true, this option is ignored and treated as
false.
OptionalpermissiveIf true, use property checking that works on any value type (functions,
arrays, etc.), not just plain objects. Properties are checked using the
in operator which works with non-enumerable and inherited properties.
Only applies when strict is false. When strict is true, standard
Zod object validation is used which requires exact type matching.
OptionalstrictIf true, will disallow unknown properties in parsed objects
Options for valueToSchema