(field, value, args)
| 177 | } |
| 178 | |
| 179 | async validateSometimes(field, value, args) { |
| 180 | |
| 181 | if (this.isEmpty(value) && !args.length) { |
| 182 | delete this.validator.inputs[field]; |
| 183 | return true; |
| 184 | } |
| 185 | |
| 186 | if (args.length) { |
| 187 | // to be coded |
| 188 | } |
| 189 | |
| 190 | return true; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * apply rules on inputs |