Skip to main content

OptionsValidationRule

Validation rule using options array.

idstringrequired

Validation rule id. Can be used to identify the validation.

Example: VALID_IBAN
messagestringrequired

Human readable validation error message in English.

Example: Please enter valid IBAN.
optionsstring[]required

Array of valid option values for the validation

Example: ["IBAN1","IBAN2","IBAN3"]
OptionsValidationRule
{
"id": "VALID_IBAN",
"message": "Please enter valid IBAN.",
"options": [
"IBAN1",
"IBAN2",
"IBAN3"
]
}