[Vuejs]-Vuelidate with data nesting and validation groups

0👍

It’s an old question but if I understand it correctly then I guess you can just create a custom validator on the addresses array, and in the validator validate single address objects.

validations: {
 addresses: {
    customValidator: customValidatorFunction
 }
},

Then the customValidatorFunction is gonna get the whole array of addresses, and you can use it to validate all/any object you want in your custom way.

Leave a comment