elements: { $each: { type: { required, }, question: { required: requiredIf(prop => prop.type === 'input'), } } }
validations: { form: { old_password: { data: { required }, }, new_password: { data: { required }, }, repeat_password: { data: { sameAsPassword: sameAs(function() { return this.form.new_password.data; }) }, }, }, },