Readonly
input: undefined | Record<string, unknown>Readonly
keys: string[]Readonly
code: "unrecognized_keys"Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Readonly
code: "invalid_type"Readonly
expected: Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
maximum: number | bigintReadonly
input: unknownThe input data
Readonly
code: "too_big"Readonly
origin: Optional
Readonly
inclusive?: booleanOptional
Readonly
exact?: booleanOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
minimum: number | bigintReadonly
input: unknownThe input data
Readonly
code: "too_small"Readonly
origin: Optional
Readonly
inclusive?: booleanTrue if the allowable range includes the minimum
Optional
Readonly
exact?: booleanTrue if the allowed value is fixed (e.g. z.length(5)
), not a range (z.minLength(5)
)
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
format: string & {} | $ZodStringFormatsReadonly
input: undefined | stringThe input data
Readonly
code: "invalid_format"Optional
Readonly
pattern?: stringOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: undefined | number | bigintThe input data
Readonly
code: "not_multiple_of"Readonly
divisor: numberOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Readonly
code: "invalid_union"Readonly
errors: $ZodIssue[][]Optional
Readonly
discriminator?: stringOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Readonly
code: "invalid_key"Readonly
origin: "record" | "map"Readonly
issues: $ZodIssue[]Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Readonly
code: "invalid_element"Readonly
origin: "map" | "set"Readonly
issues: $ZodIssue[]Readonly
key: unknownOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
values: Primitive[]Readonly
input: unknownThe input data
Readonly
code: "invalid_value"Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Optional
Readonly
params?: Record<string, any>Readonly
code: "custom"Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
The input data