- Deprecated:
Since Description 8.0.0
Directly create new instances of NumberRangeValidator instead.
a factory method to create an instance of a built-in numberRange validator of type
oj.NumberRangeValidator.
- Deprecated:
Since Description 8.0.0
Directly create new instances of NumberRangeValidator instead.
Methods
-
createValidator(options) : {oj.NumberRangeValidator}
-
Creates an immutable validator instance of type oj.NumberRangeValidator that ensures that the value provided is within a given range.
Parameters:
Name Type Argument Description options
oj.NumberRangeValidator.ValidatorOptions <optional>
an object literal used to provide the minimum, maximum and other optional values. See oj.NumberRangeValidator for details. Returns: