MCPcopy Index your code
hub / github.com/bitnbytesio/node-input-validator / evaluateField

Method evaluateField

lib/validator.js:182–189  ·  view source on GitHub ↗

* validate input against rule * @param field * @returns {Promise. }

(field)

Source from the content-addressed store, hash-verified

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

Callers 1

checkMethod · 0.95

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected