Describe the bug
When there are similar key's in the validation schema, it is causing it to not use the incorrect validation. I think this is a yup issue not a vee-validate issue?
To Reproduce
- Open https://stackblitz.com/edit/vitejs-vite-l6n3zb?file=src%2Fcomponents%2FHelloWorld.vue
- Click on "Submit" in the example
- Notice it's using the
fooBar validation not foo
- Remove or comment out line 9.
- Click on "Submit" in the example
- Notice it's using the
fooBiz validation not foo
ex. schema
const schema = object({
foo: string().required(isRequired('Foo')),
fooBar: string().required(isRequired('Foo Bar')),
fooBiz: string().required(isRequired('Foo Biz')),
});
Expected behavior
It should use the correct validation set.
Platform (please complete the following information):
- Yup Version
^1.4.0
- VeeValidate Version
^4.14.4
Describe the bug
When there are similar key's in the validation schema, it is causing it to not use the incorrect validation. I think this is a
yupissue not avee-validateissue?To Reproduce
fooBarvalidation notfoofooBizvalidation notfooex. schema
Expected behavior
It should use the correct validation set.
Platform (please complete the following information):
^1.4.0^4.14.4