Skip to content

Commit 727dc18

Browse files
authored
Merge pull request #9 from Open-Inflation/snapshot-bot/update-snapshots
Update jsonschema snapshots
2 parents e68b05c + c3b6f54 commit 727dc18

7 files changed

Lines changed: 3826 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: 79 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,111 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
32
"type": "object",
3+
"required": [
4+
"detail",
5+
"show"
6+
],
7+
"$schema": "https://json-schema.org/draft/2020-12/schema",
48
"properties": {
5-
"title": {
6-
"type": "string"
9+
"background": {
10+
"type": "string",
11+
"format": "uri"
12+
},
13+
"banner": {
14+
"type": "null"
715
},
816
"description": {
917
"type": "string"
1018
},
11-
"image": {
12-
"format": "uri",
13-
"type": "string"
19+
"detail": {
20+
"type": "array",
21+
"items": {
22+
"type": "object",
23+
"required": [
24+
"msg",
25+
"title",
26+
"type"
27+
],
28+
"properties": {
29+
"msg": {
30+
"type": "string"
31+
},
32+
"title": {
33+
"type": "string"
34+
},
35+
"type": {
36+
"type": "string"
37+
}
38+
}
39+
}
1440
},
15-
"background": {
16-
"format": "uri",
17-
"type": "string"
41+
"end_timestamp": {
42+
"type": "string",
43+
"format": "date-time"
44+
},
45+
"image": {
46+
"type": "string",
47+
"format": "uri"
1848
},
1949
"is_thematic": {
2050
"type": "boolean"
2151
},
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-
},
3352
"logo": {
34-
"format": "uri",
35-
"type": "string"
53+
"type": "string",
54+
"format": "uri"
55+
},
56+
"pdf": {
57+
"type": "string",
58+
"format": "uri"
3659
},
3760
"pdf_data": {
3861
"type": "object",
62+
"required": [
63+
"background_color",
64+
"banner",
65+
"file",
66+
"image",
67+
"subtitle",
68+
"text_color",
69+
"title"
70+
],
3971
"properties": {
40-
"title": {
41-
"type": "string"
42-
},
43-
"subtitle": {
72+
"background_color": {
4473
"type": "string"
4574
},
46-
"text_color": {
47-
"type": "string"
75+
"banner": {
76+
"type": "null"
4877
},
49-
"background_color": {
50-
"type": "string"
78+
"file": {
79+
"type": "string",
80+
"format": "uri"
5181
},
5282
"image": {
53-
"format": "uri",
83+
"type": "string",
84+
"format": "uri"
85+
},
86+
"subtitle": {
5487
"type": "string"
5588
},
56-
"file": {
57-
"format": "uri",
89+
"text_color": {
5890
"type": "string"
5991
},
60-
"banner": {
61-
"type": "null"
92+
"title": {
93+
"type": "string"
6294
}
63-
},
64-
"required": [
65-
"background_color",
66-
"banner",
67-
"file",
68-
"image",
69-
"subtitle",
70-
"text_color",
71-
"title"
72-
]
95+
}
7396
},
74-
"banner": {
75-
"type": "null"
97+
"show": {
98+
"type": "boolean"
7699
},
77-
"pdf": {
78-
"format": "uri",
100+
"start_timestamp": {
101+
"type": "string",
102+
"format": "date-time"
103+
},
104+
"title": {
105+
"type": "string"
106+
},
107+
"title_color": {
79108
"type": "string"
80109
}
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-
]
110+
}
96111
}

0 commit comments

Comments
 (0)