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.
- [Vuejs]-Vue.js 2.x: Mixin cannot be referenced from components?
- [Vuejs]-How to use Vuetify elements as Inertia links
Source:stackexchange.com