Function validate
- validate(data, validationData?, dataName?): any
Parameters
- data: object
The data object to test.
Optional
validationData: Record<string, ValidationEntry>Key is the accessor / value is a validation entry.
Optional
dataName: stringOptional name of data.
Returns any
True if validation passes otherwise an exception is thrown.
- data: object
Performs bulk validation of data given an object,
validationData
, which describes all entries to test.