Skip to content

Commit 9589720

Browse files
update jsonschema snapshots
1 parent e68b05c commit 9589720

7 files changed

Lines changed: 3822 additions & 2835 deletions
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
{
2-
"title": "НАДО УСПЕТЬ",
3-
"description": "Новые товары каждую неделю.\r\nКоличество ограниченно!",
4-
"image": "https://chizhik.x5static.net/media/chizhik-assets/catalog/active_inout/Frame_2087325301_yAnGKyB.png",
5-
"background": "https://chizhik.x5static.net/media/chizhik-assets/catalog/active_inout/Background_in-out_zVtZFRx.png",
6-
"is_thematic": false,
7-
"start_timestamp": "2025-11-05T21:00:00Z",
8-
"end_timestamp": "2025-11-12T20:59:59Z",
9-
"title_color": "#18181A",
10-
"logo": "https://chizhik.x5static.net/media/chizhik-assets/catalog/active_inout_logo/%D0%A7%D0%B8%D0%B6%D0%B8%D0%BA_%D0%98%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5_bCsVMsK.png",
11-
"pdf_data": {
12-
"title": "КАТАЛОГ НОВИНОК",
13-
"subtitle": "Товары следующей недели",
14-
"text_color": "#FFFFFF",
15-
"background_color": "#18181A",
16-
"image": "https://chizhik.x5static.net/media/chizhik-assets/catalog/pdf_image/%D0%BF%D0%B4%D1%84_2_Lq1KRai.png",
17-
"file": "https://chizhik.x5static.net/media/chizhik-assets/catalog/pdf_file/%D0%BA%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3_CHIZHIK_4622_mobile.pdf",
18-
"banner": null
19-
},
20-
"banner": null,
21-
"pdf": "https://chizhik.x5static.net/media/chizhik-assets/catalog/pdf_file/%D0%BA%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3_CHIZHIK_4622_mobile.pdf"
2+
"show": false,
3+
"detail": [
4+
{
5+
"msg": "Активный In-Out не найден.",
6+
"type": "business_error.inout_not_found",
7+
"title": "Упс, что-то пошло не так"
8+
}
9+
]
2210
}
Lines changed: 75 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,107 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
32
"type": "object",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
44
"properties": {
5-
"title": {
6-
"type": "string"
5+
"background": {
6+
"type": "string",
7+
"format": "uri"
8+
},
9+
"banner": {
10+
"type": "null"
711
},
812
"description": {
913
"type": "string"
1014
},
11-
"image": {
12-
"format": "uri",
13-
"type": "string"
15+
"detail": {
16+
"type": "array",
17+
"items": {
18+
"type": "object",
19+
"required": [
20+
"msg",
21+
"title",
22+
"type"
23+
],
24+
"properties": {
25+
"msg": {
26+
"type": "string"
27+
},
28+
"title": {
29+
"type": "string"
30+
},
31+
"type": {
32+
"type": "string"
33+
}
34+
}
35+
}
1436
},
15-
"background": {
16-
"format": "uri",
17-
"type": "string"
37+
"end_timestamp": {
38+
"type": "string",
39+
"format": "date-time"
40+
},
41+
"image": {
42+
"type": "string",
43+
"format": "uri"
1844
},
1945
"is_thematic": {
2046
"type": "boolean"
2147
},
22-
"start_timestamp": {
23-
"format": "date-time",
24-
"type": "string"
25-
},
26-
"end_timestamp": {
27-
"format": "date-time",
28-
"type": "string"
29-
},
30-
"title_color": {
31-
"type": "string"
32-
},
3348
"logo": {
34-
"format": "uri",
35-
"type": "string"
49+
"type": "string",
50+
"format": "uri"
51+
},
52+
"pdf": {
53+
"type": "string",
54+
"format": "uri"
3655
},
3756
"pdf_data": {
3857
"type": "object",
58+
"required": [
59+
"background_color",
60+
"banner",
61+
"file",
62+
"image",
63+
"subtitle",
64+
"text_color",
65+
"title"
66+
],
3967
"properties": {
40-
"title": {
41-
"type": "string"
42-
},
43-
"subtitle": {
68+
"background_color": {
4469
"type": "string"
4570
},
46-
"text_color": {
47-
"type": "string"
71+
"banner": {
72+
"type": "null"
4873
},
49-
"background_color": {
50-
"type": "string"
74+
"file": {
75+
"type": "string",
76+
"format": "uri"
5177
},
5278
"image": {
53-
"format": "uri",
79+
"type": "string",
80+
"format": "uri"
81+
},
82+
"subtitle": {
5483
"type": "string"
5584
},
56-
"file": {
57-
"format": "uri",
85+
"text_color": {
5886
"type": "string"
5987
},
60-
"banner": {
61-
"type": "null"
88+
"title": {
89+
"type": "string"
6290
}
63-
},
64-
"required": [
65-
"background_color",
66-
"banner",
67-
"file",
68-
"image",
69-
"subtitle",
70-
"text_color",
71-
"title"
72-
]
91+
}
7392
},
74-
"banner": {
75-
"type": "null"
93+
"show": {
94+
"type": "boolean"
7695
},
77-
"pdf": {
78-
"format": "uri",
96+
"start_timestamp": {
97+
"type": "string",
98+
"format": "date-time"
99+
},
100+
"title": {
101+
"type": "string"
102+
},
103+
"title_color": {
79104
"type": "string"
80105
}
81-
},
82-
"required": [
83-
"background",
84-
"banner",
85-
"description",
86-
"end_timestamp",
87-
"image",
88-
"is_thematic",
89-
"logo",
90-
"pdf",
91-
"pdf_data",
92-
"start_timestamp",
93-
"title",
94-
"title_color"
95-
]
106+
}
96107
}

0 commit comments

Comments
 (0)