felte icon indicating copy to clipboard operation
felte copied to clipboard

fix(validator-zod): Surface nested errors when validating a union type

Open sea-grass opened this issue 1 year ago • 1 comments

Closes #248, #290.

Fixes the Zod validator to surface nested invalid_union errors.

For existing users of @felte/validator-zod, validation behaviour is the same. The only difference is that Zod issues with an invalid_union code will now be recursively crawled for their nested issues. Validation works exactly the same, but usage of a union type may now show errors where they weren't shown before.

sea-grass avatar May 20 '24 05:05 sea-grass

@sea-grass is attempting to deploy a commit to the Pablo Alejandro Berganza Campos' projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 20 '24 05:05 vercel[bot]

Hey @pablo-abc, thanks for the review. I saw you'd made some updates to the main branch, so I merged the latest changes. It should be fully up-to-date now. Seems like the PR just needs authorization to run the CI pipeline on Vercel to pass the checks.

sea-grass avatar Oct 31 '24 14:10 sea-grass

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
felte-docs-ykvc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 2:42pm

vercel[bot] avatar Oct 31 '24 14:10 vercel[bot]