* validate input against rule * @param field * @returns {Promise. }
(field)
| 180 | * @returns {Promise.<void>} |
| 181 | */ |
| 182 | async evaluateField(field) { |
| 183 | |
| 184 | if (field.rules.length) { |
| 185 | |
| 186 | await this.rules.validate(field); |
| 187 | } |
| 188 | |
| 189 | } |
| 190 | /** |
| 191 | * validate input as a whole against post rule |
| 192 | * @param rule |