Optional
Readonly
inst?: Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_type"Readonly
expected: Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "too_big"Readonly
origin: Readonly
maximum: number | bigintOptional
Readonly
inclusive?: booleanOptional
Readonly
exact?: booleanOptional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "too_small"Readonly
origin: Readonly
minimum: number | bigintOptional
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
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_format"Readonly
format: string & {} | $ZodStringFormatsOptional
Readonly
pattern?: stringOptional
Readonly
input?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "not_multiple_of"Readonly
divisor: numberOptional
Readonly
input?: number | bigintOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "unrecognized_keys"Readonly
keys: string[]Optional
Readonly
input?: Record<string, unknown>Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_union"Readonly
errors: $ZodIssue[][]Optional
Readonly
input?: unknownOptional
Readonly
discriminator?: stringOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_key"Readonly
origin: "map" | "record"Readonly
issues: $ZodIssue[]Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_element"Readonly
origin: "map" | "set"Readonly
key: unknownReadonly
issues: $ZodIssue[]Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_value"Readonly
values: Primitive[]Optional
Readonly
input?: unknownOptional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will execute subsequent checks/refinements instead of immediately aborting
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "custom"Optional
Readonly
params?: Record<string, any>Optional
Readonly
input?: unknownOptional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_type"Readonly
expected: Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "too_big"Readonly
origin: Readonly
maximum: number | bigintOptional
Readonly
inclusive?: booleanOptional
Readonly
exact?: booleanReadonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "too_small"Readonly
origin: Readonly
minimum: number | bigintOptional
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)
)
Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_format"Readonly
format: string & {} | $ZodStringFormatsOptional
Readonly
pattern?: stringReadonly
input: undefined | stringThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "not_multiple_of"Readonly
divisor: numberReadonly
input: undefined | number | bigintThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "unrecognized_keys"Readonly
keys: string[]Readonly
input: undefined | Record<string, unknown>The input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_union"Readonly
errors: $ZodIssue[][]Readonly
input: unknownThe input data
Optional
Readonly
discriminator?: 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.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_key"Readonly
origin: "map" | "record"Readonly
issues: $ZodIssue[]Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_element"Readonly
origin: "map" | "set"Readonly
key: unknownReadonly
issues: $ZodIssue[]Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "invalid_value"Readonly
values: Primitive[]Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
Readonly
path?: PropertyKey[]Optional
Readonly
message?: stringReadonly
code: "custom"Optional
Readonly
params?: Record<string, any>Readonly
input: unknownThe input data
Optional
Readonly
inst?: The schema or check that originated this issue.
Optional
Readonly
continue?: booleanIf true
, Zod will continue executing checks/refinements after this issue.
Optional
abortedA may to mark a whole payload as aborted. Used in codecs/pipes.
The schema or check that originated this issue.