validations array vuelidate code example
Example 1: vuelidate array of items
validations() {
return {
systems: {
circuit: {
$each: {
name: {
required
},
fluid: {
value: {
required
},
unit: {
required
}
},
}
}
}
}
}
Example 2: vuelidate same as
validations: {
form: {
old_password: {
data: { required },
},
new_password: {
data: { required },
},
repeat_password: {
data: {
sameAsPassword: sameAs(function() {
return this.form.new_password.data;
})
},
},
},
},