Creates a set of rules for a single key.
Create a ruleset for a particular key or value.
key
value
Options for RuleSet.
RuleSet
Validates the value and returns an array of errors if any, othewise returns undefined.
undefined
Value to be validated
Key of the value being checked
Options for validate
An object containing value and errors if any
errors
Generated using TypeDoc
Creates a set of rules for a single key.