Readonly
code: "unrecognized_keys"Optional
Readonly
continue?: booleanOptional
Readonly
input?: Record<string, unknown>Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
keys: string[]Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_type"Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Readonly
expected: Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "too_big"Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
exact?: booleanOptional
Readonly
inclusive?: booleanOptional
Readonly
input?: unknownOptional
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?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
exact?: booleanTrue if the allowed value is fixed (e.g. z.length(5)
), not a range (z.minLength(5)
)
Optional
Readonly
inclusive?: booleanTrue if the allowable range includes the minimum
Optional
Readonly
input?: unknownOptional
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?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Readonly
format: string & {} | $ZodStringFormatsOptional
Readonly
input?: stringOptional
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?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Readonly
divisor: numberOptional
Readonly
input?: number | bigintOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_union"Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
discriminator?: stringReadonly
errors: $ZodIssue[][]Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_key"Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Readonly
issues: $ZodIssue[]Optional
Readonly
message?: stringReadonly
origin: "record" | "map"Optional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_element"Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
input?: unknownOptional
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?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
input?: unknownOptional
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?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
params?: Record<string, any>Optional
Readonly
path?: PropertyKey[]Optional
abortedA may to mark a whole payload as aborted. Used in codecs/pipes.
Readonly
code: "unrecognized_keys"Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: Record<string, unknown> | undefinedThe 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_type"Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
exact?: 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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
exact?: booleanTrue if the allowed value is fixed (e.g. z.length(5)
), not a range (z.minLength(5)
)
Optional
Readonly
inclusive?: booleanTrue if the allowable range includes the minimum
Readonly
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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
format: string & {} | $ZodStringFormatsReadonly
input: string | undefinedThe 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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
divisor: numberReadonly
input: number | bigint | undefinedThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
message?: stringOptional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_union"Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
discriminator?: stringReadonly
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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Readonly
issues: $ZodIssue[]Optional
Readonly
message?: stringReadonly
origin: "record" | "map"Optional
Readonly
path?: PropertyKey[]Readonly
code: "invalid_element"Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
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?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Readonly
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[]
If
true
, Zod will execute subsequent checks/refinements instead of immediately aborting