Open colinhacks opened 1 month ago
Name | Link |
---|---|
Latest commit | 8bf2cc1f0e414b1aeef33aadcf83f949e19f161a |
Latest deploy log | https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/66bfcffdecd444000843d905 |
Deploy Preview | https://deploy-preview-3713--guileless-rolypoly-866f8a.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Old formats: https://github.com/colinhacks/zod/blob/v4-rfc-issues/rfcs/v4-issue-formats/old_formats.ts
New formats: https://github.com/colinhacks/zod/blob/v4-rfc-issues/rfcs/v4-issue-formats/new_formats.ts
Conceptually speaking these are the major changes:
ZodIssue
is a 2-level discriminated union. The first level discriminates oncode
:invalid_type
,invalid_string
m etc. For eachcode
, there are sub-issues that are discriminated with thecheck
field.invalid_union
,invalid_literal
,invalid_enum_value
intoinvalid_type
too_big
andtoo_small
across the specific types for which they are defined:invalid_string
,invalid_array
, etc.invalid_string
) there is an additional layer of discrimination using thecheck
key. Instead of a top-levelZodNotMultipleOfIssue
, this is now acheck: "multiple_of"
withincode: "invalid_string"
.invalid_arguments
,invalid_return_type
,invalid_discriminator_value
as these issues are specific to types that will be removed in Zod 4.