Returns a validation function to validate that a number is less than or equal to the max value, if given. Inclusive version of upperBoundValidator.
Note: null values count as valid.
Optional
The maximum allowed value.
A custom error message to display if the value is invalid.
Returns a validation function to validate that a number is less than or equal to the max value, if given. Inclusive version of upperBoundValidator.
Note: null values count as valid.