Skip to content

ConditionalValidation

Source code in docs_src/capo_pinpoint_sms_voice_v2/types/conditional_validation.py
class ConditionalValidation(TypedDict, closed=True):
    min_length: NotRequired["int"]
    """<p>The minimum length for the field value when this rule applies.</p>"""
    max_length: NotRequired["int"]
    """<p>The maximum length for the field value when this rule applies.</p>"""
    pattern: NotRequired["str"]
    """<p>A regular expression that the field value must match when this rule applies.</p>"""
    allowed_values: NotRequired[
        "capo_pinpoint_sms_voice_v2.types.select_choice_list.SelectChoiceList"
    ]
    """<p>The allowed values for a select field when this rule applies. A subset of the field's full option list.</p>"""

allowed_values instance-attribute

allowed_values: NotRequired[SelectChoiceList]

The allowed values for a select field when this rule applies. A subset of the field's full option list.

max_length instance-attribute

max_length: NotRequired[int]

The maximum length for the field value when this rule applies.

min_length instance-attribute

min_length: NotRequired[int]

The minimum length for the field value when this rule applies.

pattern instance-attribute

pattern: NotRequired[str]

A regular expression that the field value must match when this rule applies.