OptionsValidationRule

data class OptionsValidationRule(val id: String, val message: String, val options: List<ValidationOption>) : ValidationRule

Data class representing a validation rule with a restricted set of allowed values.

Constructors

Link copied to clipboard
constructor(id: String, message: String, options: List<ValidationOption>)

Properties

Link copied to clipboard
open override val id: String

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

Link copied to clipboard
open override val message: String

Human readable validation error message in English.

Link copied to clipboard

List of valid options for the validation. Each option has an id (the raw API value) and a name (initially same as id, updated to a localized display name after enrichment).

Link copied to clipboard
open override val type: ValidationRuleType

Type of validation rule.