Validation rules. FIFO order, i.e. the rules will be tested from top to bottom.
Get the validator rules.
Get all validation errors, if any. Otherwise it returns empty array.
Validated value.
Return only first error. Defaults to false.
Validity predicate against the value.
Validated value.
Validate against the value. If all rules are satisfied, the return value is true. Otherwise the return value is an error message of the failed rule.
Validated value.
Return only first error. Defaults to true. If set to false, it returns an array of errors, if any.
Generated using TypeDoc
Validator
Aggregated validation of given validation rules against the tested value.