Returns an instance of oj.LengthValidatorFactory that provides a factory method to create an
instance of a length validator.
Methods
-
createValidator(options) : {oj.LengthValidator}
-
Creates an immutable validator instance of type oj.LengthValidator that ensures that the value provided is withing a given length.
Parameters:
Name Type Argument Description optionsoj.LengthValidator.ValidatorOptions <optional>
an object literal used to provide the 'minimum', 'maximum' and other optional values. See oj.LengthValidator for details. Returns:
- Type
- oj.LengthValidator