OptionalabortedReadonlycode: "invalid_type"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyexpected: Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Readonlycode: "too_big"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlyexact?: booleanOptional Readonlyinclusive?: booleanReadonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Readonlymaximum: number | bigintOptional Readonlymessage?: stringReadonlyorigin: Optional Readonlypath?: PropertyKey[]Readonlycode: "too_small"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlyexact?: booleanTrue if the allowed value is fixed (e.g. z.length(5)), not a range (z.minLength(5))
Optional Readonlyinclusive?: booleanTrue if the allowable range includes the minimum
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringReadonlyminimum: number | bigintReadonlyorigin: Optional Readonlypath?: PropertyKey[]Readonlycode: "invalid_format"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyformat: string & {} | $ZodStringFormatsReadonlyinput: string | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Optional Readonlypattern?: stringReadonlycode: "not_multiple_of"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlydivisor: numberReadonlyinput: number | bigint | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Readonlycode: "unrecognized_keys"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyinput: Record<string, unknown> | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Readonlykeys: string[]Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Readonlycode: "invalid_union"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlydiscriminator?: stringReadonlyerrors: $ZodIssue[][]Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Readonlycode: "invalid_key"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Readonlyissues: $ZodIssue[]Optional Readonlymessage?: stringReadonlyorigin: "map" | "record"Optional Readonlypath?: PropertyKey[]Readonlycode: "invalid_element"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Readonlyissues: $ZodIssue[]Readonlykey: unknownOptional Readonlymessage?: stringReadonlyorigin: "map" | "set"Optional Readonlypath?: PropertyKey[]Readonlycode: "invalid_value"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlypath?: PropertyKey[]Readonlyvalues: Primitive[]Readonlycode: "custom"Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlymessage?: stringOptional Readonlyparams?: Record<string, any>Optional Readonlypath?: PropertyKey[]
A may to mark a whole payload as aborted. Used in codecs/pipes.