mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
7f00e3b5aa
e5a6a0f23d3e399f39c492c585359ca1666ccddf
69 lines
1.9 KiB
JSON
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"
|
|
]
|
|
}
|