схема вроде странно выглядит, без иерархии объектов. Первый уроверь это "data" а в схеме его вообще нет
и вообще, схему надо делать с помощью генератора схем и допиливать руками, а не вручную писать
пример сгенерированной схемы (надо дорабатывать согласно типам данным, я просто проставил 123 где не стринг)
1 {
2 "definitions": {},
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "$id": "http://example.com/root.json",
5 "type": "object",
6 "title": "The Root Schema",
7 "required": [
8 "data"
9 ],
10 "properties": {
11 "data": {
12 "$id": "#/properties/data",
13 "type": "object",
14 "title": "The Data Schema",
15 "required": [
16 "id",
17 "email",
18 "mobile_number",
19 "card_number",
20 "code",
21 "card_virtual",
22 "first_name",
23 "middle_name",
24 "last_name",
25 "full_name",
26 "photo",
27 "gender",
28 "language",
29 "accept_offers",
30 "accept_messages",
31 "birth_date",
32 "anniversary_date",
33 "status",
34 "cumulative",
35 "active_points",
36 "loyalty_cash",
37 "registered_at_james",
38 "messaging_via_email",
39 "messaging_via_sms",
40 "city"
41 ],
42 "properties": {
43 "id": {
44 "$id": "#/properties/data/properties/id",
45 "type": "integer",
46 "title": "The Id Schema",
47 "default": 0,
48 "examples": [
49 123
50 ]
51 },
52 "email": {
53 "$id": "#/properties/data/properties/email",
54 "type": "string",
55 "title": "The Email Schema",
56 "default": "",
57 "examples": [
58 "---"
59 ],
60 "pattern": "^(.*)$"
61 },
62 "mobile_number": {
63 "$id": "#/properties/data/properties/mobile_number",
64 "type": "string",
65 "title": "The Mobile_number Schema",
66 "default": "",
67 "examples": [
68 "---"
69 ],
70 "pattern": "^(.*)$"
71 },
72 "card_number": {
73 "$id": "#/properties/data/properties/card_number",
74 "type": "string",
75 "title": "The Card_number Schema",
76 "default": "",
77 "examples": [
78 "---"
79 ],
80 "pattern": "^(.*)$"
81 },
82 "code": {
83 "$id": "#/properties/data/properties/code",
84 "type": "string",
85 "title": "The Code Schema",
86 "default": "",
87 "examples": [
88 "---"
89 ],
90 "pattern": "^(.*)$"
91 },
92 "card_virtual": {
93 "$id": "#/properties/data/properties/card_virtual",
94 "type": "integer",
95 "title": "The Card_virtual Schema",
96 "default": 0,
97 "examples": [
98 123
99 ]
100 },
101 "first_name": {
102 "$id": "#/properties/data/properties/first_name",
103 "type": "string",
104 "title": "The First_name Schema",
105 "default": "",
106 "examples": [
107 "---"
108 ],
109 "pattern": "^(.*)$"
110 },
111 "middle_name": {
112 "$id": "#/properties/data/properties/middle_name",
113 "type": "integer",
114 "title": "The Middle_name Schema",
115 "default": 0,
116 "examples": [
117 123
118 ]
119 },
120 "last_name": {
121 "$id": "#/properties/data/properties/last_name",
122 "type": "string",
123 "title": "The Last_name Schema",
124 "default": "",
125 "examples": [
126 "---"
127 ],
128 "pattern": "^(.*)$"
129 },
130 "full_name": {
131 "$id": "#/properties/data/properties/full_name",
132 "type": "string",
133 "title": "The Full_name Schema",
134 "default": "",
135 "examples": [
136 "---"
137 ],
138 "pattern": "^(.*)$"
139 },
140 "photo": {
141 "$id": "#/properties/data/properties/photo",
142 "type": "string",
143 "title": "The Photo Schema",
144 "default": "",
145 "examples": [
146 ""
147 ],
148 "pattern": "^(.*)$"
149 },
150 "gender": {
151 "$id": "#/properties/data/properties/gender",
152 "type": "integer",
153 "title": "The Gender Schema",
154 "default": 0,
155 "examples": [
156 123
157 ]
158 },
159 "language": {
160 "$id": "#/properties/data/properties/language",
161 "type": "integer",
162 "title": "The Language Schema",
163 "default": 0,
164 "examples": [
165 123
166 ]
167 },
168 "accept_offers": {
169 "$id": "#/properties/data/properties/accept_offers",
170 "type": "integer",
171 "title": "The Accept_offers Schema",
172 "default": 0,
173 "examples": [
174 123
175 ]
176 },
177 "accept_messages": {
178 "$id": "#/properties/data/properties/accept_messages",
179 "type": "integer",
180 "title": "The Accept_messages Schema",
181 "default": 0,
182 "examples": [
183 123
184 ]
185 },
186 "birth_date": {
187 "$id": "#/properties/data/properties/birth_date",
188 "type": "string",
189 "title": "The Birth_date Schema",
190 "default": "",
191 "examples": [
192 "---"
193 ],
194 "pattern": "^(.*)$"
195 },
196 "anniversary_date": {
197 "$id": "#/properties/data/properties/anniversary_date",
198 "type": "integer",
199 "title": "The Anniversary_date Schema",
200 "default": 0,
201 "examples": [
202 123
203 ]
204 },
205 "status": {
206 "$id": "#/properties/data/properties/status",
207 "type": "string",
208 "title": "The Status Schema",
209 "default": "",
210 "examples": [
211 "---"
212 ],
213 "pattern": "^(.*)$"
214 },
215 "cumulative": {
216 "$id": "#/properties/data/properties/cumulative",
217 "type": "integer",
218 "title": "The Cumulative Schema",
219 "default": 0,
220 "examples": [
221 123
222 ]
223 },
224 "active_points": {
225 "$id": "#/properties/data/properties/active_points",
226 "type": "integer",
227 "title": "The Active_points Schema",
228 "default": 0,
229 "examples": [
230 123
231 ]
232 },
233 "loyalty_cash": {
234 "$id": "#/properties/data/properties/loyalty_cash",
235 "type": "integer",
236 "title": "The Loyalty_cash Schema",
237 "default": 0,
238 "examples": [
239 0
240 ]
241 },
242 "registered_at_james": {
243 "$id": "#/properties/data/properties/registered_at_james",
244 "type": "string",
245 "title": "The Registered_at_james Schema",
246 "default": "",
247 "examples": [
248 "---"
249 ],
250 "pattern": "^(.*)$"
251 },
252 "messaging_via_email": {
253 "$id": "#/properties/data/properties/messaging_via_email",
254 "type": "integer",
255 "title": "The Messaging_via_email Schema",
256 "default": 0,
257 "examples": [
258 123
259 ]
260 },
261 "messaging_via_sms": {
262 "$id": "#/properties/data/properties/messaging_via_sms",
263 "type": "integer",
264 "title": "The Messaging_via_sms Schema",
265 "default": 0,
266 "examples": [
267 123
268 ]
269 },
270 "city": {
271 "$id": "#/properties/data/properties/city",
272 "type": "object",
273 "title": "The City Schema",
274 "required": [
275 "id",
276 "name"
277 ],
278 "properties": {
279 "id": {
280 "$id": "#/properties/data/properties/city/properties/id",
281 "type": "integer",
282 "title": "The Id Schema",
283 "default": 0,
284 "examples": [
285 123
286 ]
287 },
288 "name": {
289 "$id": "#/properties/data/properties/city/properties/name",
290 "type": "string",
291 "title": "The Name Schema",
292 "default": "",
293 "examples": [
294 "---"
295 ],
296 "pattern": "^(.*)$"
297 }
298 }
299 }
300 }
301 }
302 }
303 }