resolvers
resolvers copied to clipboard
fix: discriminated union for Zod v4 mini
Context
When trying out the new Zod v4 mini I noticed that discriminated unions aren't supported.
Changes
- Adding discriminated unions to the tests
- Using the current error on invalid union if the errors array is empty
I'm unable to get bun to work correctly in my computer, it just keeps loading forever when trying to run the tests
Hey, any plans to release this fix?
As this likely fixes https://github.com/react-hook-form/resolvers/issues/793, I'd also love a release that includes this change 😍
:tada: This PR is included in version 5.2.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: