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
Currently the code in validateYupSchema only sets the abortEarly and context options. I have a case where I need to mutate my form schema only on cast and not on every validation, so being able to set the strict option to yup validation would be useful.
Could it be possible to expose the validation options so that I can specify the validation needed? This could be as props to the formik component or with whatever method is easier.
🚀 Feature request
Currently the code in
validateYupSchema
only sets theabortEarly
andcontext
options. I have a case where I need to mutate my form schema only on cast and not on every validation, so being able to set thestrict
option to yup validation would be useful.Could it be possible to expose the validation options so that I can specify the validation needed? This could be as props to the formik component or with whatever method is easier.
Here is the yup docs that explain the validation options: https://github.com/jquense/yup#mixedvalidatevalue-any-options-object-promiseany-validationerror
And this is the code that would need to pass in the exposed options:
The text was updated successfully, but these errors were encountered: