Files
divkit/schema/div-fixed-length-input-mask.json
man-y 7f00e3b5aa Mark supported features of Flutter
e5a6a0f23d3e399f39c492c585359ca1666ccddf
2024-05-14 11:19:28 +03:00

69 lines
1.9 KiB
JSON

{
"$description": "translations.json#/div_input_mask_fixed_length",
"allOf": [
{
"$ref": "div-input-mask-base.json"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"fixed_length"
]
},
"pattern": {
"type": "string",
"$description": "translations.json#/div_input_mask_fixed_length_pattern"
},
"pattern_elements": {
"type": "array",
"items": {
"type": "object",
"$description": "translations.json#/div_input_mask_fixed_length_pattern_elements",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"maxLength": 1,
"$description": "translations.json#/div_input_mask_fixed_length_pattern_elements_key"
},
"regex": {
"type": "string",
"$description": "translations.json#/div_input_mask_fixed_length_pattern_elements_regex"
},
"placeholder": {
"type": "string",
"minLength": 1,
"maxLength": 1,
"default_value": "_",
"$description": "translations.json#/div_input_mask_fixed_length_pattern_elements_placeholder"
}
},
"required": [
"key"
]
},
"minItems": 1,
"$description": "translations.json#/div_input_mask_fixed_length_pattern_elements"
},
"always_visible": {
"$ref": "common.json#/boolean_int",
"default_value": "false",
"$description": "translations.json#/div_input_mask_fixed_length_always_visible"
}
}
}
],
"platforms": [
"android",
"ios",
"web"
],
"required": [
"type",
"pattern",
"pattern_elements"
]
}