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
yup.setLocale({number: {min: ({ min })=>({key: 'field_too_short',values: { min }}),},});// Errors are typed as string, but yup will return an object!const{ errors }=useForm();
This was reported before in #3361, I closed it due to no activity or new requests.
Main issue is there is no way to connect yup.setLocale calls with dynamic types that would change errors or errorMessage types from strings to objects as this is all statically typed.
One good suggestion was in #4044 but I would need to build a new API for that.
What happened?
I can't return an object using yup setLocale.
For example: (From yup docs)
Reproduction steps
...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
in progress
Code of Conduct
The text was updated successfully, but these errors were encountered: