Closed kzmsdkn closed 3 months ago
Hi @kzmsdkn! I tried the schema and it seems to works fine https://zod-playground.vercel.app?appdata=N4IgzgxgFgpgtgQxALhALwHQFcB2BLAexwAoBtTHLOAIxgCdiBKAGgAJMwAXOvHAcyYBdNsDowAjljxiAJgH16dAnWSsAOiACyeMGF58NAX0YhmIAG4IANlhhgUpEKZAByWFasEXIQYaA
I consider it closed. @kzmsdkn
const union = z.union([z.number(), z.string()], {required_error: "Missing"}); union.parse(undefined)
this error doesn't show Missing but Required