Validation Function¶
The function expected by Prudence for validation.
-
([self[, parent]])¶
- Arguments
self (any) – The object’s value for this key. This can be anything.
parent (object) – The object the above value came from.
- Attribute string errorMessage
An error message for Prudence to display if this function returns false.
- Returns
boolean
Note
This function is allowed to return truthy/falsy values, but it is not prefered.