You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It's a bit weird to explain but when using toFormikValidationSchema, empty string resolves to "Required" error (that's the opposite of how Zod works).
Expected behavior
Strangely, toFormikValidate works perfectly fine. If you take example above and change toFormikValidationSchema to toFormikValidate and validationSchema to validate, you won't see that error (that's the correct behavior according to Zod. An empty string is a valid string).
Screenshots
NA
Desktop (please complete the following information):
OS: Windows
Browser Chrome
Version 11
Node version: v18.20.3
Zod, Formik and zod-formik-adapter versions:
Zod: 3.23.8
Formik: 2.4.6
zod-formik-adapter: 1.3.0
Additional context
NA
The text was updated successfully, but these errors were encountered:
Describe the bug
It's a bit weird to explain but when using
toFormikValidationSchema
, empty string resolves to "Required" error (that's the opposite of how Zod works).To Reproduce
Steps to reproduce the behavior:
Expected behavior
Strangely,
toFormikValidate
works perfectly fine. If you take example above and changetoFormikValidationSchema
totoFormikValidate
andvalidationSchema
tovalidate
, you won't see that error (that's the correct behavior according to Zod. An empty string is a valid string).Screenshots
NA
Desktop (please complete the following information):
Node version: v18.20.3
Zod, Formik and zod-formik-adapter versions:
Additional context
NA
The text was updated successfully, but these errors were encountered: