1const price_greater = (value, vm) => (value >= vm.min_price);
2validations: {
3 user_price: {
4 required,
5 price_greater
6 }
7}
8
1validations: {
2 form: {
3 old_password: {
4 data: { required },
5 },
6 new_password: {
7 data: { required },
8 },
9 repeat_password: {
10 data: {
11 sameAsPassword: sameAs(function() {
12 return this.form.new_password.data;
13 })
14 },
15 },
16 },
17 },