@dicebear/core 10.7.0 → 11.0.0-rc.1
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 +1 -1
- package/lib/Options.d.ts +6 -0
- package/lib/Options.js +14 -0
- package/lib/OptionsDescriptor.d.ts +5 -1
- package/lib/OptionsDescriptor.js +9 -0
- package/lib/Renderer.js +202 -10
- package/lib/Resolver.d.ts +2 -0
- package/lib/Resolver.js +9 -0
- 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 -2
- package/lib/StyleDefinition.d.ts +56 -0
- package/lib/StyleOptions.d.ts +2 -0
- package/lib/Validator/OptionsValidator.js +437 -242
- package/lib/Validator/StyleValidator.js +989 -282
- package/package.json +2 -2
|
@@ -228,9 +228,7 @@ const validate = (function () {
|
|
|
228
228
|
}
|
|
229
229
|
return errorCount === 0;
|
|
230
230
|
};
|
|
231
|
-
const pattern2 = new RegExp("^[a-z][a-zA-Z0-9]
|
|
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");
|
|
231
|
+
const pattern2 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
|
|
234
232
|
const ref8 = function validate(data) {
|
|
235
233
|
validate.errors = null;
|
|
236
234
|
let errorCount = 0;
|
|
@@ -249,7 +247,7 @@ const validate = (function () {
|
|
|
249
247
|
errorCount++;
|
|
250
248
|
}
|
|
251
249
|
if (errorCount === prev3) {
|
|
252
|
-
if (!
|
|
250
|
+
if (!pattern2.test(data)) {
|
|
253
251
|
if (validate.errors === null)
|
|
254
252
|
validate.errors = [];
|
|
255
253
|
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
@@ -259,9 +257,34 @@ const validate = (function () {
|
|
|
259
257
|
}
|
|
260
258
|
return errorCount === 0;
|
|
261
259
|
};
|
|
262
|
-
const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*Color$", "u");
|
|
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");
|
|
264
260
|
const ref9 = function validate(data) {
|
|
261
|
+
validate.errors = null;
|
|
262
|
+
let errorCount = 0;
|
|
263
|
+
if (!(typeof data === "number")) {
|
|
264
|
+
if (validate.errors === null)
|
|
265
|
+
validate.errors = [];
|
|
266
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
267
|
+
errorCount++;
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
if (!(0.1 <= data)) {
|
|
271
|
+
if (validate.errors === null)
|
|
272
|
+
validate.errors = [];
|
|
273
|
+
validate.errors.push({ keywordLocation: "#/minimum", instanceLocation: "#" });
|
|
274
|
+
errorCount++;
|
|
275
|
+
}
|
|
276
|
+
if (!(10 >= data)) {
|
|
277
|
+
if (validate.errors === null)
|
|
278
|
+
validate.errors = [];
|
|
279
|
+
validate.errors.push({ keywordLocation: "#/maximum", instanceLocation: "#" });
|
|
280
|
+
errorCount++;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return errorCount === 0;
|
|
284
|
+
};
|
|
285
|
+
const pattern3 = new RegExp("^[a-z][a-zA-Z0-9]*Probability$", "u");
|
|
286
|
+
const pattern4 = new RegExp("^[a-z][a-zA-Z0-9]*Variant$", "u");
|
|
287
|
+
const ref10 = function validate(data) {
|
|
265
288
|
validate.errors = null;
|
|
266
289
|
let errorCount = 0;
|
|
267
290
|
if (!(typeof data === "string")) {
|
|
@@ -272,7 +295,37 @@ const validate = (function () {
|
|
|
272
295
|
}
|
|
273
296
|
else {
|
|
274
297
|
const prev4 = errorCount;
|
|
298
|
+
if (data.length > 64 && stringLength(data) > 64) {
|
|
299
|
+
if (validate.errors === null)
|
|
300
|
+
validate.errors = [];
|
|
301
|
+
validate.errors.push({ keywordLocation: "#/maxLength", instanceLocation: "#" });
|
|
302
|
+
errorCount++;
|
|
303
|
+
}
|
|
275
304
|
if (errorCount === prev4) {
|
|
305
|
+
if (!pattern2.test(data)) {
|
|
306
|
+
if (validate.errors === null)
|
|
307
|
+
validate.errors = [];
|
|
308
|
+
validate.errors.push({ keywordLocation: "#/pattern", instanceLocation: "#" });
|
|
309
|
+
errorCount++;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return errorCount === 0;
|
|
314
|
+
};
|
|
315
|
+
const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*Color$", "u");
|
|
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) {
|
|
318
|
+
validate.errors = null;
|
|
319
|
+
let errorCount = 0;
|
|
320
|
+
if (!(typeof data === "string")) {
|
|
321
|
+
if (validate.errors === null)
|
|
322
|
+
validate.errors = [];
|
|
323
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
324
|
+
errorCount++;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
const prev5 = errorCount;
|
|
328
|
+
if (errorCount === prev5) {
|
|
276
329
|
if (!pattern6.test(data)) {
|
|
277
330
|
if (validate.errors === null)
|
|
278
331
|
validate.errors = [];
|
|
@@ -284,7 +337,7 @@ const validate = (function () {
|
|
|
284
337
|
return errorCount === 0;
|
|
285
338
|
};
|
|
286
339
|
const pattern7 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFill$", "u");
|
|
287
|
-
const
|
|
340
|
+
const ref12 = function validate(data) {
|
|
288
341
|
validate.errors = null;
|
|
289
342
|
let errorCount = 0;
|
|
290
343
|
if (!(typeof data === "string")) {
|
|
@@ -304,7 +357,7 @@ const validate = (function () {
|
|
|
304
357
|
return errorCount === 0;
|
|
305
358
|
};
|
|
306
359
|
const pattern8 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFillStops$", "u");
|
|
307
|
-
const
|
|
360
|
+
const ref13 = function validate(data) {
|
|
308
361
|
validate.errors = null;
|
|
309
362
|
let errorCount = 0;
|
|
310
363
|
if (!Number.isInteger(data)) {
|
|
@@ -324,7 +377,7 @@ const validate = (function () {
|
|
|
324
377
|
return errorCount === 0;
|
|
325
378
|
};
|
|
326
379
|
const pattern9 = new RegExp("^[a-z][a-zA-Z0-9]*ColorAngle$", "u");
|
|
327
|
-
const
|
|
380
|
+
const ref15 = function validate(data) {
|
|
328
381
|
validate.errors = null;
|
|
329
382
|
let errorCount = 0;
|
|
330
383
|
if (!(typeof data === "number")) {
|
|
@@ -349,56 +402,56 @@ const validate = (function () {
|
|
|
349
402
|
}
|
|
350
403
|
return errorCount === 0;
|
|
351
404
|
};
|
|
352
|
-
const
|
|
405
|
+
const ref14 = function validate(data) {
|
|
353
406
|
validate.errors = null;
|
|
354
407
|
let errorCount = 0;
|
|
355
|
-
let
|
|
356
|
-
const
|
|
408
|
+
let suberr38 = null;
|
|
409
|
+
const sub26 = (() => {
|
|
357
410
|
let errorCount = 0;
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
const
|
|
361
|
-
validate.errors =
|
|
362
|
-
if (!
|
|
411
|
+
const err26 = validate.errors;
|
|
412
|
+
const res26 = ref15(data);
|
|
413
|
+
const suberr39 = ref15.errors;
|
|
414
|
+
validate.errors = err26;
|
|
415
|
+
if (!res26) {
|
|
363
416
|
if (validate.errors === null)
|
|
364
417
|
validate.errors = [];
|
|
365
|
-
validate.errors.push(...
|
|
418
|
+
validate.errors.push(...suberr39.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
366
419
|
errorCount++;
|
|
367
420
|
}
|
|
368
421
|
return errorCount === 0;
|
|
369
422
|
})();
|
|
370
|
-
if (!
|
|
371
|
-
const
|
|
423
|
+
if (!sub26) {
|
|
424
|
+
const sub27 = (() => {
|
|
372
425
|
let errorCount = 0;
|
|
373
426
|
if (!Array.isArray(data)) {
|
|
374
|
-
if (
|
|
375
|
-
|
|
376
|
-
|
|
427
|
+
if (suberr38 === null)
|
|
428
|
+
suberr38 = [];
|
|
429
|
+
suberr38.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
377
430
|
errorCount++;
|
|
378
431
|
}
|
|
379
432
|
else {
|
|
380
433
|
if (data.length > 2) {
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
|
|
434
|
+
if (suberr38 === null)
|
|
435
|
+
suberr38 = [];
|
|
436
|
+
suberr38.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
384
437
|
errorCount++;
|
|
385
438
|
}
|
|
386
439
|
if (data.length < 0) {
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
|
|
440
|
+
if (suberr38 === null)
|
|
441
|
+
suberr38 = [];
|
|
442
|
+
suberr38.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
390
443
|
errorCount++;
|
|
391
444
|
}
|
|
392
|
-
for (let
|
|
393
|
-
if (data[
|
|
394
|
-
const
|
|
395
|
-
const
|
|
396
|
-
const
|
|
397
|
-
validate.errors =
|
|
398
|
-
if (!
|
|
445
|
+
for (let u = 0; u < data.length; u++) {
|
|
446
|
+
if (data[u] !== undefined && hasOwn(data, u)) {
|
|
447
|
+
const err27 = validate.errors;
|
|
448
|
+
const res27 = ref15(data[u]);
|
|
449
|
+
const suberr40 = ref15.errors;
|
|
450
|
+
validate.errors = err27;
|
|
451
|
+
if (!res27) {
|
|
399
452
|
if (validate.errors === null)
|
|
400
453
|
validate.errors = [];
|
|
401
|
-
validate.errors.push(...
|
|
454
|
+
validate.errors.push(...suberr40.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + u)));
|
|
402
455
|
errorCount++;
|
|
403
456
|
}
|
|
404
457
|
}
|
|
@@ -406,19 +459,19 @@ const validate = (function () {
|
|
|
406
459
|
}
|
|
407
460
|
return errorCount === 0;
|
|
408
461
|
})();
|
|
409
|
-
if (!
|
|
462
|
+
if (!sub27) {
|
|
410
463
|
if (validate.errors === null)
|
|
411
464
|
validate.errors = [];
|
|
412
465
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
413
|
-
if (
|
|
414
|
-
validate.errors.push(...
|
|
466
|
+
if (suberr38)
|
|
467
|
+
validate.errors.push(...suberr38);
|
|
415
468
|
errorCount++;
|
|
416
469
|
}
|
|
417
470
|
}
|
|
418
471
|
return errorCount === 0;
|
|
419
472
|
};
|
|
420
473
|
const pattern10 = new RegExp("^[a-z][a-zA-Z0-9]*ColorOrder$", "u");
|
|
421
|
-
const
|
|
474
|
+
const ref17 = function validate(data) {
|
|
422
475
|
validate.errors = null;
|
|
423
476
|
let errorCount = 0;
|
|
424
477
|
if (!(typeof data === "number")) {
|
|
@@ -443,56 +496,56 @@ const validate = (function () {
|
|
|
443
496
|
}
|
|
444
497
|
return errorCount === 0;
|
|
445
498
|
};
|
|
446
|
-
const
|
|
499
|
+
const ref16 = function validate(data) {
|
|
447
500
|
validate.errors = null;
|
|
448
501
|
let errorCount = 0;
|
|
449
|
-
let
|
|
450
|
-
const
|
|
502
|
+
let suberr43 = null;
|
|
503
|
+
const sub28 = (() => {
|
|
451
504
|
let errorCount = 0;
|
|
452
|
-
const
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
validate.errors =
|
|
456
|
-
if (!
|
|
505
|
+
const err30 = validate.errors;
|
|
506
|
+
const res30 = ref17(data);
|
|
507
|
+
const suberr44 = ref17.errors;
|
|
508
|
+
validate.errors = err30;
|
|
509
|
+
if (!res30) {
|
|
457
510
|
if (validate.errors === null)
|
|
458
511
|
validate.errors = [];
|
|
459
|
-
validate.errors.push(...
|
|
512
|
+
validate.errors.push(...suberr44.map(e => errorMerge(e, "#/anyOf/0/$ref", "#")));
|
|
460
513
|
errorCount++;
|
|
461
514
|
}
|
|
462
515
|
return errorCount === 0;
|
|
463
516
|
})();
|
|
464
|
-
if (!
|
|
465
|
-
const
|
|
517
|
+
if (!sub28) {
|
|
518
|
+
const sub29 = (() => {
|
|
466
519
|
let errorCount = 0;
|
|
467
520
|
if (!Array.isArray(data)) {
|
|
468
|
-
if (
|
|
469
|
-
|
|
470
|
-
|
|
521
|
+
if (suberr43 === null)
|
|
522
|
+
suberr43 = [];
|
|
523
|
+
suberr43.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
471
524
|
errorCount++;
|
|
472
525
|
}
|
|
473
526
|
else {
|
|
474
527
|
if (data.length > 2) {
|
|
475
|
-
if (
|
|
476
|
-
|
|
477
|
-
|
|
528
|
+
if (suberr43 === null)
|
|
529
|
+
suberr43 = [];
|
|
530
|
+
suberr43.push({ keywordLocation: "#/anyOf/1/maxItems", instanceLocation: "#" });
|
|
478
531
|
errorCount++;
|
|
479
532
|
}
|
|
480
533
|
if (data.length < 0) {
|
|
481
|
-
if (
|
|
482
|
-
|
|
483
|
-
|
|
534
|
+
if (suberr43 === null)
|
|
535
|
+
suberr43 = [];
|
|
536
|
+
suberr43.push({ keywordLocation: "#/anyOf/1/minItems", instanceLocation: "#" });
|
|
484
537
|
errorCount++;
|
|
485
538
|
}
|
|
486
|
-
for (let
|
|
487
|
-
if (data[
|
|
488
|
-
const
|
|
489
|
-
const
|
|
490
|
-
const
|
|
491
|
-
validate.errors =
|
|
492
|
-
if (!
|
|
539
|
+
for (let v = 0; v < data.length; v++) {
|
|
540
|
+
if (data[v] !== undefined && hasOwn(data, v)) {
|
|
541
|
+
const err31 = validate.errors;
|
|
542
|
+
const res31 = ref17(data[v]);
|
|
543
|
+
const suberr45 = ref17.errors;
|
|
544
|
+
validate.errors = err31;
|
|
545
|
+
if (!res31) {
|
|
493
546
|
if (validate.errors === null)
|
|
494
547
|
validate.errors = [];
|
|
495
|
-
validate.errors.push(...
|
|
548
|
+
validate.errors.push(...suberr45.map(e => errorMerge(e, "#/anyOf/1/items/$ref", "#/" + v)));
|
|
496
549
|
errorCount++;
|
|
497
550
|
}
|
|
498
551
|
}
|
|
@@ -500,12 +553,12 @@ const validate = (function () {
|
|
|
500
553
|
}
|
|
501
554
|
return errorCount === 0;
|
|
502
555
|
})();
|
|
503
|
-
if (!
|
|
556
|
+
if (!sub29) {
|
|
504
557
|
if (validate.errors === null)
|
|
505
558
|
validate.errors = [];
|
|
506
559
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
507
|
-
if (
|
|
508
|
-
validate.errors.push(...
|
|
560
|
+
if (suberr43)
|
|
561
|
+
validate.errors.push(...suberr43);
|
|
509
562
|
errorCount++;
|
|
510
563
|
}
|
|
511
564
|
}
|
|
@@ -935,9 +988,151 @@ const validate = (function () {
|
|
|
935
988
|
}
|
|
936
989
|
}
|
|
937
990
|
}
|
|
991
|
+
if (data.animation !== undefined && hasOwn(data, "animation")) {
|
|
992
|
+
let suberr19 = null;
|
|
993
|
+
const sub12 = (() => {
|
|
994
|
+
let errorCount = 0;
|
|
995
|
+
if (!(typeof data.animation === "boolean")) {
|
|
996
|
+
if (suberr19 === null)
|
|
997
|
+
suberr19 = [];
|
|
998
|
+
suberr19.push({ keywordLocation: "#/properties/animation/anyOf/0/type", instanceLocation: "#/animation" });
|
|
999
|
+
errorCount++;
|
|
1000
|
+
}
|
|
1001
|
+
return errorCount === 0;
|
|
1002
|
+
})();
|
|
1003
|
+
if (!sub12) {
|
|
1004
|
+
const sub13 = (() => {
|
|
1005
|
+
let errorCount = 0;
|
|
1006
|
+
const err13 = validate.errors;
|
|
1007
|
+
const res13 = ref8(data.animation);
|
|
1008
|
+
const suberr20 = ref8.errors;
|
|
1009
|
+
validate.errors = err13;
|
|
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")));
|
|
1014
|
+
errorCount++;
|
|
1015
|
+
}
|
|
1016
|
+
return errorCount === 0;
|
|
1017
|
+
})();
|
|
1018
|
+
if (!sub13) {
|
|
1019
|
+
const sub14 = (() => {
|
|
1020
|
+
let errorCount = 0;
|
|
1021
|
+
if (!Array.isArray(data.animation)) {
|
|
1022
|
+
if (suberr19 === null)
|
|
1023
|
+
suberr19 = [];
|
|
1024
|
+
suberr19.push({ keywordLocation: "#/properties/animation/anyOf/2/type", instanceLocation: "#/animation" });
|
|
1025
|
+
errorCount++;
|
|
1026
|
+
}
|
|
1027
|
+
else {
|
|
1028
|
+
if (data.animation.length > 32) {
|
|
1029
|
+
if (suberr19 === null)
|
|
1030
|
+
suberr19 = [];
|
|
1031
|
+
suberr19.push({ keywordLocation: "#/properties/animation/anyOf/2/maxItems", instanceLocation: "#/animation" });
|
|
1032
|
+
errorCount++;
|
|
1033
|
+
}
|
|
1034
|
+
if (data.animation.length < 0) {
|
|
1035
|
+
if (suberr19 === null)
|
|
1036
|
+
suberr19 = [];
|
|
1037
|
+
suberr19.push({ keywordLocation: "#/properties/animation/anyOf/2/minItems", instanceLocation: "#/animation" });
|
|
1038
|
+
errorCount++;
|
|
1039
|
+
}
|
|
1040
|
+
for (let o = 0; o < data.animation.length; o++) {
|
|
1041
|
+
if (data.animation[o] !== undefined && hasOwn(data.animation, o)) {
|
|
1042
|
+
const err14 = validate.errors;
|
|
1043
|
+
const res14 = ref8(data.animation[o]);
|
|
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
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
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
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
if (data.animationSpeed !== undefined && hasOwn(data, "animationSpeed")) {
|
|
1069
|
+
let suberr22 = null;
|
|
1070
|
+
const sub15 = (() => {
|
|
1071
|
+
let errorCount = 0;
|
|
1072
|
+
const err15 = validate.errors;
|
|
1073
|
+
const res15 = ref9(data.animationSpeed);
|
|
1074
|
+
const suberr23 = ref9.errors;
|
|
1075
|
+
validate.errors = err15;
|
|
1076
|
+
if (!res15) {
|
|
1077
|
+
if (validate.errors === null)
|
|
1078
|
+
validate.errors = [];
|
|
1079
|
+
validate.errors.push(...suberr23.map(e => errorMerge(e, "#/properties/animationSpeed/anyOf/0/$ref", "#/animationSpeed")));
|
|
1080
|
+
errorCount++;
|
|
1081
|
+
}
|
|
1082
|
+
return errorCount === 0;
|
|
1083
|
+
})();
|
|
1084
|
+
if (!sub15) {
|
|
1085
|
+
const sub16 = (() => {
|
|
1086
|
+
let errorCount = 0;
|
|
1087
|
+
if (!Array.isArray(data.animationSpeed)) {
|
|
1088
|
+
if (suberr22 === null)
|
|
1089
|
+
suberr22 = [];
|
|
1090
|
+
suberr22.push({ keywordLocation: "#/properties/animationSpeed/anyOf/1/type", instanceLocation: "#/animationSpeed" });
|
|
1091
|
+
errorCount++;
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
if (data.animationSpeed.length > 2) {
|
|
1095
|
+
if (suberr22 === null)
|
|
1096
|
+
suberr22 = [];
|
|
1097
|
+
suberr22.push({ keywordLocation: "#/properties/animationSpeed/anyOf/1/maxItems", instanceLocation: "#/animationSpeed" });
|
|
1098
|
+
errorCount++;
|
|
1099
|
+
}
|
|
1100
|
+
if (data.animationSpeed.length < 0) {
|
|
1101
|
+
if (suberr22 === null)
|
|
1102
|
+
suberr22 = [];
|
|
1103
|
+
suberr22.push({ keywordLocation: "#/properties/animationSpeed/anyOf/1/minItems", instanceLocation: "#/animationSpeed" });
|
|
1104
|
+
errorCount++;
|
|
1105
|
+
}
|
|
1106
|
+
for (let p = 0; p < data.animationSpeed.length; p++) {
|
|
1107
|
+
if (data.animationSpeed[p] !== undefined && hasOwn(data.animationSpeed, p)) {
|
|
1108
|
+
const err16 = validate.errors;
|
|
1109
|
+
const res16 = ref9(data.animationSpeed[p]);
|
|
1110
|
+
const suberr24 = ref9.errors;
|
|
1111
|
+
validate.errors = err16;
|
|
1112
|
+
if (!res16) {
|
|
1113
|
+
if (validate.errors === null)
|
|
1114
|
+
validate.errors = [];
|
|
1115
|
+
validate.errors.push(...suberr24.map(e => errorMerge(e, "#/properties/animationSpeed/anyOf/1/items/$ref", "#/animationSpeed/" + p)));
|
|
1116
|
+
errorCount++;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
return errorCount === 0;
|
|
1122
|
+
})();
|
|
1123
|
+
if (!sub16) {
|
|
1124
|
+
if (validate.errors === null)
|
|
1125
|
+
validate.errors = [];
|
|
1126
|
+
validate.errors.push({ keywordLocation: "#/properties/animationSpeed/anyOf", instanceLocation: "#/animationSpeed" });
|
|
1127
|
+
if (suberr22)
|
|
1128
|
+
validate.errors.push(...suberr22);
|
|
1129
|
+
errorCount++;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
938
1133
|
if (errorCount === prev0) {
|
|
939
1134
|
for (const key1 of Object.keys(data)) {
|
|
940
|
-
if (
|
|
1135
|
+
if (pattern3.test(key1)) {
|
|
941
1136
|
if (!(typeof data[key1] === "number")) {
|
|
942
1137
|
if (validate.errors === null)
|
|
943
1138
|
validate.errors = [];
|
|
@@ -959,54 +1154,54 @@ const validate = (function () {
|
|
|
959
1154
|
}
|
|
960
1155
|
}
|
|
961
1156
|
}
|
|
962
|
-
if (
|
|
963
|
-
let
|
|
964
|
-
const
|
|
1157
|
+
if (pattern4.test(key1)) {
|
|
1158
|
+
let suberr25 = null;
|
|
1159
|
+
const sub17 = (() => {
|
|
965
1160
|
let errorCount = 0;
|
|
966
|
-
const
|
|
967
|
-
const
|
|
968
|
-
const
|
|
969
|
-
validate.errors =
|
|
970
|
-
if (!
|
|
1161
|
+
const err17 = validate.errors;
|
|
1162
|
+
const res17 = ref10(data[key1]);
|
|
1163
|
+
const suberr26 = ref10.errors;
|
|
1164
|
+
validate.errors = err17;
|
|
1165
|
+
if (!res17) {
|
|
971
1166
|
if (validate.errors === null)
|
|
972
1167
|
validate.errors = [];
|
|
973
|
-
validate.errors.push(...
|
|
1168
|
+
validate.errors.push(...suberr26.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
974
1169
|
errorCount++;
|
|
975
1170
|
}
|
|
976
1171
|
return errorCount === 0;
|
|
977
1172
|
})();
|
|
978
|
-
if (!
|
|
979
|
-
const
|
|
1173
|
+
if (!sub17) {
|
|
1174
|
+
const sub18 = (() => {
|
|
980
1175
|
let errorCount = 0;
|
|
981
1176
|
if (!(Array.isArray(data[key1]))) {
|
|
982
|
-
if (
|
|
983
|
-
|
|
984
|
-
|
|
1177
|
+
if (suberr25 === null)
|
|
1178
|
+
suberr25 = [];
|
|
1179
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
985
1180
|
errorCount++;
|
|
986
1181
|
}
|
|
987
1182
|
else {
|
|
988
1183
|
if (data[key1].length > 128) {
|
|
989
|
-
if (
|
|
990
|
-
|
|
991
|
-
|
|
1184
|
+
if (suberr25 === null)
|
|
1185
|
+
suberr25 = [];
|
|
1186
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
992
1187
|
errorCount++;
|
|
993
1188
|
}
|
|
994
1189
|
if (data[key1].length < 0) {
|
|
995
|
-
if (
|
|
996
|
-
|
|
997
|
-
|
|
1190
|
+
if (suberr25 === null)
|
|
1191
|
+
suberr25 = [];
|
|
1192
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
998
1193
|
errorCount++;
|
|
999
1194
|
}
|
|
1000
|
-
for (let
|
|
1001
|
-
if (data[key1][
|
|
1002
|
-
const
|
|
1003
|
-
const
|
|
1004
|
-
const
|
|
1005
|
-
validate.errors =
|
|
1006
|
-
if (!
|
|
1195
|
+
for (let q = 0; q < data[key1].length; q++) {
|
|
1196
|
+
if (data[key1][q] !== undefined && hasOwn(data[key1], q)) {
|
|
1197
|
+
const err18 = validate.errors;
|
|
1198
|
+
const res18 = ref10(data[key1][q]);
|
|
1199
|
+
const suberr27 = ref10.errors;
|
|
1200
|
+
validate.errors = err18;
|
|
1201
|
+
if (!res18) {
|
|
1007
1202
|
if (validate.errors === null)
|
|
1008
1203
|
validate.errors = [];
|
|
1009
|
-
validate.errors.push(...
|
|
1204
|
+
validate.errors.push(...suberr27.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + q)));
|
|
1010
1205
|
errorCount++;
|
|
1011
1206
|
}
|
|
1012
1207
|
}
|
|
@@ -1014,52 +1209,52 @@ const validate = (function () {
|
|
|
1014
1209
|
}
|
|
1015
1210
|
return errorCount === 0;
|
|
1016
1211
|
})();
|
|
1017
|
-
if (!
|
|
1018
|
-
const
|
|
1212
|
+
if (!sub18) {
|
|
1213
|
+
const sub19 = (() => {
|
|
1019
1214
|
let errorCount = 0;
|
|
1020
1215
|
if (!(typeof data[key1] === "object" && data[key1] && !Array.isArray(data[key1]))) {
|
|
1021
|
-
if (
|
|
1022
|
-
|
|
1023
|
-
|
|
1216
|
+
if (suberr25 === null)
|
|
1217
|
+
suberr25 = [];
|
|
1218
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1024
1219
|
errorCount++;
|
|
1025
1220
|
}
|
|
1026
1221
|
else {
|
|
1027
1222
|
if (Object.keys(data[key1]).length > 512) {
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1030
|
-
|
|
1223
|
+
if (suberr25 === null)
|
|
1224
|
+
suberr25 = [];
|
|
1225
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/maxProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1031
1226
|
errorCount++;
|
|
1032
1227
|
}
|
|
1033
1228
|
if (Object.keys(data[key1]).length < 1) {
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1036
|
-
|
|
1229
|
+
if (suberr25 === null)
|
|
1230
|
+
suberr25 = [];
|
|
1231
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/minProperties", instanceLocation: "#/" + pointerPart(key1) });
|
|
1037
1232
|
errorCount++;
|
|
1038
1233
|
}
|
|
1039
1234
|
for (const key2 of Object.keys(data[key1])) {
|
|
1040
|
-
const
|
|
1041
|
-
const
|
|
1042
|
-
const
|
|
1043
|
-
validate.errors =
|
|
1044
|
-
if (!
|
|
1235
|
+
const err19 = validate.errors;
|
|
1236
|
+
const res19 = ref10(key2);
|
|
1237
|
+
const suberr28 = ref10.errors;
|
|
1238
|
+
validate.errors = err19;
|
|
1239
|
+
if (!res19) {
|
|
1045
1240
|
if (validate.errors === null)
|
|
1046
1241
|
validate.errors = [];
|
|
1047
|
-
validate.errors.push(...
|
|
1242
|
+
validate.errors.push(...suberr28.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/propertyNames/$ref", "#/" + pointerPart(key1) + "/" + pointerPart(key2))));
|
|
1048
1243
|
errorCount++;
|
|
1049
1244
|
}
|
|
1050
1245
|
}
|
|
1051
1246
|
for (const key3 of Object.keys(data[key1])) {
|
|
1052
1247
|
if (!(typeof data[key1][key3] === "number")) {
|
|
1053
|
-
if (
|
|
1054
|
-
|
|
1055
|
-
|
|
1248
|
+
if (suberr25 === null)
|
|
1249
|
+
suberr25 = [];
|
|
1250
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/type", instanceLocation: "#/" + pointerPart(key1) + "/" + pointerPart(key3) });
|
|
1056
1251
|
errorCount++;
|
|
1057
1252
|
}
|
|
1058
1253
|
else {
|
|
1059
1254
|
if (!(0 <= data[key1][key3])) {
|
|
1060
|
-
if (
|
|
1061
|
-
|
|
1062
|
-
|
|
1255
|
+
if (suberr25 === null)
|
|
1256
|
+
suberr25 = [];
|
|
1257
|
+
suberr25.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/minimum", instanceLocation: "#/" + pointerPart(key1) + "/" + pointerPart(key3) });
|
|
1063
1258
|
errorCount++;
|
|
1064
1259
|
}
|
|
1065
1260
|
}
|
|
@@ -1067,65 +1262,65 @@ const validate = (function () {
|
|
|
1067
1262
|
}
|
|
1068
1263
|
return errorCount === 0;
|
|
1069
1264
|
})();
|
|
1070
|
-
if (!
|
|
1265
|
+
if (!sub19) {
|
|
1071
1266
|
if (validate.errors === null)
|
|
1072
1267
|
validate.errors = [];
|
|
1073
1268
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1074
|
-
if (
|
|
1075
|
-
validate.errors.push(...
|
|
1269
|
+
if (suberr25)
|
|
1270
|
+
validate.errors.push(...suberr25);
|
|
1076
1271
|
errorCount++;
|
|
1077
1272
|
}
|
|
1078
1273
|
}
|
|
1079
1274
|
}
|
|
1080
1275
|
}
|
|
1081
1276
|
if (pattern5.test(key1)) {
|
|
1082
|
-
let
|
|
1083
|
-
const
|
|
1277
|
+
let suberr29 = null;
|
|
1278
|
+
const sub20 = (() => {
|
|
1084
1279
|
let errorCount = 0;
|
|
1085
|
-
const
|
|
1086
|
-
const
|
|
1087
|
-
const
|
|
1088
|
-
validate.errors =
|
|
1089
|
-
if (!
|
|
1280
|
+
const err20 = validate.errors;
|
|
1281
|
+
const res20 = ref11(data[key1]);
|
|
1282
|
+
const suberr30 = ref11.errors;
|
|
1283
|
+
validate.errors = err20;
|
|
1284
|
+
if (!res20) {
|
|
1090
1285
|
if (validate.errors === null)
|
|
1091
1286
|
validate.errors = [];
|
|
1092
|
-
validate.errors.push(...
|
|
1287
|
+
validate.errors.push(...suberr30.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1093
1288
|
errorCount++;
|
|
1094
1289
|
}
|
|
1095
1290
|
return errorCount === 0;
|
|
1096
1291
|
})();
|
|
1097
|
-
if (!
|
|
1098
|
-
const
|
|
1292
|
+
if (!sub20) {
|
|
1293
|
+
const sub21 = (() => {
|
|
1099
1294
|
let errorCount = 0;
|
|
1100
1295
|
if (!(Array.isArray(data[key1]))) {
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1103
|
-
|
|
1296
|
+
if (suberr29 === null)
|
|
1297
|
+
suberr29 = [];
|
|
1298
|
+
suberr29.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1104
1299
|
errorCount++;
|
|
1105
1300
|
}
|
|
1106
1301
|
else {
|
|
1107
1302
|
if (data[key1].length > 128) {
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1110
|
-
|
|
1303
|
+
if (suberr29 === null)
|
|
1304
|
+
suberr29 = [];
|
|
1305
|
+
suberr29.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1111
1306
|
errorCount++;
|
|
1112
1307
|
}
|
|
1113
1308
|
if (data[key1].length < 0) {
|
|
1114
|
-
if (
|
|
1115
|
-
|
|
1116
|
-
|
|
1309
|
+
if (suberr29 === null)
|
|
1310
|
+
suberr29 = [];
|
|
1311
|
+
suberr29.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1117
1312
|
errorCount++;
|
|
1118
1313
|
}
|
|
1119
|
-
for (let
|
|
1120
|
-
if (data[key1][
|
|
1121
|
-
const
|
|
1122
|
-
const
|
|
1123
|
-
const
|
|
1124
|
-
validate.errors =
|
|
1125
|
-
if (!
|
|
1314
|
+
for (let r = 0; r < data[key1].length; r++) {
|
|
1315
|
+
if (data[key1][r] !== undefined && hasOwn(data[key1], r)) {
|
|
1316
|
+
const err21 = validate.errors;
|
|
1317
|
+
const res21 = ref11(data[key1][r]);
|
|
1318
|
+
const suberr31 = ref11.errors;
|
|
1319
|
+
validate.errors = err21;
|
|
1320
|
+
if (!res21) {
|
|
1126
1321
|
if (validate.errors === null)
|
|
1127
1322
|
validate.errors = [];
|
|
1128
|
-
validate.errors.push(...
|
|
1323
|
+
validate.errors.push(...suberr31.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + r)));
|
|
1129
1324
|
errorCount++;
|
|
1130
1325
|
}
|
|
1131
1326
|
}
|
|
@@ -1133,64 +1328,64 @@ const validate = (function () {
|
|
|
1133
1328
|
}
|
|
1134
1329
|
return errorCount === 0;
|
|
1135
1330
|
})();
|
|
1136
|
-
if (!
|
|
1331
|
+
if (!sub21) {
|
|
1137
1332
|
if (validate.errors === null)
|
|
1138
1333
|
validate.errors = [];
|
|
1139
1334
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1140
|
-
if (
|
|
1141
|
-
validate.errors.push(...
|
|
1335
|
+
if (suberr29)
|
|
1336
|
+
validate.errors.push(...suberr29);
|
|
1142
1337
|
errorCount++;
|
|
1143
1338
|
}
|
|
1144
1339
|
}
|
|
1145
1340
|
}
|
|
1146
1341
|
if (pattern7.test(key1)) {
|
|
1147
|
-
let
|
|
1148
|
-
const
|
|
1342
|
+
let suberr32 = null;
|
|
1343
|
+
const sub22 = (() => {
|
|
1149
1344
|
let errorCount = 0;
|
|
1150
|
-
const
|
|
1151
|
-
const
|
|
1152
|
-
const
|
|
1153
|
-
validate.errors =
|
|
1154
|
-
if (!
|
|
1345
|
+
const err22 = validate.errors;
|
|
1346
|
+
const res22 = ref12(data[key1]);
|
|
1347
|
+
const suberr33 = ref12.errors;
|
|
1348
|
+
validate.errors = err22;
|
|
1349
|
+
if (!res22) {
|
|
1155
1350
|
if (validate.errors === null)
|
|
1156
1351
|
validate.errors = [];
|
|
1157
|
-
validate.errors.push(...
|
|
1352
|
+
validate.errors.push(...suberr33.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1158
1353
|
errorCount++;
|
|
1159
1354
|
}
|
|
1160
1355
|
return errorCount === 0;
|
|
1161
1356
|
})();
|
|
1162
|
-
if (!
|
|
1163
|
-
const
|
|
1357
|
+
if (!sub22) {
|
|
1358
|
+
const sub23 = (() => {
|
|
1164
1359
|
let errorCount = 0;
|
|
1165
1360
|
if (!(Array.isArray(data[key1]))) {
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
|
|
1361
|
+
if (suberr32 === null)
|
|
1362
|
+
suberr32 = [];
|
|
1363
|
+
suberr32.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1169
1364
|
errorCount++;
|
|
1170
1365
|
}
|
|
1171
1366
|
else {
|
|
1172
1367
|
if (data[key1].length > 128) {
|
|
1173
|
-
if (
|
|
1174
|
-
|
|
1175
|
-
|
|
1368
|
+
if (suberr32 === null)
|
|
1369
|
+
suberr32 = [];
|
|
1370
|
+
suberr32.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1176
1371
|
errorCount++;
|
|
1177
1372
|
}
|
|
1178
1373
|
if (data[key1].length < 0) {
|
|
1179
|
-
if (
|
|
1180
|
-
|
|
1181
|
-
|
|
1374
|
+
if (suberr32 === null)
|
|
1375
|
+
suberr32 = [];
|
|
1376
|
+
suberr32.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1182
1377
|
errorCount++;
|
|
1183
1378
|
}
|
|
1184
|
-
for (let
|
|
1185
|
-
if (data[key1][
|
|
1186
|
-
const
|
|
1187
|
-
const
|
|
1188
|
-
const
|
|
1189
|
-
validate.errors =
|
|
1190
|
-
if (!
|
|
1379
|
+
for (let s = 0; s < data[key1].length; s++) {
|
|
1380
|
+
if (data[key1][s] !== undefined && hasOwn(data[key1], s)) {
|
|
1381
|
+
const err23 = validate.errors;
|
|
1382
|
+
const res23 = ref12(data[key1][s]);
|
|
1383
|
+
const suberr34 = ref12.errors;
|
|
1384
|
+
validate.errors = err23;
|
|
1385
|
+
if (!res23) {
|
|
1191
1386
|
if (validate.errors === null)
|
|
1192
1387
|
validate.errors = [];
|
|
1193
|
-
validate.errors.push(...
|
|
1388
|
+
validate.errors.push(...suberr34.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + s)));
|
|
1194
1389
|
errorCount++;
|
|
1195
1390
|
}
|
|
1196
1391
|
}
|
|
@@ -1198,64 +1393,64 @@ const validate = (function () {
|
|
|
1198
1393
|
}
|
|
1199
1394
|
return errorCount === 0;
|
|
1200
1395
|
})();
|
|
1201
|
-
if (!
|
|
1396
|
+
if (!sub23) {
|
|
1202
1397
|
if (validate.errors === null)
|
|
1203
1398
|
validate.errors = [];
|
|
1204
1399
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1205
|
-
if (
|
|
1206
|
-
validate.errors.push(...
|
|
1400
|
+
if (suberr32)
|
|
1401
|
+
validate.errors.push(...suberr32);
|
|
1207
1402
|
errorCount++;
|
|
1208
1403
|
}
|
|
1209
1404
|
}
|
|
1210
1405
|
}
|
|
1211
1406
|
if (pattern8.test(key1)) {
|
|
1212
|
-
let
|
|
1213
|
-
const
|
|
1407
|
+
let suberr35 = null;
|
|
1408
|
+
const sub24 = (() => {
|
|
1214
1409
|
let errorCount = 0;
|
|
1215
|
-
const
|
|
1216
|
-
const
|
|
1217
|
-
const
|
|
1218
|
-
validate.errors =
|
|
1219
|
-
if (!
|
|
1410
|
+
const err24 = validate.errors;
|
|
1411
|
+
const res24 = ref13(data[key1]);
|
|
1412
|
+
const suberr36 = ref13.errors;
|
|
1413
|
+
validate.errors = err24;
|
|
1414
|
+
if (!res24) {
|
|
1220
1415
|
if (validate.errors === null)
|
|
1221
1416
|
validate.errors = [];
|
|
1222
|
-
validate.errors.push(...
|
|
1417
|
+
validate.errors.push(...suberr36.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1223
1418
|
errorCount++;
|
|
1224
1419
|
}
|
|
1225
1420
|
return errorCount === 0;
|
|
1226
1421
|
})();
|
|
1227
|
-
if (!
|
|
1228
|
-
const
|
|
1422
|
+
if (!sub24) {
|
|
1423
|
+
const sub25 = (() => {
|
|
1229
1424
|
let errorCount = 0;
|
|
1230
1425
|
if (!(Array.isArray(data[key1]))) {
|
|
1231
|
-
if (
|
|
1232
|
-
|
|
1233
|
-
|
|
1426
|
+
if (suberr35 === null)
|
|
1427
|
+
suberr35 = [];
|
|
1428
|
+
suberr35.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/type", instanceLocation: "#/" + pointerPart(key1) });
|
|
1234
1429
|
errorCount++;
|
|
1235
1430
|
}
|
|
1236
1431
|
else {
|
|
1237
1432
|
if (data[key1].length > 2) {
|
|
1238
|
-
if (
|
|
1239
|
-
|
|
1240
|
-
|
|
1433
|
+
if (suberr35 === null)
|
|
1434
|
+
suberr35 = [];
|
|
1435
|
+
suberr35.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/maxItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1241
1436
|
errorCount++;
|
|
1242
1437
|
}
|
|
1243
1438
|
if (data[key1].length < 0) {
|
|
1244
|
-
if (
|
|
1245
|
-
|
|
1246
|
-
|
|
1439
|
+
if (suberr35 === null)
|
|
1440
|
+
suberr35 = [];
|
|
1441
|
+
suberr35.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/minItems", instanceLocation: "#/" + pointerPart(key1) });
|
|
1247
1442
|
errorCount++;
|
|
1248
1443
|
}
|
|
1249
|
-
for (let
|
|
1250
|
-
if (data[key1][
|
|
1251
|
-
const
|
|
1252
|
-
const
|
|
1253
|
-
const
|
|
1254
|
-
validate.errors =
|
|
1255
|
-
if (!
|
|
1444
|
+
for (let t = 0; t < data[key1].length; t++) {
|
|
1445
|
+
if (data[key1][t] !== undefined && hasOwn(data[key1], t)) {
|
|
1446
|
+
const err25 = validate.errors;
|
|
1447
|
+
const res25 = ref13(data[key1][t]);
|
|
1448
|
+
const suberr37 = ref13.errors;
|
|
1449
|
+
validate.errors = err25;
|
|
1450
|
+
if (!res25) {
|
|
1256
1451
|
if (validate.errors === null)
|
|
1257
1452
|
validate.errors = [];
|
|
1258
|
-
validate.errors.push(...
|
|
1453
|
+
validate.errors.push(...suberr37.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/items/$ref", "#/" + pointerPart(key1) + "/" + t)));
|
|
1259
1454
|
errorCount++;
|
|
1260
1455
|
}
|
|
1261
1456
|
}
|
|
@@ -1263,25 +1458,25 @@ const validate = (function () {
|
|
|
1263
1458
|
}
|
|
1264
1459
|
return errorCount === 0;
|
|
1265
1460
|
})();
|
|
1266
|
-
if (!
|
|
1461
|
+
if (!sub25) {
|
|
1267
1462
|
if (validate.errors === null)
|
|
1268
1463
|
validate.errors = [];
|
|
1269
1464
|
validate.errors.push({ keywordLocation: "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf", instanceLocation: "#/" + pointerPart(key1) });
|
|
1270
|
-
if (
|
|
1271
|
-
validate.errors.push(...
|
|
1465
|
+
if (suberr35)
|
|
1466
|
+
validate.errors.push(...suberr35);
|
|
1272
1467
|
errorCount++;
|
|
1273
1468
|
}
|
|
1274
1469
|
}
|
|
1275
1470
|
}
|
|
1276
1471
|
if (pattern9.test(key1)) {
|
|
1277
|
-
const
|
|
1278
|
-
const
|
|
1279
|
-
const
|
|
1280
|
-
validate.errors =
|
|
1281
|
-
if (!
|
|
1472
|
+
const err28 = validate.errors;
|
|
1473
|
+
const res28 = ref14(data[key1]);
|
|
1474
|
+
const suberr41 = ref14.errors;
|
|
1475
|
+
validate.errors = err28;
|
|
1476
|
+
if (!res28) {
|
|
1282
1477
|
if (validate.errors === null)
|
|
1283
1478
|
validate.errors = [];
|
|
1284
|
-
validate.errors.push(...
|
|
1479
|
+
validate.errors.push(...suberr41.map(e => errorMerge(e, "#/patternProperties/^[a-z][a-zA-Z0-9]*ColorAngle$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1285
1480
|
errorCount++;
|
|
1286
1481
|
}
|
|
1287
1482
|
}
|
|
@@ -1302,44 +1497,44 @@ const validate = (function () {
|
|
|
1302
1497
|
}
|
|
1303
1498
|
}
|
|
1304
1499
|
if ((key1 === "rotate")) {
|
|
1305
|
-
const
|
|
1306
|
-
const
|
|
1307
|
-
const
|
|
1308
|
-
validate.errors =
|
|
1309
|
-
if (!
|
|
1500
|
+
const err29 = validate.errors;
|
|
1501
|
+
const res29 = ref14(data[key1]);
|
|
1502
|
+
const suberr42 = ref14.errors;
|
|
1503
|
+
validate.errors = err29;
|
|
1504
|
+
if (!res29) {
|
|
1310
1505
|
if (validate.errors === null)
|
|
1311
1506
|
validate.errors = [];
|
|
1312
|
-
validate.errors.push(...
|
|
1507
|
+
validate.errors.push(...suberr42.map(e => errorMerge(e, "#/patternProperties/^rotate$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1313
1508
|
errorCount++;
|
|
1314
1509
|
}
|
|
1315
1510
|
}
|
|
1316
1511
|
if ((key1 === "translateY")) {
|
|
1317
|
-
const
|
|
1318
|
-
const
|
|
1319
|
-
const
|
|
1320
|
-
validate.errors =
|
|
1321
|
-
if (!
|
|
1512
|
+
const err32 = validate.errors;
|
|
1513
|
+
const res32 = ref16(data[key1]);
|
|
1514
|
+
const suberr46 = ref16.errors;
|
|
1515
|
+
validate.errors = err32;
|
|
1516
|
+
if (!res32) {
|
|
1322
1517
|
if (validate.errors === null)
|
|
1323
1518
|
validate.errors = [];
|
|
1324
|
-
validate.errors.push(...
|
|
1519
|
+
validate.errors.push(...suberr46.map(e => errorMerge(e, "#/patternProperties/^translateY$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1325
1520
|
errorCount++;
|
|
1326
1521
|
}
|
|
1327
1522
|
}
|
|
1328
1523
|
if ((key1 === "translateX")) {
|
|
1329
|
-
const
|
|
1330
|
-
const
|
|
1331
|
-
const
|
|
1332
|
-
validate.errors =
|
|
1333
|
-
if (!
|
|
1524
|
+
const err33 = validate.errors;
|
|
1525
|
+
const res33 = ref16(data[key1]);
|
|
1526
|
+
const suberr47 = ref16.errors;
|
|
1527
|
+
validate.errors = err33;
|
|
1528
|
+
if (!res33) {
|
|
1334
1529
|
if (validate.errors === null)
|
|
1335
1530
|
validate.errors = [];
|
|
1336
|
-
validate.errors.push(...
|
|
1531
|
+
validate.errors.push(...suberr47.map(e => errorMerge(e, "#/patternProperties/^translateX$/allOf/0/$ref", "#/" + pointerPart(key1))));
|
|
1337
1532
|
errorCount++;
|
|
1338
1533
|
}
|
|
1339
1534
|
}
|
|
1340
1535
|
}
|
|
1341
1536
|
for (const key4 of Object.keys(data)) {
|
|
1342
|
-
if (key4 !== "seed" && key4 !== "size" && key4 !== "idRandomization" && key4 !== "title" && key4 !== "flip" && key4 !== "fontFamily" && key4 !== "fontWeight" && key4 !== "scale" && key4 !== "borderRadius" && key4 !== "tags" && !
|
|
1537
|
+
if (key4 !== "seed" && key4 !== "size" && key4 !== "idRandomization" && key4 !== "title" && key4 !== "flip" && key4 !== "fontFamily" && key4 !== "fontWeight" && key4 !== "scale" && key4 !== "borderRadius" && key4 !== "tags" && key4 !== "animation" && key4 !== "animationSpeed" && !pattern3.test(key4) && !pattern4.test(key4) && !pattern5.test(key4) && !pattern7.test(key4) && !pattern8.test(key4) && !pattern9.test(key4) && !pattern10.test(key4) && !(key4 === "rotate") && !(key4 === "translateY") && !(key4 === "translateX")) {
|
|
1343
1538
|
if (validate.errors === null)
|
|
1344
1539
|
validate.errors = [];
|
|
1345
1540
|
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key4) });
|