Checks whether a given value is valid according to the given rules. Returns an array of validation errors, which is empty if the value is valid.
Checks whether a given value is valid according to the given rules. Returns an array of validation errors, which is empty if the value is valid.