-
In my pinia store I have an object like so
or alternatively a schema like so
I am referencing this object in a form with couple of inputs bound to v-model like
I would like to validate the quiz object with vee-validate. But I can’t seem to find a correct example to do so. I have looked at this https://vee-validate.logaretm.com/v4/examples/using-stores but it’s again not validation for object. How do i validate with vee-validate while my v-model remains as-is (i.e quiz.xxx) or have the schema as an object and useFieldModel. Full Sample code is available on stackblitz |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the answer after a bit of digging .
instead of
as described here |
Beta Was this translation helpful? Give feedback.
Found the answer after a bit of digging .
I had to reference the error object in the form like so
store.errors['quiz.title']
instead of
store.errors.title
as described here