← Back to plugin index

Phone Number Validator

Description

Validator to ensure that the provided string value potentially is a phone number.

  • If no string is specified, the corresponding error type is REQUIRED.
  • If the string exceeds the maximum length, the corresponding error type is MAX_LENGTH.
  • If the string is not a valid phone number, the corresponding error type is WRONG_FORMAT.
Type name
PhoneNumberValidator
Class
com.airlock.iam.common.application.configuration.validation.PhoneNumberValidatorConfig
May be used by
Properties
Strict Mode (strictMode)
Description
If strict mode is enabled, the number must be in a normalized format, i.e. only consist of an optional plus sign, followed by digits. Otherwise, the number may also contain separating characters like spaces, dashes or parentheses.
Attributes
Boolean
Optional
Default value
false
Maximum Length (maximumLength)
Description
Maximum length of the phone number.
Attributes
Integer
Optional
Default value
30
YAML Template (with default values)

type: PhoneNumberValidator
id: PhoneNumberValidator-xxxxxx
displayName: 
comment: 
properties:
  maximumLength: 30
  strictMode: false