@dicebear/core 11.0.0-rc.1 → 11.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -3
- package/lib/Avatar.d.ts +4 -6
- package/lib/Avatar.js +5 -13
- package/lib/Options.d.ts +15 -3
- package/lib/Options.js +24 -10
- package/lib/OptionsDescriptor.d.ts +1 -5
- package/lib/OptionsDescriptor.js +14 -5
- package/lib/Renderer.js +51 -43
- package/lib/Resolver.d.ts +23 -1
- package/lib/Resolver.js +50 -19
- package/lib/Style.d.ts +3 -3
- package/lib/Style.js +3 -5
- package/lib/StyleDefinition.d.ts +4 -3
- package/lib/StyleOptions.d.ts +8 -2
- package/lib/Validator/OptionsValidator.js +762 -704
- package/lib/Validator/StyleValidator.js +226 -137
- package/lib/index.d.ts +20 -2
- package/lib/index.js +26 -2
- package/lib/lite.d.ts +5 -0
- package/lib/lite.js +9 -0
- package/package.json +6 -3
|
@@ -27,55 +27,94 @@ const validate = (function () {
|
|
|
27
27
|
keywordLocation: `${schemaBase}${keywordLocation.slice(1)}`,
|
|
28
28
|
instanceLocation: `${dataBase}${instanceLocation.slice(1)}`,
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
const ref2 = function validate(data) {
|
|
30
|
+
const ref3 = function validate(data) {
|
|
32
31
|
validate.errors = null;
|
|
33
32
|
let errorCount = 0;
|
|
34
|
-
if (!(typeof data === "
|
|
33
|
+
if (!(typeof data === "number")) {
|
|
35
34
|
if (validate.errors === null)
|
|
36
35
|
validate.errors = [];
|
|
37
36
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
38
37
|
errorCount++;
|
|
39
38
|
}
|
|
40
39
|
else {
|
|
41
|
-
|
|
42
|
-
if (data.length > 256 && stringLength(data) > 256) {
|
|
40
|
+
if (!(-360 <= data)) {
|
|
43
41
|
if (validate.errors === null)
|
|
44
42
|
validate.errors = [];
|
|
45
|
-
validate.errors.push({ keywordLocation: "#/
|
|
43
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
46
44
|
errorCount++;
|
|
47
45
|
}
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
errorCount++;
|
|
54
|
-
}
|
|
46
|
+
if (!(360 >= data)) {
|
|
47
|
+
if (validate.errors === null)
|
|
48
|
+
validate.errors = [];
|
|
49
|
+
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
50
|
+
errorCount++;
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
return errorCount === 0;
|
|
58
54
|
};
|
|
59
|
-
const
|
|
55
|
+
const ref2 = function validate(data) {
|
|
60
56
|
validate.errors = null;
|
|
61
57
|
let errorCount = 0;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
validate.errors
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (!
|
|
58
|
+
let suberr3 = null;
|
|
59
|
+
const sub2 = (() => {
|
|
60
|
+
let errorCount = 0;
|
|
61
|
+
const err2 = validate.errors;
|
|
62
|
+
const res2 = ref3(data);
|
|
63
|
+
const suberr4 = ref3.errors;
|
|
64
|
+
validate.errors = err2;
|
|
65
|
+
if (!res2) {
|
|
70
66
|
if (validate.errors === null)
|
|
71
67
|
validate.errors = [];
|
|
72
|
-
validate.errors.push(
|
|
68
|
+
validate.errors.push(...suberr4.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
73
69
|
errorCount++;
|
|
74
70
|
}
|
|
75
|
-
|
|
71
|
+
return errorCount === 0;
|
|
72
|
+
})();
|
|
73
|
+
if (!sub2) {
|
|
74
|
+
const sub3 = (() => {
|
|
75
|
+
let errorCount = 0;
|
|
76
|
+
if (!Array.isArray(data)) {
|
|
77
|
+
if (suberr3 === null)
|
|
78
|
+
suberr3 = [];
|
|
79
|
+
suberr3.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
80
|
+
errorCount++;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
if (data.length > 2) {
|
|
84
|
+
if (suberr3 === null)
|
|
85
|
+
suberr3 = [];
|
|
86
|
+
suberr3.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
87
|
+
errorCount++;
|
|
88
|
+
}
|
|
89
|
+
if (data.length < 0) {
|
|
90
|
+
if (suberr3 === null)
|
|
91
|
+
suberr3 = [];
|
|
92
|
+
suberr3.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
93
|
+
errorCount++;
|
|
94
|
+
}
|
|
95
|
+
for (let j = 0; j < data.length; j++) {
|
|
96
|
+
if (data[j] !== undefined && hasOwn(data, j)) {
|
|
97
|
+
const err3 = validate.errors;
|
|
98
|
+
const res3 = ref3(data[j]);
|
|
99
|
+
const suberr5 = ref3.errors;
|
|
100
|
+
validate.errors = err3;
|
|
101
|
+
if (!res3) {
|
|
102
|
+
if (validate.errors === null)
|
|
103
|
+
validate.errors = [];
|
|
104
|
+
validate.errors.push(...suberr5.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + j)));
|
|
105
|
+
errorCount++;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return errorCount === 0;
|
|
111
|
+
})();
|
|
112
|
+
if (!sub3) {
|
|
76
113
|
if (validate.errors === null)
|
|
77
114
|
validate.errors = [];
|
|
78
|
-
validate.errors.push({ keywordLocation: "#/
|
|
115
|
+
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
116
|
+
if (suberr3)
|
|
117
|
+
validate.errors.push(...suberr3);
|
|
79
118
|
errorCount++;
|
|
80
119
|
}
|
|
81
120
|
}
|
|
@@ -109,53 +148,53 @@ const validate = (function () {
|
|
|
109
148
|
const ref4 = function validate(data) {
|
|
110
149
|
validate.errors = null;
|
|
111
150
|
let errorCount = 0;
|
|
112
|
-
let
|
|
113
|
-
const
|
|
151
|
+
let suberr7 = null;
|
|
152
|
+
const sub4 = (() => {
|
|
114
153
|
let errorCount = 0;
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
validate.errors =
|
|
119
|
-
if (!
|
|
154
|
+
const err5 = validate.errors;
|
|
155
|
+
const res5 = ref5(data);
|
|
156
|
+
const suberr8 = ref5.errors;
|
|
157
|
+
validate.errors = err5;
|
|
158
|
+
if (!res5) {
|
|
120
159
|
if (validate.errors === null)
|
|
121
160
|
validate.errors = [];
|
|
122
|
-
validate.errors.push(...
|
|
161
|
+
validate.errors.push(...suberr8.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
123
162
|
errorCount++;
|
|
124
163
|
}
|
|
125
164
|
return errorCount === 0;
|
|
126
165
|
})();
|
|
127
|
-
if (!
|
|
128
|
-
const
|
|
166
|
+
if (!sub4) {
|
|
167
|
+
const sub5 = (() => {
|
|
129
168
|
let errorCount = 0;
|
|
130
169
|
if (!Array.isArray(data)) {
|
|
131
|
-
if (
|
|
132
|
-
|
|
133
|
-
|
|
170
|
+
if (suberr7 === null)
|
|
171
|
+
suberr7 = [];
|
|
172
|
+
suberr7.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
134
173
|
errorCount++;
|
|
135
174
|
}
|
|
136
175
|
else {
|
|
137
176
|
if (data.length > 2) {
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
|
|
177
|
+
if (suberr7 === null)
|
|
178
|
+
suberr7 = [];
|
|
179
|
+
suberr7.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
141
180
|
errorCount++;
|
|
142
181
|
}
|
|
143
182
|
if (data.length < 0) {
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
183
|
+
if (suberr7 === null)
|
|
184
|
+
suberr7 = [];
|
|
185
|
+
suberr7.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
147
186
|
errorCount++;
|
|
148
187
|
}
|
|
149
|
-
for (let
|
|
150
|
-
if (data[
|
|
151
|
-
const
|
|
152
|
-
const
|
|
153
|
-
const
|
|
154
|
-
validate.errors =
|
|
155
|
-
if (!
|
|
188
|
+
for (let k = 0; k < data.length; k++) {
|
|
189
|
+
if (data[k] !== undefined && hasOwn(data, k)) {
|
|
190
|
+
const err6 = validate.errors;
|
|
191
|
+
const res6 = ref5(data[k]);
|
|
192
|
+
const suberr9 = ref5.errors;
|
|
193
|
+
validate.errors = err6;
|
|
194
|
+
if (!res6) {
|
|
156
195
|
if (validate.errors === null)
|
|
157
196
|
validate.errors = [];
|
|
158
|
-
validate.errors.push(...
|
|
197
|
+
validate.errors.push(...suberr9.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + k)));
|
|
159
198
|
errorCount++;
|
|
160
199
|
}
|
|
161
200
|
}
|
|
@@ -163,18 +202,18 @@ const validate = (function () {
|
|
|
163
202
|
}
|
|
164
203
|
return errorCount === 0;
|
|
165
204
|
})();
|
|
166
|
-
if (!
|
|
205
|
+
if (!sub5) {
|
|
167
206
|
if (validate.errors === null)
|
|
168
207
|
validate.errors = [];
|
|
169
208
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
170
|
-
if (
|
|
171
|
-
validate.errors.push(...
|
|
209
|
+
if (suberr7)
|
|
210
|
+
validate.errors.push(...suberr7);
|
|
172
211
|
errorCount++;
|
|
173
212
|
}
|
|
174
213
|
}
|
|
175
214
|
return errorCount === 0;
|
|
176
215
|
};
|
|
177
|
-
const
|
|
216
|
+
const ref7 = function validate(data) {
|
|
178
217
|
validate.errors = null;
|
|
179
218
|
let errorCount = 0;
|
|
180
219
|
if (!(typeof data === "number")) {
|
|
@@ -184,13 +223,13 @@ const validate = (function () {
|
|
|
184
223
|
errorCount++;
|
|
185
224
|
}
|
|
186
225
|
else {
|
|
187
|
-
if (!(
|
|
226
|
+
if (!(-1000 <= data)) {
|
|
188
227
|
if (validate.errors === null)
|
|
189
228
|
validate.errors = [];
|
|
190
229
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
191
230
|
errorCount++;
|
|
192
231
|
}
|
|
193
|
-
if (!(
|
|
232
|
+
if (!(1000 >= data)) {
|
|
194
233
|
if (validate.errors === null)
|
|
195
234
|
validate.errors = [];
|
|
196
235
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -199,65 +238,75 @@ const validate = (function () {
|
|
|
199
238
|
}
|
|
200
239
|
return errorCount === 0;
|
|
201
240
|
};
|
|
202
|
-
const
|
|
203
|
-
const ref7 = function validate(data) {
|
|
241
|
+
const ref6 = function validate(data) {
|
|
204
242
|
validate.errors = null;
|
|
205
243
|
let errorCount = 0;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
validate.errors
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
if (data.length > 130 && stringLength(data) > 130) {
|
|
244
|
+
let suberr11 = null;
|
|
245
|
+
const sub6 = (() => {
|
|
246
|
+
let errorCount = 0;
|
|
247
|
+
const err8 = validate.errors;
|
|
248
|
+
const res8 = ref7(data);
|
|
249
|
+
const suberr12 = ref7.errors;
|
|
250
|
+
validate.errors = err8;
|
|
251
|
+
if (!res8) {
|
|
215
252
|
if (validate.errors === null)
|
|
216
253
|
validate.errors = [];
|
|
217
|
-
validate.errors.push(
|
|
254
|
+
validate.errors.push(...suberr12.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
218
255
|
errorCount++;
|
|
219
256
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
257
|
+
return errorCount === 0;
|
|
258
|
+
})();
|
|
259
|
+
if (!sub6) {
|
|
260
|
+
const sub7 = (() => {
|
|
261
|
+
let errorCount = 0;
|
|
262
|
+
if (!Array.isArray(data)) {
|
|
263
|
+
if (suberr11 === null)
|
|
264
|
+
suberr11 = [];
|
|
265
|
+
suberr11.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
225
266
|
errorCount++;
|
|
226
267
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
268
|
+
else {
|
|
269
|
+
if (data.length > 2) {
|
|
270
|
+
if (suberr11 === null)
|
|
271
|
+
suberr11 = [];
|
|
272
|
+
suberr11.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
273
|
+
errorCount++;
|
|
274
|
+
}
|
|
275
|
+
if (data.length < 0) {
|
|
276
|
+
if (suberr11 === null)
|
|
277
|
+
suberr11 = [];
|
|
278
|
+
suberr11.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
279
|
+
errorCount++;
|
|
280
|
+
}
|
|
281
|
+
for (let l = 0; l < data.length; l++) {
|
|
282
|
+
if (data[l] !== undefined && hasOwn(data, l)) {
|
|
283
|
+
const err9 = validate.errors;
|
|
284
|
+
const res9 = ref7(data[l]);
|
|
285
|
+
const suberr13 = ref7.errors;
|
|
286
|
+
validate.errors = err9;
|
|
287
|
+
if (!res9) {
|
|
288
|
+
if (validate.errors === null)
|
|
289
|
+
validate.errors = [];
|
|
290
|
+
validate.errors.push(...suberr13.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + l)));
|
|
291
|
+
errorCount++;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return errorCount === 0;
|
|
297
|
+
})();
|
|
298
|
+
if (!sub7) {
|
|
244
299
|
if (validate.errors === null)
|
|
245
300
|
validate.errors = [];
|
|
246
|
-
validate.errors.push({ keywordLocation: "#/
|
|
301
|
+
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
302
|
+
if (suberr11)
|
|
303
|
+
validate.errors.push(...suberr11);
|
|
247
304
|
errorCount++;
|
|
248
305
|
}
|
|
249
|
-
if (errorCount === prev3) {
|
|
250
|
-
if (!pattern2.test(data)) {
|
|
251
|
-
if (validate.errors === null)
|
|
252
|
-
validate.errors = [];
|
|
253
|
-
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
254
|
-
errorCount++;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
306
|
}
|
|
258
307
|
return errorCount === 0;
|
|
259
308
|
};
|
|
260
|
-
const
|
|
309
|
+
const ref8 = function validate(data) {
|
|
261
310
|
validate.errors = null;
|
|
262
311
|
let errorCount = 0;
|
|
263
312
|
if (!(typeof data === "number")) {
|
|
@@ -267,13 +316,13 @@ const validate = (function () {
|
|
|
267
316
|
errorCount++;
|
|
268
317
|
}
|
|
269
318
|
else {
|
|
270
|
-
if (!(0
|
|
319
|
+
if (!(0 <= data)) {
|
|
271
320
|
if (validate.errors === null)
|
|
272
321
|
validate.errors = [];
|
|
273
322
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
274
323
|
errorCount++;
|
|
275
324
|
}
|
|
276
|
-
if (!(
|
|
325
|
+
if (!(50 >= data)) {
|
|
277
326
|
if (validate.errors === null)
|
|
278
327
|
validate.errors = [];
|
|
279
328
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -282,9 +331,8 @@ const validate = (function () {
|
|
|
282
331
|
}
|
|
283
332
|
return errorCount === 0;
|
|
284
333
|
};
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
const ref10 = function validate(data) {
|
|
334
|
+
const pattern0 = new RegExp("^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "u");
|
|
335
|
+
const ref9 = function validate(data) {
|
|
288
336
|
validate.errors = null;
|
|
289
337
|
let errorCount = 0;
|
|
290
338
|
if (!(typeof data === "string")) {
|
|
@@ -294,15 +342,15 @@ const validate = (function () {
|
|
|
294
342
|
errorCount++;
|
|
295
343
|
}
|
|
296
344
|
else {
|
|
297
|
-
const
|
|
298
|
-
if (data.length >
|
|
345
|
+
const prev1 = errorCount;
|
|
346
|
+
if (data.length > 256 && stringLength(data) > 256) {
|
|
299
347
|
if (validate.errors === null)
|
|
300
348
|
validate.errors = [];
|
|
301
349
|
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
302
350
|
errorCount++;
|
|
303
351
|
}
|
|
304
|
-
if (errorCount ===
|
|
305
|
-
if (!
|
|
352
|
+
if (errorCount === prev1) {
|
|
353
|
+
if (!pattern0.test(data)) {
|
|
306
354
|
if (validate.errors === null)
|
|
307
355
|
validate.errors = [];
|
|
308
356
|
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
@@ -312,72 +360,61 @@ const validate = (function () {
|
|
|
312
360
|
}
|
|
313
361
|
return errorCount === 0;
|
|
314
362
|
};
|
|
315
|
-
const
|
|
316
|
-
const pattern6 = new RegExp("^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
|
|
317
|
-
const ref11 = function validate(data) {
|
|
363
|
+
const ref10 = function validate(data) {
|
|
318
364
|
validate.errors = null;
|
|
319
365
|
let errorCount = 0;
|
|
320
|
-
if (!(
|
|
366
|
+
if (!Number.isInteger(data)) {
|
|
321
367
|
if (validate.errors === null)
|
|
322
368
|
validate.errors = [];
|
|
323
369
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
324
370
|
errorCount++;
|
|
325
371
|
}
|
|
326
372
|
else {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
333
|
-
errorCount++;
|
|
334
|
-
}
|
|
373
|
+
if (!(1 <= data)) {
|
|
374
|
+
if (validate.errors === null)
|
|
375
|
+
validate.errors = [];
|
|
376
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
377
|
+
errorCount++;
|
|
335
378
|
}
|
|
336
|
-
|
|
337
|
-
return errorCount === 0;
|
|
338
|
-
};
|
|
339
|
-
const pattern7 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFill$", "u");
|
|
340
|
-
const ref12 = function validate(data) {
|
|
341
|
-
validate.errors = null;
|
|
342
|
-
let errorCount = 0;
|
|
343
|
-
if (!(typeof data === "string")) {
|
|
344
|
-
if (validate.errors === null)
|
|
345
|
-
validate.errors = [];
|
|
346
|
-
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
347
|
-
errorCount++;
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
if (!(data === "solid" || data === "linear" || data === "radial")) {
|
|
379
|
+
if (!(1000 >= data)) {
|
|
351
380
|
if (validate.errors === null)
|
|
352
381
|
validate.errors = [];
|
|
353
|
-
validate.errors.push({ keywordLocation: "#/
|
|
382
|
+
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
354
383
|
errorCount++;
|
|
355
384
|
}
|
|
356
385
|
}
|
|
357
386
|
return errorCount === 0;
|
|
358
387
|
};
|
|
359
|
-
const
|
|
360
|
-
const
|
|
388
|
+
const pattern1 = new RegExp("^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$", "u");
|
|
389
|
+
const ref11 = function validate(data) {
|
|
361
390
|
validate.errors = null;
|
|
362
391
|
let errorCount = 0;
|
|
363
|
-
if (!
|
|
392
|
+
if (!(typeof data === "string")) {
|
|
364
393
|
if (validate.errors === null)
|
|
365
394
|
validate.errors = [];
|
|
366
395
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
367
396
|
errorCount++;
|
|
368
397
|
}
|
|
369
398
|
else {
|
|
370
|
-
|
|
399
|
+
const prev2 = errorCount;
|
|
400
|
+
if (data.length > 130 && stringLength(data) > 130) {
|
|
371
401
|
if (validate.errors === null)
|
|
372
402
|
validate.errors = [];
|
|
373
|
-
validate.errors.push({ keywordLocation: "#/
|
|
403
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
374
404
|
errorCount++;
|
|
375
405
|
}
|
|
406
|
+
if (errorCount === prev2) {
|
|
407
|
+
if (!pattern1.test(data)) {
|
|
408
|
+
if (validate.errors === null)
|
|
409
|
+
validate.errors = [];
|
|
410
|
+
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
411
|
+
errorCount++;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
376
414
|
}
|
|
377
415
|
return errorCount === 0;
|
|
378
416
|
};
|
|
379
|
-
const
|
|
380
|
-
const ref15 = function validate(data) {
|
|
417
|
+
const ref13 = function validate(data) {
|
|
381
418
|
validate.errors = null;
|
|
382
419
|
let errorCount = 0;
|
|
383
420
|
if (!(typeof data === "number")) {
|
|
@@ -387,13 +424,13 @@ const validate = (function () {
|
|
|
387
424
|
errorCount++;
|
|
388
425
|
}
|
|
389
426
|
else {
|
|
390
|
-
if (!(
|
|
427
|
+
if (!(0.1 <= data)) {
|
|
391
428
|
if (validate.errors === null)
|
|
392
429
|
validate.errors = [];
|
|
393
430
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
394
431
|
errorCount++;
|
|
395
432
|
}
|
|
396
|
-
if (!(
|
|
433
|
+
if (!(10 >= data)) {
|
|
397
434
|
if (validate.errors === null)
|
|
398
435
|
validate.errors = [];
|
|
399
436
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -402,56 +439,56 @@ const validate = (function () {
|
|
|
402
439
|
}
|
|
403
440
|
return errorCount === 0;
|
|
404
441
|
};
|
|
405
|
-
const
|
|
442
|
+
const ref12 = function validate(data) {
|
|
406
443
|
validate.errors = null;
|
|
407
444
|
let errorCount = 0;
|
|
408
|
-
let
|
|
409
|
-
const
|
|
445
|
+
let suberr28 = null;
|
|
446
|
+
const sub16 = (() => {
|
|
410
447
|
let errorCount = 0;
|
|
411
|
-
const
|
|
412
|
-
const
|
|
413
|
-
const
|
|
414
|
-
validate.errors =
|
|
415
|
-
if (!
|
|
448
|
+
const err20 = validate.errors;
|
|
449
|
+
const res20 = ref13(data);
|
|
450
|
+
const suberr29 = ref13.errors;
|
|
451
|
+
validate.errors = err20;
|
|
452
|
+
if (!res20) {
|
|
416
453
|
if (validate.errors === null)
|
|
417
454
|
validate.errors = [];
|
|
418
|
-
validate.errors.push(...
|
|
455
|
+
validate.errors.push(...suberr29.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
419
456
|
errorCount++;
|
|
420
457
|
}
|
|
421
458
|
return errorCount === 0;
|
|
422
459
|
})();
|
|
423
|
-
if (!
|
|
424
|
-
const
|
|
460
|
+
if (!sub16) {
|
|
461
|
+
const sub17 = (() => {
|
|
425
462
|
let errorCount = 0;
|
|
426
463
|
if (!Array.isArray(data)) {
|
|
427
|
-
if (
|
|
428
|
-
|
|
429
|
-
|
|
464
|
+
if (suberr28 === null)
|
|
465
|
+
suberr28 = [];
|
|
466
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
430
467
|
errorCount++;
|
|
431
468
|
}
|
|
432
469
|
else {
|
|
433
470
|
if (data.length > 2) {
|
|
434
|
-
if (
|
|
435
|
-
|
|
436
|
-
|
|
471
|
+
if (suberr28 === null)
|
|
472
|
+
suberr28 = [];
|
|
473
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
437
474
|
errorCount++;
|
|
438
475
|
}
|
|
439
476
|
if (data.length < 0) {
|
|
440
|
-
if (
|
|
441
|
-
|
|
442
|
-
|
|
477
|
+
if (suberr28 === null)
|
|
478
|
+
suberr28 = [];
|
|
479
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
443
480
|
errorCount++;
|
|
444
481
|
}
|
|
445
|
-
for (let
|
|
446
|
-
if (data[
|
|
447
|
-
const
|
|
448
|
-
const
|
|
449
|
-
const
|
|
450
|
-
validate.errors =
|
|
451
|
-
if (!
|
|
482
|
+
for (let q = 0; q < data.length; q++) {
|
|
483
|
+
if (data[q] !== undefined && hasOwn(data, q)) {
|
|
484
|
+
const err21 = validate.errors;
|
|
485
|
+
const res21 = ref13(data[q]);
|
|
486
|
+
const suberr30 = ref13.errors;
|
|
487
|
+
validate.errors = err21;
|
|
488
|
+
if (!res21) {
|
|
452
489
|
if (validate.errors === null)
|
|
453
490
|
validate.errors = [];
|
|
454
|
-
validate.errors.push(...
|
|
491
|
+
validate.errors.push(...suberr30.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + q)));
|
|
455
492
|
errorCount++;
|
|
456
493
|
}
|
|
457
494
|
}
|
|
@@ -459,19 +496,18 @@ const validate = (function () {
|
|
|
459
496
|
}
|
|
460
497
|
return errorCount === 0;
|
|
461
498
|
})();
|
|
462
|
-
if (!
|
|
499
|
+
if (!sub17) {
|
|
463
500
|
if (validate.errors === null)
|
|
464
501
|
validate.errors = [];
|
|
465
502
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
466
|
-
if (
|
|
467
|
-
validate.errors.push(...
|
|
503
|
+
if (suberr28)
|
|
504
|
+
validate.errors.push(...suberr28);
|
|
468
505
|
errorCount++;
|
|
469
506
|
}
|
|
470
507
|
}
|
|
471
508
|
return errorCount === 0;
|
|
472
509
|
};
|
|
473
|
-
const
|
|
474
|
-
const ref17 = function validate(data) {
|
|
510
|
+
const ref15 = function validate(data) {
|
|
475
511
|
validate.errors = null;
|
|
476
512
|
let errorCount = 0;
|
|
477
513
|
if (!(typeof data === "number")) {
|
|
@@ -481,13 +517,13 @@ const validate = (function () {
|
|
|
481
517
|
errorCount++;
|
|
482
518
|
}
|
|
483
519
|
else {
|
|
484
|
-
if (!(-
|
|
520
|
+
if (!(-3600 <= data)) {
|
|
485
521
|
if (validate.errors === null)
|
|
486
522
|
validate.errors = [];
|
|
487
523
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
488
524
|
errorCount++;
|
|
489
525
|
}
|
|
490
|
-
if (!(
|
|
526
|
+
if (!(3600 >= data)) {
|
|
491
527
|
if (validate.errors === null)
|
|
492
528
|
validate.errors = [];
|
|
493
529
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -496,56 +532,56 @@ const validate = (function () {
|
|
|
496
532
|
}
|
|
497
533
|
return errorCount === 0;
|
|
498
534
|
};
|
|
499
|
-
const
|
|
535
|
+
const ref14 = function validate(data) {
|
|
500
536
|
validate.errors = null;
|
|
501
537
|
let errorCount = 0;
|
|
502
|
-
let
|
|
503
|
-
const
|
|
538
|
+
let suberr32 = null;
|
|
539
|
+
const sub18 = (() => {
|
|
504
540
|
let errorCount = 0;
|
|
505
|
-
const
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
validate.errors =
|
|
509
|
-
if (!
|
|
541
|
+
const err23 = validate.errors;
|
|
542
|
+
const res23 = ref15(data);
|
|
543
|
+
const suberr33 = ref15.errors;
|
|
544
|
+
validate.errors = err23;
|
|
545
|
+
if (!res23) {
|
|
510
546
|
if (validate.errors === null)
|
|
511
547
|
validate.errors = [];
|
|
512
|
-
validate.errors.push(...
|
|
548
|
+
validate.errors.push(...suberr33.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
513
549
|
errorCount++;
|
|
514
550
|
}
|
|
515
551
|
return errorCount === 0;
|
|
516
552
|
})();
|
|
517
|
-
if (!
|
|
518
|
-
const
|
|
553
|
+
if (!sub18) {
|
|
554
|
+
const sub19 = (() => {
|
|
519
555
|
let errorCount = 0;
|
|
520
556
|
if (!Array.isArray(data)) {
|
|
521
|
-
if (
|
|
522
|
-
|
|
523
|
-
|
|
557
|
+
if (suberr32 === null)
|
|
558
|
+
suberr32 = [];
|
|
559
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
524
560
|
errorCount++;
|
|
525
561
|
}
|
|
526
562
|
else {
|
|
527
563
|
if (data.length > 2) {
|
|
528
|
-
if (
|
|
529
|
-
|
|
530
|
-
|
|
564
|
+
if (suberr32 === null)
|
|
565
|
+
suberr32 = [];
|
|
566
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
531
567
|
errorCount++;
|
|
532
568
|
}
|
|
533
569
|
if (data.length < 0) {
|
|
534
|
-
if (
|
|
535
|
-
|
|
536
|
-
|
|
570
|
+
if (suberr32 === null)
|
|
571
|
+
suberr32 = [];
|
|
572
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
537
573
|
errorCount++;
|
|
538
574
|
}
|
|
539
|
-
for (let
|
|
540
|
-
if (data[
|
|
541
|
-
const
|
|
542
|
-
const
|
|
543
|
-
const
|
|
544
|
-
validate.errors =
|
|
545
|
-
if (!
|
|
575
|
+
for (let r = 0; r < data.length; r++) {
|
|
576
|
+
if (data[r] !== undefined && hasOwn(data, r)) {
|
|
577
|
+
const err24 = validate.errors;
|
|
578
|
+
const res24 = ref15(data[r]);
|
|
579
|
+
const suberr34 = ref15.errors;
|
|
580
|
+
validate.errors = err24;
|
|
581
|
+
if (!res24) {
|
|
546
582
|
if (validate.errors === null)
|
|
547
583
|
validate.errors = [];
|
|
548
|
-
validate.errors.push(...
|
|
584
|
+
validate.errors.push(...suberr34.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + r)));
|
|
549
585
|
errorCount++;
|
|
550
586
|
}
|
|
551
587
|
}
|
|
@@ -553,50 +589,150 @@ const validate = (function () {
|
|
|
553
589
|
}
|
|
554
590
|
return errorCount === 0;
|
|
555
591
|
})();
|
|
556
|
-
if (!
|
|
592
|
+
if (!sub19) {
|
|
557
593
|
if (validate.errors === null)
|
|
558
594
|
validate.errors = [];
|
|
559
595
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
560
|
-
if (
|
|
561
|
-
validate.errors.push(...
|
|
596
|
+
if (suberr32)
|
|
597
|
+
validate.errors.push(...suberr32);
|
|
562
598
|
errorCount++;
|
|
563
599
|
}
|
|
564
600
|
}
|
|
565
601
|
return errorCount === 0;
|
|
566
602
|
};
|
|
567
|
-
const
|
|
603
|
+
const pattern2 = new RegExp("^[a-z][a-zA-Z0-9]*Variant$", "u");
|
|
604
|
+
const pattern3 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
|
|
605
|
+
const ref16 = function validate(data) {
|
|
568
606
|
validate.errors = null;
|
|
569
607
|
let errorCount = 0;
|
|
570
|
-
if (!(typeof data === "
|
|
608
|
+
if (!(typeof data === "string")) {
|
|
571
609
|
if (validate.errors === null)
|
|
572
610
|
validate.errors = [];
|
|
573
611
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
574
612
|
errorCount++;
|
|
575
613
|
}
|
|
576
614
|
else {
|
|
577
|
-
const
|
|
578
|
-
if (
|
|
615
|
+
const prev3 = errorCount;
|
|
616
|
+
if (data.length > 64 && stringLength(data) > 64) {
|
|
579
617
|
if (validate.errors === null)
|
|
580
618
|
validate.errors = [];
|
|
581
|
-
validate.errors.push({ keywordLocation: "#/
|
|
619
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
582
620
|
errorCount++;
|
|
583
621
|
}
|
|
584
|
-
|
|
585
|
-
if (
|
|
622
|
+
if (errorCount === prev3) {
|
|
623
|
+
if (!pattern3.test(data)) {
|
|
586
624
|
if (validate.errors === null)
|
|
587
625
|
validate.errors = [];
|
|
588
|
-
validate.errors.push({ keywordLocation: "#/
|
|
626
|
+
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
589
627
|
errorCount++;
|
|
590
628
|
}
|
|
591
629
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
630
|
+
}
|
|
631
|
+
return errorCount === 0;
|
|
632
|
+
};
|
|
633
|
+
const pattern4 = new RegExp("^[a-z][a-zA-Z0-9]*Probability$", "u");
|
|
634
|
+
const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*Color$", "u");
|
|
635
|
+
const pattern6 = new RegExp("^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
|
|
636
|
+
const ref17 = function validate(data) {
|
|
637
|
+
validate.errors = null;
|
|
638
|
+
let errorCount = 0;
|
|
639
|
+
if (!(typeof data === "string")) {
|
|
640
|
+
if (validate.errors === null)
|
|
641
|
+
validate.errors = [];
|
|
642
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
643
|
+
errorCount++;
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
const prev4 = errorCount;
|
|
647
|
+
if (errorCount === prev4) {
|
|
648
|
+
if (!pattern6.test(data)) {
|
|
649
|
+
if (validate.errors === null)
|
|
650
|
+
validate.errors = [];
|
|
651
|
+
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
652
|
+
errorCount++;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return errorCount === 0;
|
|
657
|
+
};
|
|
658
|
+
const pattern7 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFill$", "u");
|
|
659
|
+
const ref18 = function validate(data) {
|
|
660
|
+
validate.errors = null;
|
|
661
|
+
let errorCount = 0;
|
|
662
|
+
if (!(typeof data === "string")) {
|
|
663
|
+
if (validate.errors === null)
|
|
664
|
+
validate.errors = [];
|
|
665
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
666
|
+
errorCount++;
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
if (!(data === "solid" || data === "linear" || data === "radial")) {
|
|
670
|
+
if (validate.errors === null)
|
|
671
|
+
validate.errors = [];
|
|
672
|
+
validate.errors.push({ keywordLocation: "#/enum", instanceLocation: "#" });
|
|
673
|
+
errorCount++;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return errorCount === 0;
|
|
677
|
+
};
|
|
678
|
+
const pattern8 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFillStops$", "u");
|
|
679
|
+
const ref19 = function validate(data) {
|
|
680
|
+
validate.errors = null;
|
|
681
|
+
let errorCount = 0;
|
|
682
|
+
if (!Number.isInteger(data)) {
|
|
683
|
+
if (validate.errors === null)
|
|
684
|
+
validate.errors = [];
|
|
685
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
686
|
+
errorCount++;
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
if (!(2 <= data)) {
|
|
690
|
+
if (validate.errors === null)
|
|
691
|
+
validate.errors = [];
|
|
692
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
693
|
+
errorCount++;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
return errorCount === 0;
|
|
697
|
+
};
|
|
698
|
+
const pattern9 = new RegExp("^[a-z][a-zA-Z0-9]*ColorAngle$", "u");
|
|
699
|
+
const pattern10 = new RegExp("^[a-z][a-zA-Z0-9]*ColorOrder$", "u");
|
|
700
|
+
const pattern11 = new RegExp("^[a-z][a-zA-Z0-9]*Animation$", "u");
|
|
701
|
+
const pattern12 = new RegExp("^[a-z][a-zA-Z0-9]*AnimationSpeed$", "u");
|
|
702
|
+
const pattern13 = new RegExp("^[a-z][a-zA-Z0-9]*AnimationDelay$", "u");
|
|
703
|
+
const ref0 = function validate(data) {
|
|
704
|
+
validate.errors = null;
|
|
705
|
+
let errorCount = 0;
|
|
706
|
+
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
707
|
+
if (validate.errors === null)
|
|
708
|
+
validate.errors = [];
|
|
709
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
710
|
+
errorCount++;
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
const prev0 = errorCount;
|
|
714
|
+
if (Object.keys(data).length > 512) {
|
|
715
|
+
if (validate.errors === null)
|
|
716
|
+
validate.errors = [];
|
|
717
|
+
validate.errors.push({ keywordLocation: "#/maxProperties", instanceLocation: "#" });
|
|
718
|
+
errorCount++;
|
|
719
|
+
}
|
|
720
|
+
for (const key0 of Object.keys(data)) {
|
|
721
|
+
if (key0.length > 128 && stringLength(key0) > 128) {
|
|
722
|
+
if (validate.errors === null)
|
|
723
|
+
validate.errors = [];
|
|
724
|
+
validate.errors.push({ keywordLocation: "#/propertyNames/maxLength", instanceLocation: "#/" + pointerPart(key0) });
|
|
725
|
+
errorCount++;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
if (data.seed !== undefined && hasOwn(data, "seed")) {
|
|
729
|
+
if (!(typeof data.seed === "string")) {
|
|
730
|
+
if (validate.errors === null)
|
|
731
|
+
validate.errors = [];
|
|
732
|
+
validate.errors.push({ keywordLocation: "#/properties/seed/type", instanceLocation: "#/seed" });
|
|
733
|
+
errorCount++;
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
600
736
|
if (data.seed.length > 1024 && stringLength(data.seed) > 1024) {
|
|
601
737
|
if (validate.errors === null)
|
|
602
738
|
validate.errors = [];
|
|
@@ -716,160 +852,66 @@ const validate = (function () {
|
|
|
716
852
|
}
|
|
717
853
|
}
|
|
718
854
|
}
|
|
719
|
-
if (data.
|
|
720
|
-
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
validate.errors = [];
|
|
730
|
-
validate.errors.push(...suberr4.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/0/$ref", "#/fontFamily")));
|
|
731
|
-
errorCount++;
|
|
732
|
-
}
|
|
733
|
-
return errorCount === 0;
|
|
734
|
-
})();
|
|
735
|
-
if (!sub2) {
|
|
736
|
-
const sub3 = (() => {
|
|
737
|
-
let errorCount = 0;
|
|
738
|
-
if (!Array.isArray(data.fontFamily)) {
|
|
739
|
-
if (suberr3 === null)
|
|
740
|
-
suberr3 = [];
|
|
741
|
-
suberr3.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/type", instanceLocation: "#/fontFamily" });
|
|
742
|
-
errorCount++;
|
|
743
|
-
}
|
|
744
|
-
else {
|
|
745
|
-
if (data.fontFamily.length > 128) {
|
|
746
|
-
if (suberr3 === null)
|
|
747
|
-
suberr3 = [];
|
|
748
|
-
suberr3.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/maxItems", instanceLocation: "#/fontFamily" });
|
|
749
|
-
errorCount++;
|
|
750
|
-
}
|
|
751
|
-
if (data.fontFamily.length < 0) {
|
|
752
|
-
if (suberr3 === null)
|
|
753
|
-
suberr3 = [];
|
|
754
|
-
suberr3.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/minItems", instanceLocation: "#/fontFamily" });
|
|
755
|
-
errorCount++;
|
|
756
|
-
}
|
|
757
|
-
for (let j = 0; j < data.fontFamily.length; j++) {
|
|
758
|
-
if (data.fontFamily[j] !== undefined && hasOwn(data.fontFamily, j)) {
|
|
759
|
-
const err3 = validate.errors;
|
|
760
|
-
const res3 = ref2(data.fontFamily[j]);
|
|
761
|
-
const suberr5 = ref2.errors;
|
|
762
|
-
validate.errors = err3;
|
|
763
|
-
if (!res3) {
|
|
764
|
-
if (validate.errors === null)
|
|
765
|
-
validate.errors = [];
|
|
766
|
-
validate.errors.push(...suberr5.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/1/items/$ref", "#/fontFamily/" + j)));
|
|
767
|
-
errorCount++;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
return errorCount === 0;
|
|
773
|
-
})();
|
|
774
|
-
if (!sub3) {
|
|
775
|
-
if (validate.errors === null)
|
|
776
|
-
validate.errors = [];
|
|
777
|
-
validate.errors.push({ keywordLocation: "#/properties/fontFamily/anyOf", instanceLocation: "#/fontFamily" });
|
|
778
|
-
if (suberr3)
|
|
779
|
-
validate.errors.push(...suberr3);
|
|
780
|
-
errorCount++;
|
|
781
|
-
}
|
|
855
|
+
if (data.rotate !== undefined && hasOwn(data, "rotate")) {
|
|
856
|
+
const err4 = validate.errors;
|
|
857
|
+
const res4 = ref2(data.rotate);
|
|
858
|
+
const suberr6 = ref2.errors;
|
|
859
|
+
validate.errors = err4;
|
|
860
|
+
if (!res4) {
|
|
861
|
+
if (validate.errors === null)
|
|
862
|
+
validate.errors = [];
|
|
863
|
+
validate.errors.push(...suberr6.map(e => errorMerge(e, "#/properties/rotate/allOf/0/$ref", "#/rotate")));
|
|
864
|
+
errorCount++;
|
|
782
865
|
}
|
|
783
866
|
}
|
|
784
|
-
if (data.
|
|
785
|
-
|
|
786
|
-
const
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
validate.errors = [];
|
|
795
|
-
validate.errors.push(...suberr7.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/0/$ref", "#/fontWeight")));
|
|
796
|
-
errorCount++;
|
|
797
|
-
}
|
|
798
|
-
return errorCount === 0;
|
|
799
|
-
})();
|
|
800
|
-
if (!sub4) {
|
|
801
|
-
const sub5 = (() => {
|
|
802
|
-
let errorCount = 0;
|
|
803
|
-
if (!Array.isArray(data.fontWeight)) {
|
|
804
|
-
if (suberr6 === null)
|
|
805
|
-
suberr6 = [];
|
|
806
|
-
suberr6.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/type", instanceLocation: "#/fontWeight" });
|
|
807
|
-
errorCount++;
|
|
808
|
-
}
|
|
809
|
-
else {
|
|
810
|
-
if (data.fontWeight.length > 128) {
|
|
811
|
-
if (suberr6 === null)
|
|
812
|
-
suberr6 = [];
|
|
813
|
-
suberr6.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/maxItems", instanceLocation: "#/fontWeight" });
|
|
814
|
-
errorCount++;
|
|
815
|
-
}
|
|
816
|
-
if (data.fontWeight.length < 0) {
|
|
817
|
-
if (suberr6 === null)
|
|
818
|
-
suberr6 = [];
|
|
819
|
-
suberr6.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/minItems", instanceLocation: "#/fontWeight" });
|
|
820
|
-
errorCount++;
|
|
821
|
-
}
|
|
822
|
-
for (let k = 0; k < data.fontWeight.length; k++) {
|
|
823
|
-
if (data.fontWeight[k] !== undefined && hasOwn(data.fontWeight, k)) {
|
|
824
|
-
const err5 = validate.errors;
|
|
825
|
-
const res5 = ref3(data.fontWeight[k]);
|
|
826
|
-
const suberr8 = ref3.errors;
|
|
827
|
-
validate.errors = err5;
|
|
828
|
-
if (!res5) {
|
|
829
|
-
if (validate.errors === null)
|
|
830
|
-
validate.errors = [];
|
|
831
|
-
validate.errors.push(...suberr8.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/1/items/$ref", "#/fontWeight/" + k)));
|
|
832
|
-
errorCount++;
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
return errorCount === 0;
|
|
838
|
-
})();
|
|
839
|
-
if (!sub5) {
|
|
840
|
-
if (validate.errors === null)
|
|
841
|
-
validate.errors = [];
|
|
842
|
-
validate.errors.push({ keywordLocation: "#/properties/fontWeight/anyOf", instanceLocation: "#/fontWeight" });
|
|
843
|
-
if (suberr6)
|
|
844
|
-
validate.errors.push(...suberr6);
|
|
845
|
-
errorCount++;
|
|
846
|
-
}
|
|
867
|
+
if (data.scale !== undefined && hasOwn(data, "scale")) {
|
|
868
|
+
const err7 = validate.errors;
|
|
869
|
+
const res7 = ref4(data.scale);
|
|
870
|
+
const suberr10 = ref4.errors;
|
|
871
|
+
validate.errors = err7;
|
|
872
|
+
if (!res7) {
|
|
873
|
+
if (validate.errors === null)
|
|
874
|
+
validate.errors = [];
|
|
875
|
+
validate.errors.push(...suberr10.map(e => errorMerge(e, "#/properties/scale/allOf/0/$ref", "#/scale")));
|
|
876
|
+
errorCount++;
|
|
847
877
|
}
|
|
848
878
|
}
|
|
849
|
-
if (data.
|
|
850
|
-
const
|
|
851
|
-
const
|
|
852
|
-
const
|
|
853
|
-
validate.errors =
|
|
854
|
-
if (!
|
|
879
|
+
if (data.translateX !== undefined && hasOwn(data, "translateX")) {
|
|
880
|
+
const err10 = validate.errors;
|
|
881
|
+
const res10 = ref6(data.translateX);
|
|
882
|
+
const suberr14 = ref6.errors;
|
|
883
|
+
validate.errors = err10;
|
|
884
|
+
if (!res10) {
|
|
855
885
|
if (validate.errors === null)
|
|
856
886
|
validate.errors = [];
|
|
857
|
-
validate.errors.push(...
|
|
887
|
+
validate.errors.push(...suberr14.map(e => errorMerge(e, "#/properties/translateX/allOf/0/$ref", "#/translateX")));
|
|
888
|
+
errorCount++;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
if (data.translateY !== undefined && hasOwn(data, "translateY")) {
|
|
892
|
+
const err11 = validate.errors;
|
|
893
|
+
const res11 = ref6(data.translateY);
|
|
894
|
+
const suberr15 = ref6.errors;
|
|
895
|
+
validate.errors = err11;
|
|
896
|
+
if (!res11) {
|
|
897
|
+
if (validate.errors === null)
|
|
898
|
+
validate.errors = [];
|
|
899
|
+
validate.errors.push(...suberr15.map(e => errorMerge(e, "#/properties/translateY/allOf/0/$ref", "#/translateY")));
|
|
858
900
|
errorCount++;
|
|
859
901
|
}
|
|
860
902
|
}
|
|
861
903
|
if (data.borderRadius !== undefined && hasOwn(data, "borderRadius")) {
|
|
862
|
-
let
|
|
904
|
+
let suberr16 = null;
|
|
863
905
|
const sub8 = (() => {
|
|
864
906
|
let errorCount = 0;
|
|
865
|
-
const
|
|
866
|
-
const
|
|
867
|
-
const
|
|
868
|
-
validate.errors =
|
|
869
|
-
if (!
|
|
907
|
+
const err12 = validate.errors;
|
|
908
|
+
const res12 = ref8(data.borderRadius);
|
|
909
|
+
const suberr17 = ref8.errors;
|
|
910
|
+
validate.errors = err12;
|
|
911
|
+
if (!res12) {
|
|
870
912
|
if (validate.errors === null)
|
|
871
913
|
validate.errors = [];
|
|
872
|
-
validate.errors.push(...
|
|
914
|
+
validate.errors.push(...suberr17.map(e => errorMerge(e, "#/properties/borderRadius/anyOf/0/$ref", "#/borderRadius")));
|
|
873
915
|
errorCount++;
|
|
874
916
|
}
|
|
875
917
|
return errorCount === 0;
|
|
@@ -878,34 +920,34 @@ const validate = (function () {
|
|
|
878
920
|
const sub9 = (() => {
|
|
879
921
|
let errorCount = 0;
|
|
880
922
|
if (!Array.isArray(data.borderRadius)) {
|
|
881
|
-
if (
|
|
882
|
-
|
|
883
|
-
|
|
923
|
+
if (suberr16 === null)
|
|
924
|
+
suberr16 = [];
|
|
925
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/type", instanceLocation: "#/borderRadius" });
|
|
884
926
|
errorCount++;
|
|
885
927
|
}
|
|
886
928
|
else {
|
|
887
929
|
if (data.borderRadius.length > 2) {
|
|
888
|
-
if (
|
|
889
|
-
|
|
890
|
-
|
|
930
|
+
if (suberr16 === null)
|
|
931
|
+
suberr16 = [];
|
|
932
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/maxItems", instanceLocation: "#/borderRadius" });
|
|
891
933
|
errorCount++;
|
|
892
934
|
}
|
|
893
935
|
if (data.borderRadius.length < 0) {
|
|
894
|
-
if (
|
|
895
|
-
|
|
896
|
-
|
|
936
|
+
if (suberr16 === null)
|
|
937
|
+
suberr16 = [];
|
|
938
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/minItems", instanceLocation: "#/borderRadius" });
|
|
897
939
|
errorCount++;
|
|
898
940
|
}
|
|
899
941
|
for (let m = 0; m < data.borderRadius.length; m++) {
|
|
900
942
|
if (data.borderRadius[m] !== undefined && hasOwn(data.borderRadius, m)) {
|
|
901
|
-
const
|
|
902
|
-
const
|
|
903
|
-
const
|
|
904
|
-
validate.errors =
|
|
905
|
-
if (!
|
|
943
|
+
const err13 = validate.errors;
|
|
944
|
+
const res13 = ref8(data.borderRadius[m]);
|
|
945
|
+
const suberr18 = ref8.errors;
|
|
946
|
+
validate.errors = err13;
|
|
947
|
+
if (!res13) {
|
|
906
948
|
if (validate.errors === null)
|
|
907
949
|
validate.errors = [];
|
|
908
|
-
validate.errors.push(...
|
|
950
|
+
validate.errors.push(...suberr18.map(e => errorMerge(e, "#/properties/borderRadius/anyOf/1/items/$ref", "#/borderRadius/" + m)));
|
|
909
951
|
errorCount++;
|
|
910
952
|
}
|
|
911
953
|
}
|
|
@@ -917,24 +959,24 @@ const validate = (function () {
|
|
|
917
959
|
if (validate.errors === null)
|
|
918
960
|
validate.errors = [];
|
|
919
961
|
validate.errors.push({ keywordLocation: "#/properties/borderRadius/anyOf", instanceLocation: "#/borderRadius" });
|
|
920
|
-
if (
|
|
921
|
-
validate.errors.push(...
|
|
962
|
+
if (suberr16)
|
|
963
|
+
validate.errors.push(...suberr16);
|
|
922
964
|
errorCount++;
|
|
923
965
|
}
|
|
924
966
|
}
|
|
925
967
|
}
|
|
926
|
-
if (data.
|
|
927
|
-
let
|
|
968
|
+
if (data.fontFamily !== undefined && hasOwn(data, "fontFamily")) {
|
|
969
|
+
let suberr19 = null;
|
|
928
970
|
const sub10 = (() => {
|
|
929
971
|
let errorCount = 0;
|
|
930
|
-
const
|
|
931
|
-
const
|
|
932
|
-
const
|
|
933
|
-
validate.errors =
|
|
934
|
-
if (!
|
|
972
|
+
const err14 = validate.errors;
|
|
973
|
+
const res14 = ref9(data.fontFamily);
|
|
974
|
+
const suberr20 = ref9.errors;
|
|
975
|
+
validate.errors = err14;
|
|
976
|
+
if (!res14) {
|
|
935
977
|
if (validate.errors === null)
|
|
936
978
|
validate.errors = [];
|
|
937
|
-
validate.errors.push(...
|
|
979
|
+
validate.errors.push(...suberr20.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/0/$ref", "#/fontFamily")));
|
|
938
980
|
errorCount++;
|
|
939
981
|
}
|
|
940
982
|
return errorCount === 0;
|
|
@@ -942,35 +984,35 @@ const validate = (function () {
|
|
|
942
984
|
if (!sub10) {
|
|
943
985
|
const sub11 = (() => {
|
|
944
986
|
let errorCount = 0;
|
|
945
|
-
if (!Array.isArray(data.
|
|
946
|
-
if (
|
|
947
|
-
|
|
948
|
-
|
|
987
|
+
if (!Array.isArray(data.fontFamily)) {
|
|
988
|
+
if (suberr19 === null)
|
|
989
|
+
suberr19 = [];
|
|
990
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/type", instanceLocation: "#/fontFamily" });
|
|
949
991
|
errorCount++;
|
|
950
992
|
}
|
|
951
993
|
else {
|
|
952
|
-
if (data.
|
|
953
|
-
if (
|
|
954
|
-
|
|
955
|
-
|
|
994
|
+
if (data.fontFamily.length > 128) {
|
|
995
|
+
if (suberr19 === null)
|
|
996
|
+
suberr19 = [];
|
|
997
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/maxItems", instanceLocation: "#/fontFamily" });
|
|
956
998
|
errorCount++;
|
|
957
999
|
}
|
|
958
|
-
if (data.
|
|
959
|
-
if (
|
|
960
|
-
|
|
961
|
-
|
|
1000
|
+
if (data.fontFamily.length < 0) {
|
|
1001
|
+
if (suberr19 === null)
|
|
1002
|
+
suberr19 = [];
|
|
1003
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/minItems", instanceLocation: "#/fontFamily" });
|
|
962
1004
|
errorCount++;
|
|
963
1005
|
}
|
|
964
|
-
for (let n = 0; n < data.
|
|
965
|
-
if (data.
|
|
966
|
-
const
|
|
967
|
-
const
|
|
968
|
-
const
|
|
969
|
-
validate.errors =
|
|
970
|
-
if (!
|
|
1006
|
+
for (let n = 0; n < data.fontFamily.length; n++) {
|
|
1007
|
+
if (data.fontFamily[n] !== undefined && hasOwn(data.fontFamily, n)) {
|
|
1008
|
+
const err15 = validate.errors;
|
|
1009
|
+
const res15 = ref9(data.fontFamily[n]);
|
|
1010
|
+
const suberr21 = ref9.errors;
|
|
1011
|
+
validate.errors = err15;
|
|
1012
|
+
if (!res15) {
|
|
971
1013
|
if (validate.errors === null)
|
|
972
1014
|
validate.errors = [];
|
|
973
|
-
validate.errors.push(...
|
|
1015
|
+
validate.errors.push(...suberr21.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/1/items/$ref", "#/fontFamily/" + n)));
|
|
974
1016
|
errorCount++;
|
|
975
1017
|
}
|
|
976
1018
|
}
|
|
@@ -981,21 +1023,25 @@ const validate = (function () {
|
|
|
981
1023
|
if (!sub11) {
|
|
982
1024
|
if (validate.errors === null)
|
|
983
1025
|
validate.errors = [];
|
|
984
|
-
validate.errors.push({ keywordLocation: "#/properties/
|
|
985
|
-
if (
|
|
986
|
-
validate.errors.push(...
|
|
1026
|
+
validate.errors.push({ keywordLocation: "#/properties/fontFamily/anyOf", instanceLocation: "#/fontFamily" });
|
|
1027
|
+
if (suberr19)
|
|
1028
|
+
validate.errors.push(...suberr19);
|
|
987
1029
|
errorCount++;
|
|
988
1030
|
}
|
|
989
1031
|
}
|
|
990
1032
|
}
|
|
991
|
-
if (data.
|
|
992
|
-
let
|
|
1033
|
+
if (data.fontWeight !== undefined && hasOwn(data, "fontWeight")) {
|
|
1034
|
+
let suberr22 = null;
|
|
993
1035
|
const sub12 = (() => {
|
|
994
1036
|
let errorCount = 0;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1037
|
+
const err16 = validate.errors;
|
|
1038
|
+
const res16 = ref10(data.fontWeight);
|
|
1039
|
+
const suberr23 = ref10.errors;
|
|
1040
|
+
validate.errors = err16;
|
|
1041
|
+
if (!res16) {
|
|
1042
|
+
if (validate.errors === null)
|
|
1043
|
+
validate.errors = [];
|
|
1044
|
+
validate.errors.push(...suberr23.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/0/$ref", "#/fontWeight")));
|
|
999
1045
|
errorCount++;
|
|
1000
1046
|
}
|
|
1001
1047
|
return errorCount === 0;
|
|
@@ -1003,116 +1049,100 @@ const validate = (function () {
|
|
|
1003
1049
|
if (!sub12) {
|
|
1004
1050
|
const sub13 = (() => {
|
|
1005
1051
|
let errorCount = 0;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
if (!res13) {
|
|
1011
|
-
if (validate.errors === null)
|
|
1012
|
-
validate.errors = [];
|
|
1013
|
-
validate.errors.push(...suberr20.map(e => errorMerge(e, "#/properties/animation/anyOf/1/$ref", "#/animation")));
|
|
1052
|
+
if (!Array.isArray(data.fontWeight)) {
|
|
1053
|
+
if (suberr22 === null)
|
|
1054
|
+
suberr22 = [];
|
|
1055
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/type", instanceLocation: "#/fontWeight" });
|
|
1014
1056
|
errorCount++;
|
|
1015
1057
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
if (!Array.isArray(data.animation)) {
|
|
1022
|
-
if (suberr19 === null)
|
|
1023
|
-
suberr19 = [];
|
|
1024
|
-
suberr19.push({ keywordLocation: "#/properties/animation/anyOf/2/type", instanceLocation: "#/animation" });
|
|
1058
|
+
else {
|
|
1059
|
+
if (data.fontWeight.length > 128) {
|
|
1060
|
+
if (suberr22 === null)
|
|
1061
|
+
suberr22 = [];
|
|
1062
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/maxItems", instanceLocation: "#/fontWeight" });
|
|
1025
1063
|
errorCount++;
|
|
1026
1064
|
}
|
|
1027
|
-
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
if (data.
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
const suberr21 = ref8.errors;
|
|
1045
|
-
validate.errors = err14;
|
|
1046
|
-
if (!res14) {
|
|
1047
|
-
if (validate.errors === null)
|
|
1048
|
-
validate.errors = [];
|
|
1049
|
-
validate.errors.push(...suberr21.map(e => errorMerge(e, "#/properties/animation/anyOf/2/items/$ref", "#/animation/" + o)));
|
|
1050
|
-
errorCount++;
|
|
1051
|
-
}
|
|
1065
|
+
if (data.fontWeight.length < 0) {
|
|
1066
|
+
if (suberr22 === null)
|
|
1067
|
+
suberr22 = [];
|
|
1068
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/minItems", instanceLocation: "#/fontWeight" });
|
|
1069
|
+
errorCount++;
|
|
1070
|
+
}
|
|
1071
|
+
for (let o = 0; o < data.fontWeight.length; o++) {
|
|
1072
|
+
if (data.fontWeight[o] !== undefined && hasOwn(data.fontWeight, o)) {
|
|
1073
|
+
const err17 = validate.errors;
|
|
1074
|
+
const res17 = ref10(data.fontWeight[o]);
|
|
1075
|
+
const suberr24 = ref10.errors;
|
|
1076
|
+
validate.errors = err17;
|
|
1077
|
+
if (!res17) {
|
|
1078
|
+
if (validate.errors === null)
|
|
1079
|
+
validate.errors = [];
|
|
1080
|
+
validate.errors.push(...suberr24.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/1/items/$ref", "#/fontWeight/" + o)));
|
|
1081
|
+
errorCount++;
|
|
1052
1082
|
}
|
|
1053
1083
|
}
|
|
1054
1084
|
}
|
|
1055
|
-
return errorCount === 0;
|
|
1056
|
-
})();
|
|
1057
|
-
if (!sub14) {
|
|
1058
|
-
if (validate.errors === null)
|
|
1059
|
-
validate.errors = [];
|
|
1060
|
-
validate.errors.push({ keywordLocation: "#/properties/animation/anyOf", instanceLocation: "#/animation" });
|
|
1061
|
-
if (suberr19)
|
|
1062
|
-
validate.errors.push(...suberr19);
|
|
1063
|
-
errorCount++;
|
|
1064
1085
|
}
|
|
1086
|
+
return errorCount === 0;
|
|
1087
|
+
})();
|
|
1088
|
+
if (!sub13) {
|
|
1089
|
+
if (validate.errors === null)
|
|
1090
|
+
validate.errors = [];
|
|
1091
|
+
validate.errors.push({ keywordLocation: "#/properties/fontWeight/anyOf", instanceLocation: "#/fontWeight" });
|
|
1092
|
+
if (suberr22)
|
|
1093
|
+
validate.errors.push(...suberr22);
|
|
1094
|
+
errorCount++;
|
|
1065
1095
|
}
|
|
1066
1096
|
}
|
|
1067
1097
|
}
|
|
1068
|
-
if (data.
|
|
1069
|
-
let
|
|
1070
|
-
const
|
|
1098
|
+
if (data.tags !== undefined && hasOwn(data, "tags")) {
|
|
1099
|
+
let suberr25 = null;
|
|
1100
|
+
const sub14 = (() => {
|
|
1071
1101
|
let errorCount = 0;
|
|
1072
|
-
const
|
|
1073
|
-
const
|
|
1074
|
-
const
|
|
1075
|
-
validate.errors =
|
|
1076
|
-
if (!
|
|
1102
|
+
const err18 = validate.errors;
|
|
1103
|
+
const res18 = ref11(data.tags);
|
|
1104
|
+
const suberr26 = ref11.errors;
|
|
1105
|
+
validate.errors = err18;
|
|
1106
|
+
if (!res18) {
|
|
1077
1107
|
if (validate.errors === null)
|
|
1078
1108
|
validate.errors = [];
|
|
1079
|
-
validate.errors.push(...
|
|
1109
|
+
validate.errors.push(...suberr26.map(e => errorMerge(e, "#/properties/tags/anyOf/0/$ref", "#/tags")));
|
|
1080
1110
|
errorCount++;
|
|
1081
1111
|
}
|
|
1082
1112
|
return errorCount === 0;
|
|
1083
1113
|
})();
|
|
1084
|
-
if (!
|
|
1085
|
-
const
|
|
1114
|
+
if (!sub14) {
|
|
1115
|
+
const sub15 = (() => {
|
|
1086
1116
|
let errorCount = 0;
|
|
1087
|
-
if (!Array.isArray(data.
|
|
1088
|
-
if (
|
|
1089
|
-
|
|
1090
|
-
|
|
1117
|
+
if (!Array.isArray(data.tags)) {
|
|
1118
|
+
if (suberr25 === null)
|
|
1119
|
+
suberr25 = [];
|
|
1120
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/type", instanceLocation: "#/tags" });
|
|
1091
1121
|
errorCount++;
|
|
1092
1122
|
}
|
|
1093
1123
|
else {
|
|
1094
|
-
if (data.
|
|
1095
|
-
if (
|
|
1096
|
-
|
|
1097
|
-
|
|
1124
|
+
if (data.tags.length > 128) {
|
|
1125
|
+
if (suberr25 === null)
|
|
1126
|
+
suberr25 = [];
|
|
1127
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/maxItems", instanceLocation: "#/tags" });
|
|
1098
1128
|
errorCount++;
|
|
1099
1129
|
}
|
|
1100
|
-
if (data.
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1103
|
-
|
|
1130
|
+
if (data.tags.length < 0) {
|
|
1131
|
+
if (suberr25 === null)
|
|
1132
|
+
suberr25 = [];
|
|
1133
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/minItems", instanceLocation: "#/tags" });
|
|
1104
1134
|
errorCount++;
|
|
1105
1135
|
}
|
|
1106
|
-
for (let p = 0; p < data.
|
|
1107
|
-
if (data.
|
|
1108
|
-
const
|
|
1109
|
-
const
|
|
1110
|
-
const
|
|
1111
|
-
validate.errors =
|
|
1112
|
-
if (!
|
|
1136
|
+
for (let p = 0; p < data.tags.length; p++) {
|
|
1137
|
+
if (data.tags[p] !== undefined && hasOwn(data.tags, p)) {
|
|
1138
|
+
const err19 = validate.errors;
|
|
1139
|
+
const res19 = ref11(data.tags[p]);
|
|
1140
|
+
const suberr27 = ref11.errors;
|
|
1141
|
+
validate.errors = err19;
|
|
1142
|
+
if (!res19) {
|
|
1113
1143
|
if (validate.errors === null)
|
|
1114
1144
|
validate.errors = [];
|
|
1115
|
-
validate.errors.push(...
|
|
1145
|
+
validate.errors.push(...suberr27.map(e => errorMerge(e, "#/properties/tags/anyOf/1/items/$ref", "#/tags/" + p)));
|
|
1116
1146
|
errorCount++;
|
|
1117
1147
|
}
|
|
1118
1148
|
}
|
|
@@ -1120,88 +1150,98 @@ const validate = (function () {
|
|
|
1120
1150
|
}
|
|
1121
1151
|
return errorCount === 0;
|
|
1122
1152
|
})();
|
|
1123
|
-
if (!
|
|
1153
|
+
if (!sub15) {
|
|
1124
1154
|
if (validate.errors === null)
|
|
1125
1155
|
validate.errors = [];
|
|
1126
|
-
validate.errors.push({ keywordLocation: "#/properties/
|
|
1127
|
-
if (
|
|
1128
|
-
validate.errors.push(...
|
|
1156
|
+
validate.errors.push({ keywordLocation: "#/properties/tags/anyOf", instanceLocation: "#/tags" });
|
|
1157
|
+
if (suberr25)
|
|
1158
|
+
validate.errors.push(...suberr25);
|
|
1129
1159
|
errorCount++;
|
|
1130
1160
|
}
|
|
1131
1161
|
}
|
|
1132
1162
|
}
|
|
1163
|
+
if (data.animation !== undefined && hasOwn(data, "animation")) {
|
|
1164
|
+
if (!(typeof data.animation === "boolean")) {
|
|
1165
|
+
if (validate.errors === null)
|
|
1166
|
+
validate.errors = [];
|
|
1167
|
+
validate.errors.push({ keywordLocation: "#/properties/animation/type", instanceLocation: "#/animation" });
|
|
1168
|
+
errorCount++;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
if (data.animationSpeed !== undefined && hasOwn(data, "animationSpeed")) {
|
|
1172
|
+
const err22 = validate.errors;
|
|
1173
|
+
const res22 = ref12(data.animationSpeed);
|
|
1174
|
+
const suberr31 = ref12.errors;
|
|
1175
|
+
validate.errors = err22;
|
|
1176
|
+
if (!res22) {
|
|
1177
|
+
if (validate.errors === null)
|
|
1178
|
+
validate.errors = [];
|
|
1179
|
+
validate.errors.push(...suberr31.map(e => errorMerge(e, "#/properties/animationSpeed/allOf/0/$ref", "#/animationSpeed")));
|
|
1180
|
+
errorCount++;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
if (data.animationDelay !== undefined && hasOwn(data, "animationDelay")) {
|
|
1184
|
+
const err25 = validate.errors;
|
|
1185
|
+
const res25 = ref14(data.animationDelay);
|
|
1186
|
+
const suberr35 = ref14.errors;
|
|
1187
|
+
validate.errors = err25;
|
|
1188
|
+
if (!res25) {
|
|
1189
|
+
if (validate.errors === null)
|
|
1190
|
+
validate.errors = [];
|
|
1191
|
+
validate.errors.push(...suberr35.map(e => errorMerge(e, "#/properties/animationDelay/allOf/0/$ref", "#/animationDelay")));
|
|
1192
|
+
errorCount++;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1133
1195
|
if (errorCount === prev0) {
|
|
1134
1196
|
for (const key1 of Object.keys(data)) {
|
|
1135
|
-
if (
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
validate.errors = [];
|
|
1139
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1140
|
-
errorCount++;
|
|
1141
|
-
}
|
|
1142
|
-
else {
|
|
1143
|
-
if (!(0 <= data[key1])) {
|
|
1144
|
-
if (validate.errors === null)
|
|
1145
|
-
validate.errors = [];
|
|
1146
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/minimum", instanceLocation: "#/" + pointerPart(key1) });
|
|
1147
|
-
errorCount++;
|
|
1148
|
-
}
|
|
1149
|
-
if (!(100 >= data[key1])) {
|
|
1150
|
-
if (validate.errors === null)
|
|
1151
|
-
validate.errors = [];
|
|
1152
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/maximum", instanceLocation: "#/" + pointerPart(key1) });
|
|
1153
|
-
errorCount++;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
if (pattern4.test(key1)) {
|
|
1158
|
-
let suberr25 = null;
|
|
1159
|
-
const sub17 = (() => {
|
|
1197
|
+
if (pattern2.test(key1)) {
|
|
1198
|
+
let suberr36 = null;
|
|
1199
|
+
const sub20 = (() => {
|
|
1160
1200
|
let errorCount = 0;
|
|
1161
|
-
const
|
|
1162
|
-
const
|
|
1163
|
-
const
|
|
1164
|
-
validate.errors =
|
|
1165
|
-
if (!
|
|
1201
|
+
const err26 = validate.errors;
|
|
1202
|
+
const res26 = ref16(data[key1]);
|
|
1203
|
+
const suberr37 = ref16.errors;
|
|
1204
|
+
validate.errors = err26;
|
|
1205
|
+
if (!res26) {
|
|
1166
1206
|
if (validate.errors === null)
|
|
1167
1207
|
validate.errors = [];
|
|
1168
|
-
validate.errors.push(...
|
|
1208
|
+
validate.errors.push(...suberr37.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1169
1209
|
errorCount++;
|
|
1170
1210
|
}
|
|
1171
1211
|
return errorCount === 0;
|
|
1172
1212
|
})();
|
|
1173
|
-
if (!
|
|
1174
|
-
const
|
|
1213
|
+
if (!sub20) {
|
|
1214
|
+
const sub21 = (() => {
|
|
1175
1215
|
let errorCount = 0;
|
|
1176
1216
|
if (!(Array.isArray(data[key1]))) {
|
|
1177
|
-
if (
|
|
1178
|
-
|
|
1179
|
-
|
|
1217
|
+
if (suberr36 === null)
|
|
1218
|
+
suberr36 = [];
|
|
1219
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1180
1220
|
errorCount++;
|
|
1181
1221
|
}
|
|
1182
1222
|
else {
|
|
1183
1223
|
if (data[key1].length > 128) {
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1186
|
-
|
|
1224
|
+
if (suberr36 === null)
|
|
1225
|
+
suberr36 = [];
|
|
1226
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1187
1227
|
errorCount++;
|
|
1188
1228
|
}
|
|
1189
1229
|
if (data[key1].length < 0) {
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
|
|
1230
|
+
if (suberr36 === null)
|
|
1231
|
+
suberr36 = [];
|
|
1232
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1193
1233
|
errorCount++;
|
|
1194
1234
|
}
|
|
1195
|
-
for (let
|
|
1196
|
-
if (data[key1][
|
|
1197
|
-
const
|
|
1198
|
-
const
|
|
1199
|
-
const
|
|
1200
|
-
validate.errors =
|
|
1201
|
-
if (!
|
|
1235
|
+
for (let s = 0; s < data[key1].length; s++) {
|
|
1236
|
+
if (data[key1][s] !== undefined && hasOwn(data[key1], s)) {
|
|
1237
|
+
const err27 = validate.errors;
|
|
1238
|
+
const res27 = ref16(data[key1][s]);
|
|
1239
|
+
const suberr38 = ref16.errors;
|
|
1240
|
+
validate.errors = err27;
|
|
1241
|
+
if (!res27) {
|
|
1202
1242
|
if (validate.errors === null)
|
|
1203
1243
|
validate.errors = [];
|
|
1204
|
-
validate.errors.push(...
|
|
1244
|
+
validate.errors.push(...suberr38.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + s)));
|
|
1205
1245
|
errorCount++;
|
|
1206
1246
|
}
|
|
1207
1247
|
}
|
|
@@ -1209,52 +1249,52 @@ const validate = (function () {
|
|
|
1209
1249
|
}
|
|
1210
1250
|
return errorCount === 0;
|
|
1211
1251
|
})();
|
|
1212
|
-
if (!
|
|
1213
|
-
const
|
|
1252
|
+
if (!sub21) {
|
|
1253
|
+
const sub22 = (() => {
|
|
1214
1254
|
let errorCount = 0;
|
|
1215
1255
|
if (!(typeof data[key1] === "object" && data[key1] && !Array.isArray(data[key1]))) {
|
|
1216
|
-
if (
|
|
1217
|
-
|
|
1218
|
-
|
|
1256
|
+
if (suberr36 === null)
|
|
1257
|
+
suberr36 = [];
|
|
1258
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1219
1259
|
errorCount++;
|
|
1220
1260
|
}
|
|
1221
1261
|
else {
|
|
1222
1262
|
if (Object.keys(data[key1]).length > 512) {
|
|
1223
|
-
if (
|
|
1224
|
-
|
|
1225
|
-
|
|
1263
|
+
if (suberr36 === null)
|
|
1264
|
+
suberr36 = [];
|
|
1265
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/maxProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1226
1266
|
errorCount++;
|
|
1227
1267
|
}
|
|
1228
1268
|
if (Object.keys(data[key1]).length < 1) {
|
|
1229
|
-
if (
|
|
1230
|
-
|
|
1231
|
-
|
|
1269
|
+
if (suberr36 === null)
|
|
1270
|
+
suberr36 = [];
|
|
1271
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/minProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1232
1272
|
errorCount++;
|
|
1233
1273
|
}
|
|
1234
1274
|
for (const key2 of Object.keys(data[key1])) {
|
|
1235
|
-
const
|
|
1236
|
-
const
|
|
1237
|
-
const
|
|
1238
|
-
validate.errors =
|
|
1239
|
-
if (!
|
|
1275
|
+
const err28 = validate.errors;
|
|
1276
|
+
const res28 = ref16(key2);
|
|
1277
|
+
const suberr39 = ref16.errors;
|
|
1278
|
+
validate.errors = err28;
|
|
1279
|
+
if (!res28) {
|
|
1240
1280
|
if (validate.errors === null)
|
|
1241
1281
|
validate.errors = [];
|
|
1242
|
-
validate.errors.push(...
|
|
1282
|
+
validate.errors.push(...suberr39.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/propertyNames/$ref", "#/" + pointerPart(key1) + "/" + pointerPart(key2))));
|
|
1243
1283
|
errorCount++;
|
|
1244
1284
|
}
|
|
1245
1285
|
}
|
|
1246
1286
|
for (const key3 of Object.keys(data[key1])) {
|
|
1247
1287
|
if (!(typeof data[key1][key3] === "number")) {
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
1250
|
-
|
|
1288
|
+
if (suberr36 === null)
|
|
1289
|
+
suberr36 = [];
|
|
1290
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/type", instanceLocation: "#/" + pointerPart(key1) + "/" + pointerPart(key3) });
|
|
1251
1291
|
errorCount++;
|
|
1252
1292
|
}
|
|
1253
1293
|
else {
|
|
1254
1294
|
if (!(0 <= data[key1][key3])) {
|
|
1255
|
-
if (
|
|
1256
|
-
|
|
1257
|
-
|
|
1295
|
+
if (suberr36 === null)
|
|
1296
|
+
suberr36 = [];
|
|
1297
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/minimum", instanceLocation: "#/" + pointerPart(key1) + "/" + pointerPart(key3) });
|
|
1258
1298
|
errorCount++;
|
|
1259
1299
|
}
|
|
1260
1300
|
}
|
|
@@ -1262,65 +1302,87 @@ const validate = (function () {
|
|
|
1262
1302
|
}
|
|
1263
1303
|
return errorCount === 0;
|
|
1264
1304
|
})();
|
|
1265
|
-
if (!
|
|
1305
|
+
if (!sub22) {
|
|
1266
1306
|
if (validate.errors === null)
|
|
1267
1307
|
validate.errors = [];
|
|
1268
1308
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1269
|
-
if (
|
|
1270
|
-
validate.errors.push(...
|
|
1309
|
+
if (suberr36)
|
|
1310
|
+
validate.errors.push(...suberr36);
|
|
1271
1311
|
errorCount++;
|
|
1272
1312
|
}
|
|
1273
1313
|
}
|
|
1274
1314
|
}
|
|
1275
1315
|
}
|
|
1316
|
+
if (pattern4.test(key1)) {
|
|
1317
|
+
if (!(typeof data[key1] === "number")) {
|
|
1318
|
+
if (validate.errors === null)
|
|
1319
|
+
validate.errors = [];
|
|
1320
|
+
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1321
|
+
errorCount++;
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1324
|
+
if (!(0 <= data[key1])) {
|
|
1325
|
+
if (validate.errors === null)
|
|
1326
|
+
validate.errors = [];
|
|
1327
|
+
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/minimum", instanceLocation: "#/" + pointerPart(key1) });
|
|
1328
|
+
errorCount++;
|
|
1329
|
+
}
|
|
1330
|
+
if (!(100 >= data[key1])) {
|
|
1331
|
+
if (validate.errors === null)
|
|
1332
|
+
validate.errors = [];
|
|
1333
|
+
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/maximum", instanceLocation: "#/" + pointerPart(key1) });
|
|
1334
|
+
errorCount++;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1276
1338
|
if (pattern5.test(key1)) {
|
|
1277
|
-
let
|
|
1278
|
-
const
|
|
1339
|
+
let suberr40 = null;
|
|
1340
|
+
const sub23 = (() => {
|
|
1279
1341
|
let errorCount = 0;
|
|
1280
|
-
const
|
|
1281
|
-
const
|
|
1282
|
-
const
|
|
1283
|
-
validate.errors =
|
|
1284
|
-
if (!
|
|
1342
|
+
const err29 = validate.errors;
|
|
1343
|
+
const res29 = ref17(data[key1]);
|
|
1344
|
+
const suberr41 = ref17.errors;
|
|
1345
|
+
validate.errors = err29;
|
|
1346
|
+
if (!res29) {
|
|
1285
1347
|
if (validate.errors === null)
|
|
1286
1348
|
validate.errors = [];
|
|
1287
|
-
validate.errors.push(...
|
|
1349
|
+
validate.errors.push(...suberr41.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1288
1350
|
errorCount++;
|
|
1289
1351
|
}
|
|
1290
1352
|
return errorCount === 0;
|
|
1291
1353
|
})();
|
|
1292
|
-
if (!
|
|
1293
|
-
const
|
|
1354
|
+
if (!sub23) {
|
|
1355
|
+
const sub24 = (() => {
|
|
1294
1356
|
let errorCount = 0;
|
|
1295
1357
|
if (!(Array.isArray(data[key1]))) {
|
|
1296
|
-
if (
|
|
1297
|
-
|
|
1298
|
-
|
|
1358
|
+
if (suberr40 === null)
|
|
1359
|
+
suberr40 = [];
|
|
1360
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1299
1361
|
errorCount++;
|
|
1300
1362
|
}
|
|
1301
1363
|
else {
|
|
1302
1364
|
if (data[key1].length > 128) {
|
|
1303
|
-
if (
|
|
1304
|
-
|
|
1305
|
-
|
|
1365
|
+
if (suberr40 === null)
|
|
1366
|
+
suberr40 = [];
|
|
1367
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1306
1368
|
errorCount++;
|
|
1307
1369
|
}
|
|
1308
1370
|
if (data[key1].length < 0) {
|
|
1309
|
-
if (
|
|
1310
|
-
|
|
1311
|
-
|
|
1371
|
+
if (suberr40 === null)
|
|
1372
|
+
suberr40 = [];
|
|
1373
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1312
1374
|
errorCount++;
|
|
1313
1375
|
}
|
|
1314
|
-
for (let
|
|
1315
|
-
if (data[key1][
|
|
1316
|
-
const
|
|
1317
|
-
const
|
|
1318
|
-
const
|
|
1319
|
-
validate.errors =
|
|
1320
|
-
if (!
|
|
1376
|
+
for (let t = 0; t < data[key1].length; t++) {
|
|
1377
|
+
if (data[key1][t] !== undefined && hasOwn(data[key1], t)) {
|
|
1378
|
+
const err30 = validate.errors;
|
|
1379
|
+
const res30 = ref17(data[key1][t]);
|
|
1380
|
+
const suberr42 = ref17.errors;
|
|
1381
|
+
validate.errors = err30;
|
|
1382
|
+
if (!res30) {
|
|
1321
1383
|
if (validate.errors === null)
|
|
1322
1384
|
validate.errors = [];
|
|
1323
|
-
validate.errors.push(...
|
|
1385
|
+
validate.errors.push(...suberr42.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + t)));
|
|
1324
1386
|
errorCount++;
|
|
1325
1387
|
}
|
|
1326
1388
|
}
|
|
@@ -1328,64 +1390,64 @@ const validate = (function () {
|
|
|
1328
1390
|
}
|
|
1329
1391
|
return errorCount === 0;
|
|
1330
1392
|
})();
|
|
1331
|
-
if (!
|
|
1393
|
+
if (!sub24) {
|
|
1332
1394
|
if (validate.errors === null)
|
|
1333
1395
|
validate.errors = [];
|
|
1334
1396
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1335
|
-
if (
|
|
1336
|
-
validate.errors.push(...
|
|
1397
|
+
if (suberr40)
|
|
1398
|
+
validate.errors.push(...suberr40);
|
|
1337
1399
|
errorCount++;
|
|
1338
1400
|
}
|
|
1339
1401
|
}
|
|
1340
1402
|
}
|
|
1341
1403
|
if (pattern7.test(key1)) {
|
|
1342
|
-
let
|
|
1343
|
-
const
|
|
1404
|
+
let suberr43 = null;
|
|
1405
|
+
const sub25 = (() => {
|
|
1344
1406
|
let errorCount = 0;
|
|
1345
|
-
const
|
|
1346
|
-
const
|
|
1347
|
-
const
|
|
1348
|
-
validate.errors =
|
|
1349
|
-
if (!
|
|
1407
|
+
const err31 = validate.errors;
|
|
1408
|
+
const res31 = ref18(data[key1]);
|
|
1409
|
+
const suberr44 = ref18.errors;
|
|
1410
|
+
validate.errors = err31;
|
|
1411
|
+
if (!res31) {
|
|
1350
1412
|
if (validate.errors === null)
|
|
1351
1413
|
validate.errors = [];
|
|
1352
|
-
validate.errors.push(...
|
|
1414
|
+
validate.errors.push(...suberr44.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1353
1415
|
errorCount++;
|
|
1354
1416
|
}
|
|
1355
1417
|
return errorCount === 0;
|
|
1356
1418
|
})();
|
|
1357
|
-
if (!
|
|
1358
|
-
const
|
|
1419
|
+
if (!sub25) {
|
|
1420
|
+
const sub26 = (() => {
|
|
1359
1421
|
let errorCount = 0;
|
|
1360
1422
|
if (!(Array.isArray(data[key1]))) {
|
|
1361
|
-
if (
|
|
1362
|
-
|
|
1363
|
-
|
|
1423
|
+
if (suberr43 === null)
|
|
1424
|
+
suberr43 = [];
|
|
1425
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1364
1426
|
errorCount++;
|
|
1365
1427
|
}
|
|
1366
1428
|
else {
|
|
1367
1429
|
if (data[key1].length > 128) {
|
|
1368
|
-
if (
|
|
1369
|
-
|
|
1370
|
-
|
|
1430
|
+
if (suberr43 === null)
|
|
1431
|
+
suberr43 = [];
|
|
1432
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1371
1433
|
errorCount++;
|
|
1372
1434
|
}
|
|
1373
1435
|
if (data[key1].length < 0) {
|
|
1374
|
-
if (
|
|
1375
|
-
|
|
1376
|
-
|
|
1436
|
+
if (suberr43 === null)
|
|
1437
|
+
suberr43 = [];
|
|
1438
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1377
1439
|
errorCount++;
|
|
1378
1440
|
}
|
|
1379
|
-
for (let
|
|
1380
|
-
if (data[key1][
|
|
1381
|
-
const
|
|
1382
|
-
const
|
|
1383
|
-
const
|
|
1384
|
-
validate.errors =
|
|
1385
|
-
if (!
|
|
1441
|
+
for (let u = 0; u < data[key1].length; u++) {
|
|
1442
|
+
if (data[key1][u] !== undefined && hasOwn(data[key1], u)) {
|
|
1443
|
+
const err32 = validate.errors;
|
|
1444
|
+
const res32 = ref18(data[key1][u]);
|
|
1445
|
+
const suberr45 = ref18.errors;
|
|
1446
|
+
validate.errors = err32;
|
|
1447
|
+
if (!res32) {
|
|
1386
1448
|
if (validate.errors === null)
|
|
1387
1449
|
validate.errors = [];
|
|
1388
|
-
validate.errors.push(...
|
|
1450
|
+
validate.errors.push(...suberr45.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + u)));
|
|
1389
1451
|
errorCount++;
|
|
1390
1452
|
}
|
|
1391
1453
|
}
|
|
@@ -1393,64 +1455,64 @@ const validate = (function () {
|
|
|
1393
1455
|
}
|
|
1394
1456
|
return errorCount === 0;
|
|
1395
1457
|
})();
|
|
1396
|
-
if (!
|
|
1458
|
+
if (!sub26) {
|
|
1397
1459
|
if (validate.errors === null)
|
|
1398
1460
|
validate.errors = [];
|
|
1399
1461
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1400
|
-
if (
|
|
1401
|
-
validate.errors.push(...
|
|
1462
|
+
if (suberr43)
|
|
1463
|
+
validate.errors.push(...suberr43);
|
|
1402
1464
|
errorCount++;
|
|
1403
1465
|
}
|
|
1404
1466
|
}
|
|
1405
1467
|
}
|
|
1406
1468
|
if (pattern8.test(key1)) {
|
|
1407
|
-
let
|
|
1408
|
-
const
|
|
1469
|
+
let suberr46 = null;
|
|
1470
|
+
const sub27 = (() => {
|
|
1409
1471
|
let errorCount = 0;
|
|
1410
|
-
const
|
|
1411
|
-
const
|
|
1412
|
-
const
|
|
1413
|
-
validate.errors =
|
|
1414
|
-
if (!
|
|
1472
|
+
const err33 = validate.errors;
|
|
1473
|
+
const res33 = ref19(data[key1]);
|
|
1474
|
+
const suberr47 = ref19.errors;
|
|
1475
|
+
validate.errors = err33;
|
|
1476
|
+
if (!res33) {
|
|
1415
1477
|
if (validate.errors === null)
|
|
1416
1478
|
validate.errors = [];
|
|
1417
|
-
validate.errors.push(...
|
|
1479
|
+
validate.errors.push(...suberr47.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1418
1480
|
errorCount++;
|
|
1419
1481
|
}
|
|
1420
1482
|
return errorCount === 0;
|
|
1421
1483
|
})();
|
|
1422
|
-
if (!
|
|
1423
|
-
const
|
|
1484
|
+
if (!sub27) {
|
|
1485
|
+
const sub28 = (() => {
|
|
1424
1486
|
let errorCount = 0;
|
|
1425
1487
|
if (!(Array.isArray(data[key1]))) {
|
|
1426
|
-
if (
|
|
1427
|
-
|
|
1428
|
-
|
|
1488
|
+
if (suberr46 === null)
|
|
1489
|
+
suberr46 = [];
|
|
1490
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1429
1491
|
errorCount++;
|
|
1430
1492
|
}
|
|
1431
1493
|
else {
|
|
1432
1494
|
if (data[key1].length > 2) {
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1435
|
-
|
|
1495
|
+
if (suberr46 === null)
|
|
1496
|
+
suberr46 = [];
|
|
1497
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1436
1498
|
errorCount++;
|
|
1437
1499
|
}
|
|
1438
1500
|
if (data[key1].length < 0) {
|
|
1439
|
-
if (
|
|
1440
|
-
|
|
1441
|
-
|
|
1501
|
+
if (suberr46 === null)
|
|
1502
|
+
suberr46 = [];
|
|
1503
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1442
1504
|
errorCount++;
|
|
1443
1505
|
}
|
|
1444
|
-
for (let
|
|
1445
|
-
if (data[key1][
|
|
1446
|
-
const
|
|
1447
|
-
const
|
|
1448
|
-
const
|
|
1449
|
-
validate.errors =
|
|
1450
|
-
if (!
|
|
1506
|
+
for (let v = 0; v < data[key1].length; v++) {
|
|
1507
|
+
if (data[key1][v] !== undefined && hasOwn(data[key1], v)) {
|
|
1508
|
+
const err34 = validate.errors;
|
|
1509
|
+
const res34 = ref19(data[key1][v]);
|
|
1510
|
+
const suberr48 = ref19.errors;
|
|
1511
|
+
validate.errors = err34;
|
|
1512
|
+
if (!res34) {
|
|
1451
1513
|
if (validate.errors === null)
|
|
1452
1514
|
validate.errors = [];
|
|
1453
|
-
validate.errors.push(...
|
|
1515
|
+
validate.errors.push(...suberr48.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + v)));
|
|
1454
1516
|
errorCount++;
|
|
1455
1517
|
}
|
|
1456
1518
|
}
|
|
@@ -1458,25 +1520,25 @@ const validate = (function () {
|
|
|
1458
1520
|
}
|
|
1459
1521
|
return errorCount === 0;
|
|
1460
1522
|
})();
|
|
1461
|
-
if (!
|
|
1523
|
+
if (!sub28) {
|
|
1462
1524
|
if (validate.errors === null)
|
|
1463
1525
|
validate.errors = [];
|
|
1464
1526
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1465
|
-
if (
|
|
1466
|
-
validate.errors.push(...
|
|
1527
|
+
if (suberr46)
|
|
1528
|
+
validate.errors.push(...suberr46);
|
|
1467
1529
|
errorCount++;
|
|
1468
1530
|
}
|
|
1469
1531
|
}
|
|
1470
1532
|
}
|
|
1471
1533
|
if (pattern9.test(key1)) {
|
|
1472
|
-
const
|
|
1473
|
-
const
|
|
1474
|
-
const
|
|
1475
|
-
validate.errors =
|
|
1476
|
-
if (!
|
|
1534
|
+
const err35 = validate.errors;
|
|
1535
|
+
const res35 = ref2(data[key1]);
|
|
1536
|
+
const suberr49 = ref2.errors;
|
|
1537
|
+
validate.errors = err35;
|
|
1538
|
+
if (!res35) {
|
|
1477
1539
|
if (validate.errors === null)
|
|
1478
1540
|
validate.errors = [];
|
|
1479
|
-
validate.errors.push(...
|
|
1541
|
+
validate.errors.push(...suberr49.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorAngle$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1480
1542
|
errorCount++;
|
|
1481
1543
|
}
|
|
1482
1544
|
}
|
|
@@ -1496,45 +1558,41 @@ const validate = (function () {
|
|
|
1496
1558
|
}
|
|
1497
1559
|
}
|
|
1498
1560
|
}
|
|
1499
|
-
if ((key1
|
|
1500
|
-
|
|
1501
|
-
const res29 = ref14(data[key1]);
|
|
1502
|
-
const suberr42 = ref14.errors;
|
|
1503
|
-
validate.errors = err29;
|
|
1504
|
-
if (!res29) {
|
|
1561
|
+
if (pattern11.test(key1)) {
|
|
1562
|
+
if (!(typeof data[key1] === "boolean")) {
|
|
1505
1563
|
if (validate.errors === null)
|
|
1506
1564
|
validate.errors = [];
|
|
1507
|
-
validate.errors.push(
|
|
1565
|
+
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Animation$/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1508
1566
|
errorCount++;
|
|
1509
1567
|
}
|
|
1510
1568
|
}
|
|
1511
|
-
if ((key1
|
|
1512
|
-
const
|
|
1513
|
-
const
|
|
1514
|
-
const
|
|
1515
|
-
validate.errors =
|
|
1516
|
-
if (!
|
|
1569
|
+
if (pattern12.test(key1)) {
|
|
1570
|
+
const err36 = validate.errors;
|
|
1571
|
+
const res36 = ref12(data[key1]);
|
|
1572
|
+
const suberr50 = ref12.errors;
|
|
1573
|
+
validate.errors = err36;
|
|
1574
|
+
if (!res36) {
|
|
1517
1575
|
if (validate.errors === null)
|
|
1518
1576
|
validate.errors = [];
|
|
1519
|
-
validate.errors.push(...
|
|
1577
|
+
validate.errors.push(...suberr50.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*AnimationSpeed$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1520
1578
|
errorCount++;
|
|
1521
1579
|
}
|
|
1522
1580
|
}
|
|
1523
|
-
if ((key1
|
|
1524
|
-
const
|
|
1525
|
-
const
|
|
1526
|
-
const
|
|
1527
|
-
validate.errors =
|
|
1528
|
-
if (!
|
|
1581
|
+
if (pattern13.test(key1)) {
|
|
1582
|
+
const err37 = validate.errors;
|
|
1583
|
+
const res37 = ref14(data[key1]);
|
|
1584
|
+
const suberr51 = ref14.errors;
|
|
1585
|
+
validate.errors = err37;
|
|
1586
|
+
if (!res37) {
|
|
1529
1587
|
if (validate.errors === null)
|
|
1530
1588
|
validate.errors = [];
|
|
1531
|
-
validate.errors.push(...
|
|
1589
|
+
validate.errors.push(...suberr51.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*AnimationDelay$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1532
1590
|
errorCount++;
|
|
1533
1591
|
}
|
|
1534
1592
|
}
|
|
1535
1593
|
}
|
|
1536
1594
|
for (const key4 of Object.keys(data)) {
|
|
1537
|
-
if (key4 !== "seed" && key4 !== "size" && key4 !== "idRandomization" && key4 !== "title" && key4 !== "flip" && key4 !== "
|
|
1595
|
+
if (key4 !== "seed" && key4 !== "size" && key4 !== "idRandomization" && key4 !== "title" && key4 !== "flip" && key4 !== "rotate" && key4 !== "scale" && key4 !== "translateX" && key4 !== "translateY" && key4 !== "borderRadius" && key4 !== "fontFamily" && key4 !== "fontWeight" && key4 !== "tags" && key4 !== "animation" && key4 !== "animationSpeed" && key4 !== "animationDelay" && !pattern2.test(key4) && !pattern4.test(key4) && !pattern5.test(key4) && !pattern7.test(key4) && !pattern8.test(key4) && !pattern9.test(key4) && !pattern10.test(key4) && !pattern11.test(key4) && !pattern12.test(key4) && !pattern13.test(key4)) {
|
|
1538
1596
|
if (validate.errors === null)
|
|
1539
1597
|
validate.errors = [];
|
|
1540
1598
|
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key4) });
|