@dicebear/core 10.7.0 → 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 +19 -4
- package/lib/Avatar.d.ts +4 -6
- package/lib/Avatar.js +5 -13
- package/lib/Options.d.ts +18 -0
- package/lib/Options.js +30 -2
- package/lib/OptionsDescriptor.js +18 -0
- package/lib/Renderer.js +219 -19
- package/lib/Resolver.d.ts +24 -0
- package/lib/Resolver.js +56 -16
- package/lib/Style/Element.d.ts +6 -1
- package/lib/Style/Element.js +7 -0
- package/lib/Style.d.ts +15 -0
- package/lib/Style.js +83 -4
- package/lib/StyleDefinition.d.ts +57 -0
- package/lib/StyleOptions.d.ts +9 -1
- package/lib/Validator/OptionsValidator.js +761 -508
- package/lib/Validator/StyleValidator.js +1078 -282
- 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,68 +238,100 @@ 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
|
}
|
|
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) {
|
|
299
|
+
if (validate.errors === null)
|
|
300
|
+
validate.errors = [];
|
|
301
|
+
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
302
|
+
if (suberr11)
|
|
303
|
+
validate.errors.push(...suberr11);
|
|
304
|
+
errorCount++;
|
|
227
305
|
}
|
|
228
306
|
}
|
|
229
307
|
return errorCount === 0;
|
|
230
308
|
};
|
|
231
|
-
const pattern2 = new RegExp("^[a-z][a-zA-Z0-9]*Probability$", "u");
|
|
232
|
-
const pattern3 = new RegExp("^[a-z][a-zA-Z0-9]*Variant$", "u");
|
|
233
|
-
const pattern4 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
|
|
234
309
|
const ref8 = function validate(data) {
|
|
235
310
|
validate.errors = null;
|
|
236
311
|
let errorCount = 0;
|
|
237
|
-
if (!(typeof data === "
|
|
312
|
+
if (!(typeof data === "number")) {
|
|
238
313
|
if (validate.errors === null)
|
|
239
314
|
validate.errors = [];
|
|
240
315
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
241
316
|
errorCount++;
|
|
242
317
|
}
|
|
243
318
|
else {
|
|
244
|
-
|
|
245
|
-
if (data.length > 64 && stringLength(data) > 64) {
|
|
319
|
+
if (!(0 <= data)) {
|
|
246
320
|
if (validate.errors === null)
|
|
247
321
|
validate.errors = [];
|
|
248
|
-
validate.errors.push({ keywordLocation: "#/
|
|
322
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
249
323
|
errorCount++;
|
|
250
324
|
}
|
|
251
|
-
if (
|
|
252
|
-
if (
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
errorCount++;
|
|
257
|
-
}
|
|
325
|
+
if (!(50 >= data)) {
|
|
326
|
+
if (validate.errors === null)
|
|
327
|
+
validate.errors = [];
|
|
328
|
+
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
329
|
+
errorCount++;
|
|
258
330
|
}
|
|
259
331
|
}
|
|
260
332
|
return errorCount === 0;
|
|
261
333
|
};
|
|
262
|
-
const
|
|
263
|
-
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");
|
|
334
|
+
const pattern0 = new RegExp("^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "u");
|
|
264
335
|
const ref9 = function validate(data) {
|
|
265
336
|
validate.errors = null;
|
|
266
337
|
let errorCount = 0;
|
|
@@ -271,9 +342,15 @@ const validate = (function () {
|
|
|
271
342
|
errorCount++;
|
|
272
343
|
}
|
|
273
344
|
else {
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
276
|
-
if (
|
|
345
|
+
const prev1 = errorCount;
|
|
346
|
+
if (data.length > 256 && stringLength(data) > 256) {
|
|
347
|
+
if (validate.errors === null)
|
|
348
|
+
validate.errors = [];
|
|
349
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
350
|
+
errorCount++;
|
|
351
|
+
}
|
|
352
|
+
if (errorCount === prev1) {
|
|
353
|
+
if (!pattern0.test(data)) {
|
|
277
354
|
if (validate.errors === null)
|
|
278
355
|
validate.errors = [];
|
|
279
356
|
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
@@ -283,47 +360,60 @@ const validate = (function () {
|
|
|
283
360
|
}
|
|
284
361
|
return errorCount === 0;
|
|
285
362
|
};
|
|
286
|
-
const pattern7 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFill$", "u");
|
|
287
363
|
const ref10 = function validate(data) {
|
|
288
364
|
validate.errors = null;
|
|
289
365
|
let errorCount = 0;
|
|
290
|
-
if (!(
|
|
366
|
+
if (!Number.isInteger(data)) {
|
|
291
367
|
if (validate.errors === null)
|
|
292
368
|
validate.errors = [];
|
|
293
369
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
294
370
|
errorCount++;
|
|
295
371
|
}
|
|
296
372
|
else {
|
|
297
|
-
if (!(
|
|
373
|
+
if (!(1 <= data)) {
|
|
298
374
|
if (validate.errors === null)
|
|
299
375
|
validate.errors = [];
|
|
300
|
-
validate.errors.push({ keywordLocation: "#/
|
|
376
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
377
|
+
errorCount++;
|
|
378
|
+
}
|
|
379
|
+
if (!(1000 >= data)) {
|
|
380
|
+
if (validate.errors === null)
|
|
381
|
+
validate.errors = [];
|
|
382
|
+
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
301
383
|
errorCount++;
|
|
302
384
|
}
|
|
303
385
|
}
|
|
304
386
|
return errorCount === 0;
|
|
305
387
|
};
|
|
306
|
-
const
|
|
388
|
+
const pattern1 = new RegExp("^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$", "u");
|
|
307
389
|
const ref11 = function validate(data) {
|
|
308
390
|
validate.errors = null;
|
|
309
391
|
let errorCount = 0;
|
|
310
|
-
if (!
|
|
392
|
+
if (!(typeof data === "string")) {
|
|
311
393
|
if (validate.errors === null)
|
|
312
394
|
validate.errors = [];
|
|
313
395
|
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
314
396
|
errorCount++;
|
|
315
397
|
}
|
|
316
398
|
else {
|
|
317
|
-
|
|
399
|
+
const prev2 = errorCount;
|
|
400
|
+
if (data.length > 130 && stringLength(data) > 130) {
|
|
318
401
|
if (validate.errors === null)
|
|
319
402
|
validate.errors = [];
|
|
320
|
-
validate.errors.push({ keywordLocation: "#/
|
|
403
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
321
404
|
errorCount++;
|
|
322
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
|
+
}
|
|
323
414
|
}
|
|
324
415
|
return errorCount === 0;
|
|
325
416
|
};
|
|
326
|
-
const pattern9 = new RegExp("^[a-z][a-zA-Z0-9]*ColorAngle$", "u");
|
|
327
417
|
const ref13 = function validate(data) {
|
|
328
418
|
validate.errors = null;
|
|
329
419
|
let errorCount = 0;
|
|
@@ -334,13 +424,13 @@ const validate = (function () {
|
|
|
334
424
|
errorCount++;
|
|
335
425
|
}
|
|
336
426
|
else {
|
|
337
|
-
if (!(
|
|
427
|
+
if (!(0.1 <= data)) {
|
|
338
428
|
if (validate.errors === null)
|
|
339
429
|
validate.errors = [];
|
|
340
430
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
341
431
|
errorCount++;
|
|
342
432
|
}
|
|
343
|
-
if (!(
|
|
433
|
+
if (!(10 >= data)) {
|
|
344
434
|
if (validate.errors === null)
|
|
345
435
|
validate.errors = [];
|
|
346
436
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -352,53 +442,53 @@ const validate = (function () {
|
|
|
352
442
|
const ref12 = function validate(data) {
|
|
353
443
|
validate.errors = null;
|
|
354
444
|
let errorCount = 0;
|
|
355
|
-
let
|
|
356
|
-
const
|
|
445
|
+
let suberr28 = null;
|
|
446
|
+
const sub16 = (() => {
|
|
357
447
|
let errorCount = 0;
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
const
|
|
361
|
-
validate.errors =
|
|
362
|
-
if (!
|
|
448
|
+
const err20 = validate.errors;
|
|
449
|
+
const res20 = ref13(data);
|
|
450
|
+
const suberr29 = ref13.errors;
|
|
451
|
+
validate.errors = err20;
|
|
452
|
+
if (!res20) {
|
|
363
453
|
if (validate.errors === null)
|
|
364
454
|
validate.errors = [];
|
|
365
|
-
validate.errors.push(...
|
|
455
|
+
validate.errors.push(...suberr29.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
366
456
|
errorCount++;
|
|
367
457
|
}
|
|
368
458
|
return errorCount === 0;
|
|
369
459
|
})();
|
|
370
|
-
if (!
|
|
371
|
-
const
|
|
460
|
+
if (!sub16) {
|
|
461
|
+
const sub17 = (() => {
|
|
372
462
|
let errorCount = 0;
|
|
373
463
|
if (!Array.isArray(data)) {
|
|
374
|
-
if (
|
|
375
|
-
|
|
376
|
-
|
|
464
|
+
if (suberr28 === null)
|
|
465
|
+
suberr28 = [];
|
|
466
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
377
467
|
errorCount++;
|
|
378
468
|
}
|
|
379
469
|
else {
|
|
380
470
|
if (data.length > 2) {
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
|
|
471
|
+
if (suberr28 === null)
|
|
472
|
+
suberr28 = [];
|
|
473
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
384
474
|
errorCount++;
|
|
385
475
|
}
|
|
386
476
|
if (data.length < 0) {
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
|
|
477
|
+
if (suberr28 === null)
|
|
478
|
+
suberr28 = [];
|
|
479
|
+
suberr28.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
390
480
|
errorCount++;
|
|
391
481
|
}
|
|
392
|
-
for (let
|
|
393
|
-
if (data[
|
|
394
|
-
const
|
|
395
|
-
const
|
|
396
|
-
const
|
|
397
|
-
validate.errors =
|
|
398
|
-
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) {
|
|
399
489
|
if (validate.errors === null)
|
|
400
490
|
validate.errors = [];
|
|
401
|
-
validate.errors.push(...
|
|
491
|
+
validate.errors.push(...suberr30.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + q)));
|
|
402
492
|
errorCount++;
|
|
403
493
|
}
|
|
404
494
|
}
|
|
@@ -406,18 +496,17 @@ const validate = (function () {
|
|
|
406
496
|
}
|
|
407
497
|
return errorCount === 0;
|
|
408
498
|
})();
|
|
409
|
-
if (!
|
|
499
|
+
if (!sub17) {
|
|
410
500
|
if (validate.errors === null)
|
|
411
501
|
validate.errors = [];
|
|
412
502
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
413
|
-
if (
|
|
414
|
-
validate.errors.push(...
|
|
503
|
+
if (suberr28)
|
|
504
|
+
validate.errors.push(...suberr28);
|
|
415
505
|
errorCount++;
|
|
416
506
|
}
|
|
417
507
|
}
|
|
418
508
|
return errorCount === 0;
|
|
419
509
|
};
|
|
420
|
-
const pattern10 = new RegExp("^[a-z][a-zA-Z0-9]*ColorOrder$", "u");
|
|
421
510
|
const ref15 = function validate(data) {
|
|
422
511
|
validate.errors = null;
|
|
423
512
|
let errorCount = 0;
|
|
@@ -428,13 +517,13 @@ const validate = (function () {
|
|
|
428
517
|
errorCount++;
|
|
429
518
|
}
|
|
430
519
|
else {
|
|
431
|
-
if (!(-
|
|
520
|
+
if (!(-3600 <= data)) {
|
|
432
521
|
if (validate.errors === null)
|
|
433
522
|
validate.errors = [];
|
|
434
523
|
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
435
524
|
errorCount++;
|
|
436
525
|
}
|
|
437
|
-
if (!(
|
|
526
|
+
if (!(3600 >= data)) {
|
|
438
527
|
if (validate.errors === null)
|
|
439
528
|
validate.errors = [];
|
|
440
529
|
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
@@ -446,53 +535,53 @@ const validate = (function () {
|
|
|
446
535
|
const ref14 = function validate(data) {
|
|
447
536
|
validate.errors = null;
|
|
448
537
|
let errorCount = 0;
|
|
449
|
-
let
|
|
450
|
-
const
|
|
538
|
+
let suberr32 = null;
|
|
539
|
+
const sub18 = (() => {
|
|
451
540
|
let errorCount = 0;
|
|
452
|
-
const
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
validate.errors =
|
|
456
|
-
if (!
|
|
541
|
+
const err23 = validate.errors;
|
|
542
|
+
const res23 = ref15(data);
|
|
543
|
+
const suberr33 = ref15.errors;
|
|
544
|
+
validate.errors = err23;
|
|
545
|
+
if (!res23) {
|
|
457
546
|
if (validate.errors === null)
|
|
458
547
|
validate.errors = [];
|
|
459
|
-
validate.errors.push(...
|
|
548
|
+
validate.errors.push(...suberr33.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
460
549
|
errorCount++;
|
|
461
550
|
}
|
|
462
551
|
return errorCount === 0;
|
|
463
552
|
})();
|
|
464
|
-
if (!
|
|
465
|
-
const
|
|
553
|
+
if (!sub18) {
|
|
554
|
+
const sub19 = (() => {
|
|
466
555
|
let errorCount = 0;
|
|
467
556
|
if (!Array.isArray(data)) {
|
|
468
|
-
if (
|
|
469
|
-
|
|
470
|
-
|
|
557
|
+
if (suberr32 === null)
|
|
558
|
+
suberr32 = [];
|
|
559
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
471
560
|
errorCount++;
|
|
472
561
|
}
|
|
473
562
|
else {
|
|
474
563
|
if (data.length > 2) {
|
|
475
|
-
if (
|
|
476
|
-
|
|
477
|
-
|
|
564
|
+
if (suberr32 === null)
|
|
565
|
+
suberr32 = [];
|
|
566
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
478
567
|
errorCount++;
|
|
479
568
|
}
|
|
480
569
|
if (data.length < 0) {
|
|
481
|
-
if (
|
|
482
|
-
|
|
483
|
-
|
|
570
|
+
if (suberr32 === null)
|
|
571
|
+
suberr32 = [];
|
|
572
|
+
suberr32.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
484
573
|
errorCount++;
|
|
485
574
|
}
|
|
486
|
-
for (let
|
|
487
|
-
if (data[
|
|
488
|
-
const
|
|
489
|
-
const
|
|
490
|
-
const
|
|
491
|
-
validate.errors =
|
|
492
|
-
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) {
|
|
493
582
|
if (validate.errors === null)
|
|
494
583
|
validate.errors = [];
|
|
495
|
-
validate.errors.push(...
|
|
584
|
+
validate.errors.push(...suberr34.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + r)));
|
|
496
585
|
errorCount++;
|
|
497
586
|
}
|
|
498
587
|
}
|
|
@@ -500,17 +589,117 @@ const validate = (function () {
|
|
|
500
589
|
}
|
|
501
590
|
return errorCount === 0;
|
|
502
591
|
})();
|
|
503
|
-
if (!
|
|
592
|
+
if (!sub19) {
|
|
504
593
|
if (validate.errors === null)
|
|
505
594
|
validate.errors = [];
|
|
506
595
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
507
|
-
if (
|
|
508
|
-
validate.errors.push(...
|
|
596
|
+
if (suberr32)
|
|
597
|
+
validate.errors.push(...suberr32);
|
|
509
598
|
errorCount++;
|
|
510
599
|
}
|
|
511
600
|
}
|
|
512
601
|
return errorCount === 0;
|
|
513
602
|
};
|
|
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) {
|
|
606
|
+
validate.errors = null;
|
|
607
|
+
let errorCount = 0;
|
|
608
|
+
if (!(typeof data === "string")) {
|
|
609
|
+
if (validate.errors === null)
|
|
610
|
+
validate.errors = [];
|
|
611
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
612
|
+
errorCount++;
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
const prev3 = errorCount;
|
|
616
|
+
if (data.length > 64 && stringLength(data) > 64) {
|
|
617
|
+
if (validate.errors === null)
|
|
618
|
+
validate.errors = [];
|
|
619
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
620
|
+
errorCount++;
|
|
621
|
+
}
|
|
622
|
+
if (errorCount === prev3) {
|
|
623
|
+
if (!pattern3.test(data)) {
|
|
624
|
+
if (validate.errors === null)
|
|
625
|
+
validate.errors = [];
|
|
626
|
+
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
627
|
+
errorCount++;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
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");
|
|
514
703
|
const ref0 = function validate(data) {
|
|
515
704
|
validate.errors = null;
|
|
516
705
|
let errorCount = 0;
|
|
@@ -663,54 +852,102 @@ const validate = (function () {
|
|
|
663
852
|
}
|
|
664
853
|
}
|
|
665
854
|
}
|
|
666
|
-
if (data.
|
|
667
|
-
|
|
668
|
-
const
|
|
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++;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
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++;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
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) {
|
|
885
|
+
if (validate.errors === null)
|
|
886
|
+
validate.errors = [];
|
|
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")));
|
|
900
|
+
errorCount++;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
if (data.borderRadius !== undefined && hasOwn(data, "borderRadius")) {
|
|
904
|
+
let suberr16 = null;
|
|
905
|
+
const sub8 = (() => {
|
|
669
906
|
let errorCount = 0;
|
|
670
|
-
const
|
|
671
|
-
const
|
|
672
|
-
const
|
|
673
|
-
validate.errors =
|
|
674
|
-
if (!
|
|
907
|
+
const err12 = validate.errors;
|
|
908
|
+
const res12 = ref8(data.borderRadius);
|
|
909
|
+
const suberr17 = ref8.errors;
|
|
910
|
+
validate.errors = err12;
|
|
911
|
+
if (!res12) {
|
|
675
912
|
if (validate.errors === null)
|
|
676
913
|
validate.errors = [];
|
|
677
|
-
validate.errors.push(...
|
|
914
|
+
validate.errors.push(...suberr17.map(e => errorMerge(e, "#/properties/borderRadius/anyOf/0/$ref", "#/borderRadius")));
|
|
678
915
|
errorCount++;
|
|
679
916
|
}
|
|
680
917
|
return errorCount === 0;
|
|
681
918
|
})();
|
|
682
|
-
if (!
|
|
683
|
-
const
|
|
919
|
+
if (!sub8) {
|
|
920
|
+
const sub9 = (() => {
|
|
684
921
|
let errorCount = 0;
|
|
685
|
-
if (!Array.isArray(data.
|
|
686
|
-
if (
|
|
687
|
-
|
|
688
|
-
|
|
922
|
+
if (!Array.isArray(data.borderRadius)) {
|
|
923
|
+
if (suberr16 === null)
|
|
924
|
+
suberr16 = [];
|
|
925
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/type", instanceLocation: "#/borderRadius" });
|
|
689
926
|
errorCount++;
|
|
690
927
|
}
|
|
691
928
|
else {
|
|
692
|
-
if (data.
|
|
693
|
-
if (
|
|
694
|
-
|
|
695
|
-
|
|
929
|
+
if (data.borderRadius.length > 2) {
|
|
930
|
+
if (suberr16 === null)
|
|
931
|
+
suberr16 = [];
|
|
932
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/maxItems", instanceLocation: "#/borderRadius" });
|
|
696
933
|
errorCount++;
|
|
697
934
|
}
|
|
698
|
-
if (data.
|
|
699
|
-
if (
|
|
700
|
-
|
|
701
|
-
|
|
935
|
+
if (data.borderRadius.length < 0) {
|
|
936
|
+
if (suberr16 === null)
|
|
937
|
+
suberr16 = [];
|
|
938
|
+
suberr16.push({ keywordLocation: "#/properties/borderRadius/anyOf/1/minItems", instanceLocation: "#/borderRadius" });
|
|
702
939
|
errorCount++;
|
|
703
940
|
}
|
|
704
|
-
for (let
|
|
705
|
-
if (data.
|
|
706
|
-
const
|
|
707
|
-
const
|
|
708
|
-
const
|
|
709
|
-
validate.errors =
|
|
710
|
-
if (!
|
|
941
|
+
for (let m = 0; m < data.borderRadius.length; m++) {
|
|
942
|
+
if (data.borderRadius[m] !== undefined && hasOwn(data.borderRadius, m)) {
|
|
943
|
+
const err13 = validate.errors;
|
|
944
|
+
const res13 = ref8(data.borderRadius[m]);
|
|
945
|
+
const suberr18 = ref8.errors;
|
|
946
|
+
validate.errors = err13;
|
|
947
|
+
if (!res13) {
|
|
711
948
|
if (validate.errors === null)
|
|
712
949
|
validate.errors = [];
|
|
713
|
-
validate.errors.push(...
|
|
950
|
+
validate.errors.push(...suberr18.map(e => errorMerge(e, "#/properties/borderRadius/anyOf/1/items/$ref", "#/borderRadius/" + m)));
|
|
714
951
|
errorCount++;
|
|
715
952
|
}
|
|
716
953
|
}
|
|
@@ -718,64 +955,64 @@ const validate = (function () {
|
|
|
718
955
|
}
|
|
719
956
|
return errorCount === 0;
|
|
720
957
|
})();
|
|
721
|
-
if (!
|
|
958
|
+
if (!sub9) {
|
|
722
959
|
if (validate.errors === null)
|
|
723
960
|
validate.errors = [];
|
|
724
|
-
validate.errors.push({ keywordLocation: "#/properties/
|
|
725
|
-
if (
|
|
726
|
-
validate.errors.push(...
|
|
961
|
+
validate.errors.push({ keywordLocation: "#/properties/borderRadius/anyOf", instanceLocation: "#/borderRadius" });
|
|
962
|
+
if (suberr16)
|
|
963
|
+
validate.errors.push(...suberr16);
|
|
727
964
|
errorCount++;
|
|
728
965
|
}
|
|
729
966
|
}
|
|
730
967
|
}
|
|
731
|
-
if (data.
|
|
732
|
-
let
|
|
733
|
-
const
|
|
968
|
+
if (data.fontFamily !== undefined && hasOwn(data, "fontFamily")) {
|
|
969
|
+
let suberr19 = null;
|
|
970
|
+
const sub10 = (() => {
|
|
734
971
|
let errorCount = 0;
|
|
735
|
-
const
|
|
736
|
-
const
|
|
737
|
-
const
|
|
738
|
-
validate.errors =
|
|
739
|
-
if (!
|
|
972
|
+
const err14 = validate.errors;
|
|
973
|
+
const res14 = ref9(data.fontFamily);
|
|
974
|
+
const suberr20 = ref9.errors;
|
|
975
|
+
validate.errors = err14;
|
|
976
|
+
if (!res14) {
|
|
740
977
|
if (validate.errors === null)
|
|
741
978
|
validate.errors = [];
|
|
742
|
-
validate.errors.push(...
|
|
979
|
+
validate.errors.push(...suberr20.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/0/$ref", "#/fontFamily")));
|
|
743
980
|
errorCount++;
|
|
744
981
|
}
|
|
745
982
|
return errorCount === 0;
|
|
746
983
|
})();
|
|
747
|
-
if (!
|
|
748
|
-
const
|
|
984
|
+
if (!sub10) {
|
|
985
|
+
const sub11 = (() => {
|
|
749
986
|
let errorCount = 0;
|
|
750
|
-
if (!Array.isArray(data.
|
|
751
|
-
if (
|
|
752
|
-
|
|
753
|
-
|
|
987
|
+
if (!Array.isArray(data.fontFamily)) {
|
|
988
|
+
if (suberr19 === null)
|
|
989
|
+
suberr19 = [];
|
|
990
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/type", instanceLocation: "#/fontFamily" });
|
|
754
991
|
errorCount++;
|
|
755
992
|
}
|
|
756
993
|
else {
|
|
757
|
-
if (data.
|
|
758
|
-
if (
|
|
759
|
-
|
|
760
|
-
|
|
994
|
+
if (data.fontFamily.length > 128) {
|
|
995
|
+
if (suberr19 === null)
|
|
996
|
+
suberr19 = [];
|
|
997
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/maxItems", instanceLocation: "#/fontFamily" });
|
|
761
998
|
errorCount++;
|
|
762
999
|
}
|
|
763
|
-
if (data.
|
|
764
|
-
if (
|
|
765
|
-
|
|
766
|
-
|
|
1000
|
+
if (data.fontFamily.length < 0) {
|
|
1001
|
+
if (suberr19 === null)
|
|
1002
|
+
suberr19 = [];
|
|
1003
|
+
suberr19.push({ keywordLocation: "#/properties/fontFamily/anyOf/1/minItems", instanceLocation: "#/fontFamily" });
|
|
767
1004
|
errorCount++;
|
|
768
1005
|
}
|
|
769
|
-
for (let
|
|
770
|
-
if (data.
|
|
771
|
-
const
|
|
772
|
-
const
|
|
773
|
-
const
|
|
774
|
-
validate.errors =
|
|
775
|
-
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) {
|
|
776
1013
|
if (validate.errors === null)
|
|
777
1014
|
validate.errors = [];
|
|
778
|
-
validate.errors.push(...
|
|
1015
|
+
validate.errors.push(...suberr21.map(e => errorMerge(e, "#/properties/fontFamily/anyOf/1/items/$ref", "#/fontFamily/" + n)));
|
|
779
1016
|
errorCount++;
|
|
780
1017
|
}
|
|
781
1018
|
}
|
|
@@ -783,76 +1020,64 @@ const validate = (function () {
|
|
|
783
1020
|
}
|
|
784
1021
|
return errorCount === 0;
|
|
785
1022
|
})();
|
|
786
|
-
if (!
|
|
1023
|
+
if (!sub11) {
|
|
787
1024
|
if (validate.errors === null)
|
|
788
1025
|
validate.errors = [];
|
|
789
|
-
validate.errors.push({ keywordLocation: "#/properties/
|
|
790
|
-
if (
|
|
791
|
-
validate.errors.push(...
|
|
1026
|
+
validate.errors.push({ keywordLocation: "#/properties/fontFamily/anyOf", instanceLocation: "#/fontFamily" });
|
|
1027
|
+
if (suberr19)
|
|
1028
|
+
validate.errors.push(...suberr19);
|
|
792
1029
|
errorCount++;
|
|
793
1030
|
}
|
|
794
1031
|
}
|
|
795
1032
|
}
|
|
796
|
-
if (data.
|
|
797
|
-
|
|
798
|
-
const
|
|
799
|
-
const suberr12 = ref4.errors;
|
|
800
|
-
validate.errors = err8;
|
|
801
|
-
if (!res8) {
|
|
802
|
-
if (validate.errors === null)
|
|
803
|
-
validate.errors = [];
|
|
804
|
-
validate.errors.push(...suberr12.map(e => errorMerge(e, "#/properties/scale/allOf/0/$ref", "#/scale")));
|
|
805
|
-
errorCount++;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
if (data.borderRadius !== undefined && hasOwn(data, "borderRadius")) {
|
|
809
|
-
let suberr13 = null;
|
|
810
|
-
const sub8 = (() => {
|
|
1033
|
+
if (data.fontWeight !== undefined && hasOwn(data, "fontWeight")) {
|
|
1034
|
+
let suberr22 = null;
|
|
1035
|
+
const sub12 = (() => {
|
|
811
1036
|
let errorCount = 0;
|
|
812
|
-
const
|
|
813
|
-
const
|
|
814
|
-
const
|
|
815
|
-
validate.errors =
|
|
816
|
-
if (!
|
|
1037
|
+
const err16 = validate.errors;
|
|
1038
|
+
const res16 = ref10(data.fontWeight);
|
|
1039
|
+
const suberr23 = ref10.errors;
|
|
1040
|
+
validate.errors = err16;
|
|
1041
|
+
if (!res16) {
|
|
817
1042
|
if (validate.errors === null)
|
|
818
1043
|
validate.errors = [];
|
|
819
|
-
validate.errors.push(...
|
|
1044
|
+
validate.errors.push(...suberr23.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/0/$ref", "#/fontWeight")));
|
|
820
1045
|
errorCount++;
|
|
821
1046
|
}
|
|
822
1047
|
return errorCount === 0;
|
|
823
1048
|
})();
|
|
824
|
-
if (!
|
|
825
|
-
const
|
|
1049
|
+
if (!sub12) {
|
|
1050
|
+
const sub13 = (() => {
|
|
826
1051
|
let errorCount = 0;
|
|
827
|
-
if (!Array.isArray(data.
|
|
828
|
-
if (
|
|
829
|
-
|
|
830
|
-
|
|
1052
|
+
if (!Array.isArray(data.fontWeight)) {
|
|
1053
|
+
if (suberr22 === null)
|
|
1054
|
+
suberr22 = [];
|
|
1055
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/type", instanceLocation: "#/fontWeight" });
|
|
831
1056
|
errorCount++;
|
|
832
1057
|
}
|
|
833
1058
|
else {
|
|
834
|
-
if (data.
|
|
835
|
-
if (
|
|
836
|
-
|
|
837
|
-
|
|
1059
|
+
if (data.fontWeight.length > 128) {
|
|
1060
|
+
if (suberr22 === null)
|
|
1061
|
+
suberr22 = [];
|
|
1062
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/maxItems", instanceLocation: "#/fontWeight" });
|
|
838
1063
|
errorCount++;
|
|
839
1064
|
}
|
|
840
|
-
if (data.
|
|
841
|
-
if (
|
|
842
|
-
|
|
843
|
-
|
|
1065
|
+
if (data.fontWeight.length < 0) {
|
|
1066
|
+
if (suberr22 === null)
|
|
1067
|
+
suberr22 = [];
|
|
1068
|
+
suberr22.push({ keywordLocation: "#/properties/fontWeight/anyOf/1/minItems", instanceLocation: "#/fontWeight" });
|
|
844
1069
|
errorCount++;
|
|
845
1070
|
}
|
|
846
|
-
for (let
|
|
847
|
-
if (data.
|
|
848
|
-
const
|
|
849
|
-
const
|
|
850
|
-
const
|
|
851
|
-
validate.errors =
|
|
852
|
-
if (!
|
|
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) {
|
|
853
1078
|
if (validate.errors === null)
|
|
854
1079
|
validate.errors = [];
|
|
855
|
-
validate.errors.push(...
|
|
1080
|
+
validate.errors.push(...suberr24.map(e => errorMerge(e, "#/properties/fontWeight/anyOf/1/items/$ref", "#/fontWeight/" + o)));
|
|
856
1081
|
errorCount++;
|
|
857
1082
|
}
|
|
858
1083
|
}
|
|
@@ -860,64 +1085,64 @@ const validate = (function () {
|
|
|
860
1085
|
}
|
|
861
1086
|
return errorCount === 0;
|
|
862
1087
|
})();
|
|
863
|
-
if (!
|
|
1088
|
+
if (!sub13) {
|
|
864
1089
|
if (validate.errors === null)
|
|
865
1090
|
validate.errors = [];
|
|
866
|
-
validate.errors.push({ keywordLocation: "#/properties/
|
|
867
|
-
if (
|
|
868
|
-
validate.errors.push(...
|
|
1091
|
+
validate.errors.push({ keywordLocation: "#/properties/fontWeight/anyOf", instanceLocation: "#/fontWeight" });
|
|
1092
|
+
if (suberr22)
|
|
1093
|
+
validate.errors.push(...suberr22);
|
|
869
1094
|
errorCount++;
|
|
870
1095
|
}
|
|
871
1096
|
}
|
|
872
1097
|
}
|
|
873
1098
|
if (data.tags !== undefined && hasOwn(data, "tags")) {
|
|
874
|
-
let
|
|
875
|
-
const
|
|
1099
|
+
let suberr25 = null;
|
|
1100
|
+
const sub14 = (() => {
|
|
876
1101
|
let errorCount = 0;
|
|
877
|
-
const
|
|
878
|
-
const
|
|
879
|
-
const
|
|
880
|
-
validate.errors =
|
|
881
|
-
if (!
|
|
1102
|
+
const err18 = validate.errors;
|
|
1103
|
+
const res18 = ref11(data.tags);
|
|
1104
|
+
const suberr26 = ref11.errors;
|
|
1105
|
+
validate.errors = err18;
|
|
1106
|
+
if (!res18) {
|
|
882
1107
|
if (validate.errors === null)
|
|
883
1108
|
validate.errors = [];
|
|
884
|
-
validate.errors.push(...
|
|
1109
|
+
validate.errors.push(...suberr26.map(e => errorMerge(e, "#/properties/tags/anyOf/0/$ref", "#/tags")));
|
|
885
1110
|
errorCount++;
|
|
886
1111
|
}
|
|
887
1112
|
return errorCount === 0;
|
|
888
1113
|
})();
|
|
889
|
-
if (!
|
|
890
|
-
const
|
|
1114
|
+
if (!sub14) {
|
|
1115
|
+
const sub15 = (() => {
|
|
891
1116
|
let errorCount = 0;
|
|
892
1117
|
if (!Array.isArray(data.tags)) {
|
|
893
|
-
if (
|
|
894
|
-
|
|
895
|
-
|
|
1118
|
+
if (suberr25 === null)
|
|
1119
|
+
suberr25 = [];
|
|
1120
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/type", instanceLocation: "#/tags" });
|
|
896
1121
|
errorCount++;
|
|
897
1122
|
}
|
|
898
1123
|
else {
|
|
899
1124
|
if (data.tags.length > 128) {
|
|
900
|
-
if (
|
|
901
|
-
|
|
902
|
-
|
|
1125
|
+
if (suberr25 === null)
|
|
1126
|
+
suberr25 = [];
|
|
1127
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/maxItems", instanceLocation: "#/tags" });
|
|
903
1128
|
errorCount++;
|
|
904
1129
|
}
|
|
905
1130
|
if (data.tags.length < 0) {
|
|
906
|
-
if (
|
|
907
|
-
|
|
908
|
-
|
|
1131
|
+
if (suberr25 === null)
|
|
1132
|
+
suberr25 = [];
|
|
1133
|
+
suberr25.push({ keywordLocation: "#/properties/tags/anyOf/1/minItems", instanceLocation: "#/tags" });
|
|
909
1134
|
errorCount++;
|
|
910
1135
|
}
|
|
911
|
-
for (let
|
|
912
|
-
if (data.tags[
|
|
913
|
-
const
|
|
914
|
-
const
|
|
915
|
-
const
|
|
916
|
-
validate.errors =
|
|
917
|
-
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) {
|
|
918
1143
|
if (validate.errors === null)
|
|
919
1144
|
validate.errors = [];
|
|
920
|
-
validate.errors.push(...
|
|
1145
|
+
validate.errors.push(...suberr27.map(e => errorMerge(e, "#/properties/tags/anyOf/1/items/$ref", "#/tags/" + p)));
|
|
921
1146
|
errorCount++;
|
|
922
1147
|
}
|
|
923
1148
|
}
|
|
@@ -925,88 +1150,98 @@ const validate = (function () {
|
|
|
925
1150
|
}
|
|
926
1151
|
return errorCount === 0;
|
|
927
1152
|
})();
|
|
928
|
-
if (!
|
|
1153
|
+
if (!sub15) {
|
|
929
1154
|
if (validate.errors === null)
|
|
930
1155
|
validate.errors = [];
|
|
931
1156
|
validate.errors.push({ keywordLocation: "#/properties/tags/anyOf", instanceLocation: "#/tags" });
|
|
932
|
-
if (
|
|
933
|
-
validate.errors.push(...
|
|
1157
|
+
if (suberr25)
|
|
1158
|
+
validate.errors.push(...suberr25);
|
|
934
1159
|
errorCount++;
|
|
935
1160
|
}
|
|
936
1161
|
}
|
|
937
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
|
+
}
|
|
938
1195
|
if (errorCount === prev0) {
|
|
939
1196
|
for (const key1 of Object.keys(data)) {
|
|
940
1197
|
if (pattern2.test(key1)) {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
validate.errors = [];
|
|
944
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
945
|
-
errorCount++;
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
if (!(0 <= data[key1])) {
|
|
949
|
-
if (validate.errors === null)
|
|
950
|
-
validate.errors = [];
|
|
951
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/minimum", instanceLocation: "#/" + pointerPart(key1) });
|
|
952
|
-
errorCount++;
|
|
953
|
-
}
|
|
954
|
-
if (!(100 >= data[key1])) {
|
|
955
|
-
if (validate.errors === null)
|
|
956
|
-
validate.errors = [];
|
|
957
|
-
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/maximum", instanceLocation: "#/" + pointerPart(key1) });
|
|
958
|
-
errorCount++;
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
if (pattern3.test(key1)) {
|
|
963
|
-
let suberr19 = null;
|
|
964
|
-
const sub12 = (() => {
|
|
1198
|
+
let suberr36 = null;
|
|
1199
|
+
const sub20 = (() => {
|
|
965
1200
|
let errorCount = 0;
|
|
966
|
-
const
|
|
967
|
-
const
|
|
968
|
-
const
|
|
969
|
-
validate.errors =
|
|
970
|
-
if (!
|
|
1201
|
+
const err26 = validate.errors;
|
|
1202
|
+
const res26 = ref16(data[key1]);
|
|
1203
|
+
const suberr37 = ref16.errors;
|
|
1204
|
+
validate.errors = err26;
|
|
1205
|
+
if (!res26) {
|
|
971
1206
|
if (validate.errors === null)
|
|
972
1207
|
validate.errors = [];
|
|
973
|
-
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))));
|
|
974
1209
|
errorCount++;
|
|
975
1210
|
}
|
|
976
1211
|
return errorCount === 0;
|
|
977
1212
|
})();
|
|
978
|
-
if (!
|
|
979
|
-
const
|
|
1213
|
+
if (!sub20) {
|
|
1214
|
+
const sub21 = (() => {
|
|
980
1215
|
let errorCount = 0;
|
|
981
1216
|
if (!(Array.isArray(data[key1]))) {
|
|
982
|
-
if (
|
|
983
|
-
|
|
984
|
-
|
|
1217
|
+
if (suberr36 === null)
|
|
1218
|
+
suberr36 = [];
|
|
1219
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
985
1220
|
errorCount++;
|
|
986
1221
|
}
|
|
987
1222
|
else {
|
|
988
1223
|
if (data[key1].length > 128) {
|
|
989
|
-
if (
|
|
990
|
-
|
|
991
|
-
|
|
1224
|
+
if (suberr36 === null)
|
|
1225
|
+
suberr36 = [];
|
|
1226
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
992
1227
|
errorCount++;
|
|
993
1228
|
}
|
|
994
1229
|
if (data[key1].length < 0) {
|
|
995
|
-
if (
|
|
996
|
-
|
|
997
|
-
|
|
1230
|
+
if (suberr36 === null)
|
|
1231
|
+
suberr36 = [];
|
|
1232
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
998
1233
|
errorCount++;
|
|
999
1234
|
}
|
|
1000
|
-
for (let
|
|
1001
|
-
if (data[key1][
|
|
1002
|
-
const
|
|
1003
|
-
const
|
|
1004
|
-
const
|
|
1005
|
-
validate.errors =
|
|
1006
|
-
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) {
|
|
1007
1242
|
if (validate.errors === null)
|
|
1008
1243
|
validate.errors = [];
|
|
1009
|
-
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)));
|
|
1010
1245
|
errorCount++;
|
|
1011
1246
|
}
|
|
1012
1247
|
}
|
|
@@ -1014,52 +1249,52 @@ const validate = (function () {
|
|
|
1014
1249
|
}
|
|
1015
1250
|
return errorCount === 0;
|
|
1016
1251
|
})();
|
|
1017
|
-
if (!
|
|
1018
|
-
const
|
|
1252
|
+
if (!sub21) {
|
|
1253
|
+
const sub22 = (() => {
|
|
1019
1254
|
let errorCount = 0;
|
|
1020
1255
|
if (!(typeof data[key1] === "object" && data[key1] && !Array.isArray(data[key1]))) {
|
|
1021
|
-
if (
|
|
1022
|
-
|
|
1023
|
-
|
|
1256
|
+
if (suberr36 === null)
|
|
1257
|
+
suberr36 = [];
|
|
1258
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1024
1259
|
errorCount++;
|
|
1025
1260
|
}
|
|
1026
1261
|
else {
|
|
1027
1262
|
if (Object.keys(data[key1]).length > 512) {
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1030
|
-
|
|
1263
|
+
if (suberr36 === null)
|
|
1264
|
+
suberr36 = [];
|
|
1265
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/maxProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1031
1266
|
errorCount++;
|
|
1032
1267
|
}
|
|
1033
1268
|
if (Object.keys(data[key1]).length < 1) {
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1036
|
-
|
|
1269
|
+
if (suberr36 === null)
|
|
1270
|
+
suberr36 = [];
|
|
1271
|
+
suberr36.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/minProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1037
1272
|
errorCount++;
|
|
1038
1273
|
}
|
|
1039
1274
|
for (const key2 of Object.keys(data[key1])) {
|
|
1040
|
-
const
|
|
1041
|
-
const
|
|
1042
|
-
const
|
|
1043
|
-
validate.errors =
|
|
1044
|
-
if (!
|
|
1275
|
+
const err28 = validate.errors;
|
|
1276
|
+
const res28 = ref16(key2);
|
|
1277
|
+
const suberr39 = ref16.errors;
|
|
1278
|
+
validate.errors = err28;
|
|
1279
|
+
if (!res28) {
|
|
1045
1280
|
if (validate.errors === null)
|
|
1046
1281
|
validate.errors = [];
|
|
1047
|
-
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))));
|
|
1048
1283
|
errorCount++;
|
|
1049
1284
|
}
|
|
1050
1285
|
}
|
|
1051
1286
|
for (const key3 of Object.keys(data[key1])) {
|
|
1052
1287
|
if (!(typeof data[key1][key3] === "number")) {
|
|
1053
|
-
if (
|
|
1054
|
-
|
|
1055
|
-
|
|
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) });
|
|
1056
1291
|
errorCount++;
|
|
1057
1292
|
}
|
|
1058
1293
|
else {
|
|
1059
1294
|
if (!(0 <= data[key1][key3])) {
|
|
1060
|
-
if (
|
|
1061
|
-
|
|
1062
|
-
|
|
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) });
|
|
1063
1298
|
errorCount++;
|
|
1064
1299
|
}
|
|
1065
1300
|
}
|
|
@@ -1067,65 +1302,87 @@ const validate = (function () {
|
|
|
1067
1302
|
}
|
|
1068
1303
|
return errorCount === 0;
|
|
1069
1304
|
})();
|
|
1070
|
-
if (!
|
|
1305
|
+
if (!sub22) {
|
|
1071
1306
|
if (validate.errors === null)
|
|
1072
1307
|
validate.errors = [];
|
|
1073
1308
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1074
|
-
if (
|
|
1075
|
-
validate.errors.push(...
|
|
1309
|
+
if (suberr36)
|
|
1310
|
+
validate.errors.push(...suberr36);
|
|
1076
1311
|
errorCount++;
|
|
1077
1312
|
}
|
|
1078
1313
|
}
|
|
1079
1314
|
}
|
|
1080
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
|
+
}
|
|
1081
1338
|
if (pattern5.test(key1)) {
|
|
1082
|
-
let
|
|
1083
|
-
const
|
|
1339
|
+
let suberr40 = null;
|
|
1340
|
+
const sub23 = (() => {
|
|
1084
1341
|
let errorCount = 0;
|
|
1085
|
-
const
|
|
1086
|
-
const
|
|
1087
|
-
const
|
|
1088
|
-
validate.errors =
|
|
1089
|
-
if (!
|
|
1342
|
+
const err29 = validate.errors;
|
|
1343
|
+
const res29 = ref17(data[key1]);
|
|
1344
|
+
const suberr41 = ref17.errors;
|
|
1345
|
+
validate.errors = err29;
|
|
1346
|
+
if (!res29) {
|
|
1090
1347
|
if (validate.errors === null)
|
|
1091
1348
|
validate.errors = [];
|
|
1092
|
-
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))));
|
|
1093
1350
|
errorCount++;
|
|
1094
1351
|
}
|
|
1095
1352
|
return errorCount === 0;
|
|
1096
1353
|
})();
|
|
1097
|
-
if (!
|
|
1098
|
-
const
|
|
1354
|
+
if (!sub23) {
|
|
1355
|
+
const sub24 = (() => {
|
|
1099
1356
|
let errorCount = 0;
|
|
1100
1357
|
if (!(Array.isArray(data[key1]))) {
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1103
|
-
|
|
1358
|
+
if (suberr40 === null)
|
|
1359
|
+
suberr40 = [];
|
|
1360
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1104
1361
|
errorCount++;
|
|
1105
1362
|
}
|
|
1106
1363
|
else {
|
|
1107
1364
|
if (data[key1].length > 128) {
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1110
|
-
|
|
1365
|
+
if (suberr40 === null)
|
|
1366
|
+
suberr40 = [];
|
|
1367
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1111
1368
|
errorCount++;
|
|
1112
1369
|
}
|
|
1113
1370
|
if (data[key1].length < 0) {
|
|
1114
|
-
if (
|
|
1115
|
-
|
|
1116
|
-
|
|
1371
|
+
if (suberr40 === null)
|
|
1372
|
+
suberr40 = [];
|
|
1373
|
+
suberr40.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1117
1374
|
errorCount++;
|
|
1118
1375
|
}
|
|
1119
|
-
for (let
|
|
1120
|
-
if (data[key1][
|
|
1121
|
-
const
|
|
1122
|
-
const
|
|
1123
|
-
const
|
|
1124
|
-
validate.errors =
|
|
1125
|
-
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) {
|
|
1126
1383
|
if (validate.errors === null)
|
|
1127
1384
|
validate.errors = [];
|
|
1128
|
-
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)));
|
|
1129
1386
|
errorCount++;
|
|
1130
1387
|
}
|
|
1131
1388
|
}
|
|
@@ -1133,64 +1390,64 @@ const validate = (function () {
|
|
|
1133
1390
|
}
|
|
1134
1391
|
return errorCount === 0;
|
|
1135
1392
|
})();
|
|
1136
|
-
if (!
|
|
1393
|
+
if (!sub24) {
|
|
1137
1394
|
if (validate.errors === null)
|
|
1138
1395
|
validate.errors = [];
|
|
1139
1396
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1140
|
-
if (
|
|
1141
|
-
validate.errors.push(...
|
|
1397
|
+
if (suberr40)
|
|
1398
|
+
validate.errors.push(...suberr40);
|
|
1142
1399
|
errorCount++;
|
|
1143
1400
|
}
|
|
1144
1401
|
}
|
|
1145
1402
|
}
|
|
1146
1403
|
if (pattern7.test(key1)) {
|
|
1147
|
-
let
|
|
1148
|
-
const
|
|
1404
|
+
let suberr43 = null;
|
|
1405
|
+
const sub25 = (() => {
|
|
1149
1406
|
let errorCount = 0;
|
|
1150
|
-
const
|
|
1151
|
-
const
|
|
1152
|
-
const
|
|
1153
|
-
validate.errors =
|
|
1154
|
-
if (!
|
|
1407
|
+
const err31 = validate.errors;
|
|
1408
|
+
const res31 = ref18(data[key1]);
|
|
1409
|
+
const suberr44 = ref18.errors;
|
|
1410
|
+
validate.errors = err31;
|
|
1411
|
+
if (!res31) {
|
|
1155
1412
|
if (validate.errors === null)
|
|
1156
1413
|
validate.errors = [];
|
|
1157
|
-
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))));
|
|
1158
1415
|
errorCount++;
|
|
1159
1416
|
}
|
|
1160
1417
|
return errorCount === 0;
|
|
1161
1418
|
})();
|
|
1162
|
-
if (!
|
|
1163
|
-
const
|
|
1419
|
+
if (!sub25) {
|
|
1420
|
+
const sub26 = (() => {
|
|
1164
1421
|
let errorCount = 0;
|
|
1165
1422
|
if (!(Array.isArray(data[key1]))) {
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
|
|
1423
|
+
if (suberr43 === null)
|
|
1424
|
+
suberr43 = [];
|
|
1425
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1169
1426
|
errorCount++;
|
|
1170
1427
|
}
|
|
1171
1428
|
else {
|
|
1172
1429
|
if (data[key1].length > 128) {
|
|
1173
|
-
if (
|
|
1174
|
-
|
|
1175
|
-
|
|
1430
|
+
if (suberr43 === null)
|
|
1431
|
+
suberr43 = [];
|
|
1432
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1176
1433
|
errorCount++;
|
|
1177
1434
|
}
|
|
1178
1435
|
if (data[key1].length < 0) {
|
|
1179
|
-
if (
|
|
1180
|
-
|
|
1181
|
-
|
|
1436
|
+
if (suberr43 === null)
|
|
1437
|
+
suberr43 = [];
|
|
1438
|
+
suberr43.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1182
1439
|
errorCount++;
|
|
1183
1440
|
}
|
|
1184
|
-
for (let
|
|
1185
|
-
if (data[key1][
|
|
1186
|
-
const
|
|
1187
|
-
const
|
|
1188
|
-
const
|
|
1189
|
-
validate.errors =
|
|
1190
|
-
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) {
|
|
1191
1448
|
if (validate.errors === null)
|
|
1192
1449
|
validate.errors = [];
|
|
1193
|
-
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)));
|
|
1194
1451
|
errorCount++;
|
|
1195
1452
|
}
|
|
1196
1453
|
}
|
|
@@ -1198,64 +1455,64 @@ const validate = (function () {
|
|
|
1198
1455
|
}
|
|
1199
1456
|
return errorCount === 0;
|
|
1200
1457
|
})();
|
|
1201
|
-
if (!
|
|
1458
|
+
if (!sub26) {
|
|
1202
1459
|
if (validate.errors === null)
|
|
1203
1460
|
validate.errors = [];
|
|
1204
1461
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1205
|
-
if (
|
|
1206
|
-
validate.errors.push(...
|
|
1462
|
+
if (suberr43)
|
|
1463
|
+
validate.errors.push(...suberr43);
|
|
1207
1464
|
errorCount++;
|
|
1208
1465
|
}
|
|
1209
1466
|
}
|
|
1210
1467
|
}
|
|
1211
1468
|
if (pattern8.test(key1)) {
|
|
1212
|
-
let
|
|
1213
|
-
const
|
|
1469
|
+
let suberr46 = null;
|
|
1470
|
+
const sub27 = (() => {
|
|
1214
1471
|
let errorCount = 0;
|
|
1215
|
-
const
|
|
1216
|
-
const
|
|
1217
|
-
const
|
|
1218
|
-
validate.errors =
|
|
1219
|
-
if (!
|
|
1472
|
+
const err33 = validate.errors;
|
|
1473
|
+
const res33 = ref19(data[key1]);
|
|
1474
|
+
const suberr47 = ref19.errors;
|
|
1475
|
+
validate.errors = err33;
|
|
1476
|
+
if (!res33) {
|
|
1220
1477
|
if (validate.errors === null)
|
|
1221
1478
|
validate.errors = [];
|
|
1222
|
-
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))));
|
|
1223
1480
|
errorCount++;
|
|
1224
1481
|
}
|
|
1225
1482
|
return errorCount === 0;
|
|
1226
1483
|
})();
|
|
1227
|
-
if (!
|
|
1228
|
-
const
|
|
1484
|
+
if (!sub27) {
|
|
1485
|
+
const sub28 = (() => {
|
|
1229
1486
|
let errorCount = 0;
|
|
1230
1487
|
if (!(Array.isArray(data[key1]))) {
|
|
1231
|
-
if (
|
|
1232
|
-
|
|
1233
|
-
|
|
1488
|
+
if (suberr46 === null)
|
|
1489
|
+
suberr46 = [];
|
|
1490
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1234
1491
|
errorCount++;
|
|
1235
1492
|
}
|
|
1236
1493
|
else {
|
|
1237
1494
|
if (data[key1].length > 2) {
|
|
1238
|
-
if (
|
|
1239
|
-
|
|
1240
|
-
|
|
1495
|
+
if (suberr46 === null)
|
|
1496
|
+
suberr46 = [];
|
|
1497
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1241
1498
|
errorCount++;
|
|
1242
1499
|
}
|
|
1243
1500
|
if (data[key1].length < 0) {
|
|
1244
|
-
if (
|
|
1245
|
-
|
|
1246
|
-
|
|
1501
|
+
if (suberr46 === null)
|
|
1502
|
+
suberr46 = [];
|
|
1503
|
+
suberr46.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1247
1504
|
errorCount++;
|
|
1248
1505
|
}
|
|
1249
|
-
for (let
|
|
1250
|
-
if (data[key1][
|
|
1251
|
-
const
|
|
1252
|
-
const
|
|
1253
|
-
const
|
|
1254
|
-
validate.errors =
|
|
1255
|
-
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) {
|
|
1256
1513
|
if (validate.errors === null)
|
|
1257
1514
|
validate.errors = [];
|
|
1258
|
-
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)));
|
|
1259
1516
|
errorCount++;
|
|
1260
1517
|
}
|
|
1261
1518
|
}
|
|
@@ -1263,25 +1520,25 @@ const validate = (function () {
|
|
|
1263
1520
|
}
|
|
1264
1521
|
return errorCount === 0;
|
|
1265
1522
|
})();
|
|
1266
|
-
if (!
|
|
1523
|
+
if (!sub28) {
|
|
1267
1524
|
if (validate.errors === null)
|
|
1268
1525
|
validate.errors = [];
|
|
1269
1526
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1270
|
-
if (
|
|
1271
|
-
validate.errors.push(...
|
|
1527
|
+
if (suberr46)
|
|
1528
|
+
validate.errors.push(...suberr46);
|
|
1272
1529
|
errorCount++;
|
|
1273
1530
|
}
|
|
1274
1531
|
}
|
|
1275
1532
|
}
|
|
1276
1533
|
if (pattern9.test(key1)) {
|
|
1277
|
-
const
|
|
1278
|
-
const
|
|
1279
|
-
const
|
|
1280
|
-
validate.errors =
|
|
1281
|
-
if (!
|
|
1534
|
+
const err35 = validate.errors;
|
|
1535
|
+
const res35 = ref2(data[key1]);
|
|
1536
|
+
const suberr49 = ref2.errors;
|
|
1537
|
+
validate.errors = err35;
|
|
1538
|
+
if (!res35) {
|
|
1282
1539
|
if (validate.errors === null)
|
|
1283
1540
|
validate.errors = [];
|
|
1284
|
-
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))));
|
|
1285
1542
|
errorCount++;
|
|
1286
1543
|
}
|
|
1287
1544
|
}
|
|
@@ -1301,45 +1558,41 @@ const validate = (function () {
|
|
|
1301
1558
|
}
|
|
1302
1559
|
}
|
|
1303
1560
|
}
|
|
1304
|
-
if ((key1
|
|
1305
|
-
|
|
1306
|
-
const res25 = ref12(data[key1]);
|
|
1307
|
-
const suberr36 = ref12.errors;
|
|
1308
|
-
validate.errors = err25;
|
|
1309
|
-
if (!res25) {
|
|
1561
|
+
if (pattern11.test(key1)) {
|
|
1562
|
+
if (!(typeof data[key1] === "boolean")) {
|
|
1310
1563
|
if (validate.errors === null)
|
|
1311
1564
|
validate.errors = [];
|
|
1312
|
-
validate.errors.push(
|
|
1565
|
+
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Animation$/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1313
1566
|
errorCount++;
|
|
1314
1567
|
}
|
|
1315
1568
|
}
|
|
1316
|
-
if ((key1
|
|
1317
|
-
const
|
|
1318
|
-
const
|
|
1319
|
-
const
|
|
1320
|
-
validate.errors =
|
|
1321
|
-
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) {
|
|
1322
1575
|
if (validate.errors === null)
|
|
1323
1576
|
validate.errors = [];
|
|
1324
|
-
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))));
|
|
1325
1578
|
errorCount++;
|
|
1326
1579
|
}
|
|
1327
1580
|
}
|
|
1328
|
-
if ((key1
|
|
1329
|
-
const
|
|
1330
|
-
const
|
|
1331
|
-
const
|
|
1332
|
-
validate.errors =
|
|
1333
|
-
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) {
|
|
1334
1587
|
if (validate.errors === null)
|
|
1335
1588
|
validate.errors = [];
|
|
1336
|
-
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))));
|
|
1337
1590
|
errorCount++;
|
|
1338
1591
|
}
|
|
1339
1592
|
}
|
|
1340
1593
|
}
|
|
1341
1594
|
for (const key4 of Object.keys(data)) {
|
|
1342
|
-
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)) {
|
|
1343
1596
|
if (validate.errors === null)
|
|
1344
1597
|
validate.errors = [];
|
|
1345
1598
|
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key4) });
|