Join GitHub today
How can I validate an entire array? #487
What I need to do is pass an entire array to a backend server to be validated, but my approach to this problem does not work as you can see from the example above. When making changes to the form elements, my custom validator is not called even though I'm managing $reset and $touch myself.
The way you have it setup, your async validator will only be run when you replace the whole array. This will most likely be the case if you extract your inputs into smaller vue components, and use a simple index replacement mechanism. This be it a but more verbose to write, will help make your template a bit more cleaner. However the sub components will need to emit their changes, rather directly v-model'ing the prop.