forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-fixed-length-input-mask.json
63 lines (63 loc) · 1.84 KB
/
div-fixed-length-input-mask.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$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"
}
}
}
],
"required": [
"type",
"pattern",
"pattern_elements"
]
}