A factory implementation that creates an instance of the built-in regExp validator of type
oj.RegExpValidator.
Methods
-
createValidator(options) : {oj.RegExpValidator}
-
Creates an immutable validator instance of type oj.RegExpValidator that ensures the value matches the provided pattern.
Parameters:
Name Type Description optionsoj.RegExpValidator.ValidatorOptions an object literal used to provide the pattern, an optional hint, error message among others. See oj.RegExpValidator for details. Returns:
- Type
- oj.RegExpValidator