-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not support errors coming from zodSchema.refine() #15
Comments
I ran into this issue — it actually does work; however the This is an issue with how Zod works, rather than this library. Edit: Actually you're right; the errors don't surface at all with this package. I copy-pasted the main |
@iest can you add which versions of Zod and Formik you were using when testing? |
@robertLichtnow not 100% sure as it's been a few months, but my yarn.lock says |
I observed the same behaviour and noticed the following… In my case, I have custom input control driven by Formik's
Edit: added 4th bullet point |
Another observation I noticed today. If you define |
Is there a workaround people are using for this? I'd specifically like to do password confirmation |
Describe the bug
Does not parse properly if the error is coming from refine or superRefine
To Reproduce
if the values are these
It does not add any error for confirmPassword field with message "Passwords don't match"
Node version:
v16.15.0
Zod, Formik and zod-formik-adapter versions:
The text was updated successfully, but these errors were encountered: