Readonly
code: "invalid_type"Optional
Readonly
continue?: booleanReadonly
expected: Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "too_big"Optional
Readonly
continue?: booleanOptional
Readonly
inclusive?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
maximum: number | bigintOptional
Readonly
message?: stringReadonly
origin: Optional
Readonly
path?: PropertyKey[]Readonly
code: "too_small"Optional
Readonly
continue?: booleanOptional
Readonly
inclusive?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringReadonly
minimum: number | bigintReadonly
origin: Optional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_format"Optional
Readonly
continue?: booleanReadonly
format: string & {} | $ZodStringFormatsReadonly
input: stringThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Optional
Readonly
pattern?: stringReadonly
code: "not_multiple_of"Optional
Readonly
continue?: booleanReadonly
divisor: numberReadonly
input: number | bigintThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "unrecognized_keys"Optional
Readonly
continue?: booleanReadonly
input: Record<string, unknown>The input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
keys: string[]Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_union"Optional
Readonly
continue?: booleanReadonly
errors: $ZodIssue[][]Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_key"Optional
Readonly
continue?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
issues: $ZodIssue[]Optional
Readonly
message?: stringReadonly
origin: "map" | "record"Optional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_element"Optional
Readonly
continue?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
issues: $ZodIssue[]Readonly
key: unknownOptional
Readonly
message?: stringReadonly
origin: "map" | "set"Optional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_value"Optional
Readonly
continue?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
values: Primitive[]Readonly
code: "custom"Optional
Readonly
continue?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
params?: Record<string, any>Optional
Readonly
path?: PropertyKey[]
Deprecated
Internal use only. If
true
, Zod will continue executing validation despite this issue.