felte
felte copied to clipboard
fix(validator-zod): Surface nested errors when validating a union type
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 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.
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.
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 |