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