Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_type"Readonlyexpected: $ZodInvalidTypeExpectedReadonlyinput: unknownOptional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "too_big"Readonlyorigin: Readonlymaximum: number | bigintOptional Readonlyinclusive?: booleanOptional Readonlyexact?: booleanReadonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "too_small"Readonlyorigin: Readonlyminimum: number | bigintOptional Readonlyinclusive?: booleanTrue if the allowable range includes the minimum
Optional Readonlyexact?: booleanTrue if the allowed value is fixed (e.g. z.length(5)), not a range (z.minLength(5))
Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_format"Readonlyformat: string & {} | $ZodStringFormatsOptional Readonlypattern?: stringReadonlyinput: string | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "not_multiple_of"Readonlydivisor: numberReadonlyinput: number | bigint | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "unrecognized_keys"Readonlykeys: string[]Readonlyinput: Record<string, unknown> | undefinedThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_union"Readonlyerrors: $ZodIssue[][]Readonlyinput: unknownThe input data
Optional Readonlydiscriminator?: stringOptional Readonlyoptions?: Primitive[]Optional Readonlyinclusive?: trueOptional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_union"Readonlyerrors: []Readonlyinput: unknownThe input data
Optional Readonlydiscriminator?: stringReadonlyinclusive: falseReadonlymatches: number[]Indices of the options that matched
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_key"Readonlyorigin: "map" | "record"Readonlyissues: $ZodIssue[]Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_element"Readonlyorigin: "map" | "set"Readonlykey: unknownReadonlyissues: $ZodIssue[]Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "invalid_value"Readonlyvalues: Primitive[]Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
Optional Readonlypath?: PropertyKey[]Optional Readonlymessage?: stringReadonlycode: "custom"Optional Readonlyparams?: Record<string, any>Readonlyinput: unknownThe input data
Optional Readonlyinst?: The schema or check that originated this issue.
Optional Readonlyschema?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>The schema that owns the issue. Equal to inst when a schema originated the issue, and the schema the check was attached to when a check did.
Optional Readonlycontinue?: booleanIf true, Zod will continue executing checks/refinements after this issue.
OptionalabortedA way to mark a whole payload as aborted. Used in codecs/pipes.
Optional InternalmemoSet when the value came from a repeat visit to a node still being parsed. Its checks run on the node itself, against the finished value.
The input data