Creates a Validator.
Creates a validator schema.
Set of Rule(s). key should match with the key of object being validated.
Rule
key
Options for validator schema.
Validates the values passed and returns errors object if any, otherwise return undefined along with values.
values
errors
undefined
Object of values to be checked.
Options for validator.
Object containing values and errors
Generated using TypeDoc
Creates a Validator.