Validators

Validators

# new Validators()

A hash of validators. Each validator function must return an error definition if validation fails and undefined if it succeeds.

Error definitions can be primitives value such as max length or an array, such as a range's lower and upper limits. Validator functions accept field metadata and the value to be validated.