@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
|
@@ -2570,6 +2570,689 @@ const validate = (function () {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
return errorCount === 0;
|
|
2572
2572
|
};
|
|
2573
|
+
const ref16 = function validate(data) {
|
|
2574
|
+
validate.errors = null;
|
|
2575
|
+
let errorCount = 0;
|
|
2576
|
+
let suberr170 = null;
|
|
2577
|
+
const sub27 = (() => {
|
|
2578
|
+
let errorCount = 0;
|
|
2579
|
+
if (!(data === "linear" || data === "ease" || data === "easeIn" || data === "easeOut" || data === "easeInOut" || data === "hold")) {
|
|
2580
|
+
if (suberr170 === null)
|
|
2581
|
+
suberr170 = [];
|
|
2582
|
+
suberr170.push({ keywordLocation: "#/anyOf/0/enum", instanceLocation: "#" });
|
|
2583
|
+
errorCount++;
|
|
2584
|
+
}
|
|
2585
|
+
return errorCount === 0;
|
|
2586
|
+
})();
|
|
2587
|
+
if (!sub27) {
|
|
2588
|
+
const sub28 = (() => {
|
|
2589
|
+
let errorCount = 0;
|
|
2590
|
+
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
2591
|
+
if (suberr170 === null)
|
|
2592
|
+
suberr170 = [];
|
|
2593
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/type", instanceLocation: "#" });
|
|
2594
|
+
errorCount++;
|
|
2595
|
+
}
|
|
2596
|
+
else {
|
|
2597
|
+
if (!(data.x1 !== undefined && hasOwn(data, "x1"))) {
|
|
2598
|
+
if (suberr170 === null)
|
|
2599
|
+
suberr170 = [];
|
|
2600
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/x1" });
|
|
2601
|
+
errorCount++;
|
|
2602
|
+
}
|
|
2603
|
+
if (!(data.y1 !== undefined && hasOwn(data, "y1"))) {
|
|
2604
|
+
if (suberr170 === null)
|
|
2605
|
+
suberr170 = [];
|
|
2606
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/y1" });
|
|
2607
|
+
errorCount++;
|
|
2608
|
+
}
|
|
2609
|
+
if (!(data.x2 !== undefined && hasOwn(data, "x2"))) {
|
|
2610
|
+
if (suberr170 === null)
|
|
2611
|
+
suberr170 = [];
|
|
2612
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/x2" });
|
|
2613
|
+
errorCount++;
|
|
2614
|
+
}
|
|
2615
|
+
if (!(data.y2 !== undefined && hasOwn(data, "y2"))) {
|
|
2616
|
+
if (suberr170 === null)
|
|
2617
|
+
suberr170 = [];
|
|
2618
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/required", instanceLocation: "#/y2" });
|
|
2619
|
+
errorCount++;
|
|
2620
|
+
}
|
|
2621
|
+
if (data.x1 !== undefined && hasOwn(data, "x1")) {
|
|
2622
|
+
if (!(typeof data.x1 === "number")) {
|
|
2623
|
+
if (suberr170 === null)
|
|
2624
|
+
suberr170 = [];
|
|
2625
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/type", instanceLocation: "#/x1" });
|
|
2626
|
+
errorCount++;
|
|
2627
|
+
}
|
|
2628
|
+
else {
|
|
2629
|
+
if (!(0 <= data.x1)) {
|
|
2630
|
+
if (suberr170 === null)
|
|
2631
|
+
suberr170 = [];
|
|
2632
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/minimum", instanceLocation: "#/x1" });
|
|
2633
|
+
errorCount++;
|
|
2634
|
+
}
|
|
2635
|
+
if (!(1 >= data.x1)) {
|
|
2636
|
+
if (suberr170 === null)
|
|
2637
|
+
suberr170 = [];
|
|
2638
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x1/maximum", instanceLocation: "#/x1" });
|
|
2639
|
+
errorCount++;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
if (data.y1 !== undefined && hasOwn(data, "y1")) {
|
|
2644
|
+
if (!(typeof data.y1 === "number")) {
|
|
2645
|
+
if (suberr170 === null)
|
|
2646
|
+
suberr170 = [];
|
|
2647
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/type", instanceLocation: "#/y1" });
|
|
2648
|
+
errorCount++;
|
|
2649
|
+
}
|
|
2650
|
+
else {
|
|
2651
|
+
if (!(-4 <= data.y1)) {
|
|
2652
|
+
if (suberr170 === null)
|
|
2653
|
+
suberr170 = [];
|
|
2654
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/minimum", instanceLocation: "#/y1" });
|
|
2655
|
+
errorCount++;
|
|
2656
|
+
}
|
|
2657
|
+
if (!(4 >= data.y1)) {
|
|
2658
|
+
if (suberr170 === null)
|
|
2659
|
+
suberr170 = [];
|
|
2660
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y1/maximum", instanceLocation: "#/y1" });
|
|
2661
|
+
errorCount++;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
if (data.x2 !== undefined && hasOwn(data, "x2")) {
|
|
2666
|
+
if (!(typeof data.x2 === "number")) {
|
|
2667
|
+
if (suberr170 === null)
|
|
2668
|
+
suberr170 = [];
|
|
2669
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/type", instanceLocation: "#/x2" });
|
|
2670
|
+
errorCount++;
|
|
2671
|
+
}
|
|
2672
|
+
else {
|
|
2673
|
+
if (!(0 <= data.x2)) {
|
|
2674
|
+
if (suberr170 === null)
|
|
2675
|
+
suberr170 = [];
|
|
2676
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/minimum", instanceLocation: "#/x2" });
|
|
2677
|
+
errorCount++;
|
|
2678
|
+
}
|
|
2679
|
+
if (!(1 >= data.x2)) {
|
|
2680
|
+
if (suberr170 === null)
|
|
2681
|
+
suberr170 = [];
|
|
2682
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/x2/maximum", instanceLocation: "#/x2" });
|
|
2683
|
+
errorCount++;
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
if (data.y2 !== undefined && hasOwn(data, "y2")) {
|
|
2688
|
+
if (!(typeof data.y2 === "number")) {
|
|
2689
|
+
if (suberr170 === null)
|
|
2690
|
+
suberr170 = [];
|
|
2691
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/type", instanceLocation: "#/y2" });
|
|
2692
|
+
errorCount++;
|
|
2693
|
+
}
|
|
2694
|
+
else {
|
|
2695
|
+
if (!(-4 <= data.y2)) {
|
|
2696
|
+
if (suberr170 === null)
|
|
2697
|
+
suberr170 = [];
|
|
2698
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/minimum", instanceLocation: "#/y2" });
|
|
2699
|
+
errorCount++;
|
|
2700
|
+
}
|
|
2701
|
+
if (!(4 >= data.y2)) {
|
|
2702
|
+
if (suberr170 === null)
|
|
2703
|
+
suberr170 = [];
|
|
2704
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/properties/y2/maximum", instanceLocation: "#/y2" });
|
|
2705
|
+
errorCount++;
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
for (const key10 of Object.keys(data)) {
|
|
2710
|
+
if (key10 !== "x1" && key10 !== "y1" && key10 !== "x2" && key10 !== "y2") {
|
|
2711
|
+
if (suberr170 === null)
|
|
2712
|
+
suberr170 = [];
|
|
2713
|
+
suberr170.push({ keywordLocation: "#/anyOf/1/additionalProperties", instanceLocation: "#/" + pointerPart(key10) });
|
|
2714
|
+
errorCount++;
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
return errorCount === 0;
|
|
2719
|
+
})();
|
|
2720
|
+
if (!sub28) {
|
|
2721
|
+
if (validate.errors === null)
|
|
2722
|
+
validate.errors = [];
|
|
2723
|
+
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
2724
|
+
if (suberr170)
|
|
2725
|
+
validate.errors.push(...suberr170);
|
|
2726
|
+
errorCount++;
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
return errorCount === 0;
|
|
2730
|
+
};
|
|
2731
|
+
const ref18 = function validate(data) {
|
|
2732
|
+
validate.errors = null;
|
|
2733
|
+
let errorCount = 0;
|
|
2734
|
+
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
2735
|
+
if (validate.errors === null)
|
|
2736
|
+
validate.errors = [];
|
|
2737
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
2738
|
+
errorCount++;
|
|
2739
|
+
}
|
|
2740
|
+
else {
|
|
2741
|
+
if (!(data.at !== undefined && hasOwn(data, "at"))) {
|
|
2742
|
+
if (validate.errors === null)
|
|
2743
|
+
validate.errors = [];
|
|
2744
|
+
validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/at" });
|
|
2745
|
+
errorCount++;
|
|
2746
|
+
}
|
|
2747
|
+
if (!(data.value !== undefined && hasOwn(data, "value"))) {
|
|
2748
|
+
if (validate.errors === null)
|
|
2749
|
+
validate.errors = [];
|
|
2750
|
+
validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/value" });
|
|
2751
|
+
errorCount++;
|
|
2752
|
+
}
|
|
2753
|
+
if (data.at !== undefined && hasOwn(data, "at")) {
|
|
2754
|
+
if (!(typeof data.at === "number")) {
|
|
2755
|
+
if (validate.errors === null)
|
|
2756
|
+
validate.errors = [];
|
|
2757
|
+
validate.errors.push({ keywordLocation: "#/properties/at/type", instanceLocation: "#/at" });
|
|
2758
|
+
errorCount++;
|
|
2759
|
+
}
|
|
2760
|
+
else {
|
|
2761
|
+
if (!(0 <= data.at)) {
|
|
2762
|
+
if (validate.errors === null)
|
|
2763
|
+
validate.errors = [];
|
|
2764
|
+
validate.errors.push({ keywordLocation: "#/properties/at/minimum", instanceLocation: "#/at" });
|
|
2765
|
+
errorCount++;
|
|
2766
|
+
}
|
|
2767
|
+
if (!(100 >= data.at)) {
|
|
2768
|
+
if (validate.errors === null)
|
|
2769
|
+
validate.errors = [];
|
|
2770
|
+
validate.errors.push({ keywordLocation: "#/properties/at/maximum", instanceLocation: "#/at" });
|
|
2771
|
+
errorCount++;
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
if (data.value !== undefined && hasOwn(data, "value")) {
|
|
2776
|
+
if (!(typeof data.value === "number")) {
|
|
2777
|
+
if (validate.errors === null)
|
|
2778
|
+
validate.errors = [];
|
|
2779
|
+
validate.errors.push({ keywordLocation: "#/properties/value/type", instanceLocation: "#/value" });
|
|
2780
|
+
errorCount++;
|
|
2781
|
+
}
|
|
2782
|
+
else {
|
|
2783
|
+
if (!(-36000 <= data.value)) {
|
|
2784
|
+
if (validate.errors === null)
|
|
2785
|
+
validate.errors = [];
|
|
2786
|
+
validate.errors.push({ keywordLocation: "#/properties/value/minimum", instanceLocation: "#/value" });
|
|
2787
|
+
errorCount++;
|
|
2788
|
+
}
|
|
2789
|
+
if (!(36000 >= data.value)) {
|
|
2790
|
+
if (validate.errors === null)
|
|
2791
|
+
validate.errors = [];
|
|
2792
|
+
validate.errors.push({ keywordLocation: "#/properties/value/maximum", instanceLocation: "#/value" });
|
|
2793
|
+
errorCount++;
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
if (data.easing !== undefined && hasOwn(data, "easing")) {
|
|
2798
|
+
const err162 = validate.errors;
|
|
2799
|
+
const res162 = ref16(data.easing);
|
|
2800
|
+
const suberr172 = ref16.errors;
|
|
2801
|
+
validate.errors = err162;
|
|
2802
|
+
if (!res162) {
|
|
2803
|
+
if (validate.errors === null)
|
|
2804
|
+
validate.errors = [];
|
|
2805
|
+
validate.errors.push(...suberr172.map(e => errorMerge(e, "#/properties/easing/$ref", "#/easing")));
|
|
2806
|
+
errorCount++;
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
for (const key12 of Object.keys(data)) {
|
|
2810
|
+
if (key12 !== "at" && key12 !== "value" && key12 !== "easing") {
|
|
2811
|
+
if (validate.errors === null)
|
|
2812
|
+
validate.errors = [];
|
|
2813
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key12) });
|
|
2814
|
+
errorCount++;
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
return errorCount === 0;
|
|
2819
|
+
};
|
|
2820
|
+
const ref17 = function validate(data) {
|
|
2821
|
+
validate.errors = null;
|
|
2822
|
+
let errorCount = 0;
|
|
2823
|
+
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
2824
|
+
if (validate.errors === null)
|
|
2825
|
+
validate.errors = [];
|
|
2826
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
2827
|
+
errorCount++;
|
|
2828
|
+
}
|
|
2829
|
+
else {
|
|
2830
|
+
if (!(data.keyframes !== undefined && hasOwn(data, "keyframes"))) {
|
|
2831
|
+
if (validate.errors === null)
|
|
2832
|
+
validate.errors = [];
|
|
2833
|
+
validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/keyframes" });
|
|
2834
|
+
errorCount++;
|
|
2835
|
+
}
|
|
2836
|
+
if (data.keyframes !== undefined && hasOwn(data, "keyframes")) {
|
|
2837
|
+
if (!Array.isArray(data.keyframes)) {
|
|
2838
|
+
if (validate.errors === null)
|
|
2839
|
+
validate.errors = [];
|
|
2840
|
+
validate.errors.push({ keywordLocation: "#/properties/keyframes/type", instanceLocation: "#/keyframes" });
|
|
2841
|
+
errorCount++;
|
|
2842
|
+
}
|
|
2843
|
+
else {
|
|
2844
|
+
if (data.keyframes.length > 64) {
|
|
2845
|
+
if (validate.errors === null)
|
|
2846
|
+
validate.errors = [];
|
|
2847
|
+
validate.errors.push({ keywordLocation: "#/properties/keyframes/maxItems", instanceLocation: "#/keyframes" });
|
|
2848
|
+
errorCount++;
|
|
2849
|
+
}
|
|
2850
|
+
if (data.keyframes.length < 1) {
|
|
2851
|
+
if (validate.errors === null)
|
|
2852
|
+
validate.errors = [];
|
|
2853
|
+
validate.errors.push({ keywordLocation: "#/properties/keyframes/minItems", instanceLocation: "#/keyframes" });
|
|
2854
|
+
errorCount++;
|
|
2855
|
+
}
|
|
2856
|
+
for (let k = 0; k < data.keyframes.length; k++) {
|
|
2857
|
+
if (data.keyframes[k] !== undefined && hasOwn(data.keyframes, k)) {
|
|
2858
|
+
const err163 = validate.errors;
|
|
2859
|
+
const res163 = ref18(data.keyframes[k]);
|
|
2860
|
+
const suberr173 = ref18.errors;
|
|
2861
|
+
validate.errors = err163;
|
|
2862
|
+
if (!res163) {
|
|
2863
|
+
if (validate.errors === null)
|
|
2864
|
+
validate.errors = [];
|
|
2865
|
+
validate.errors.push(...suberr173.map(e => errorMerge(e, "#/properties/keyframes/items/$ref", "#/keyframes/" + k)));
|
|
2866
|
+
errorCount++;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
for (const key13 of Object.keys(data)) {
|
|
2873
|
+
if (key13 !== "keyframes") {
|
|
2874
|
+
if (validate.errors === null)
|
|
2875
|
+
validate.errors = [];
|
|
2876
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key13) });
|
|
2877
|
+
errorCount++;
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
return errorCount === 0;
|
|
2882
|
+
};
|
|
2883
|
+
const ref15 = function validate(data) {
|
|
2884
|
+
validate.errors = null;
|
|
2885
|
+
let errorCount = 0;
|
|
2886
|
+
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
2887
|
+
if (validate.errors === null)
|
|
2888
|
+
validate.errors = [];
|
|
2889
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
2890
|
+
errorCount++;
|
|
2891
|
+
}
|
|
2892
|
+
else {
|
|
2893
|
+
if (!(data.duration !== undefined && hasOwn(data, "duration"))) {
|
|
2894
|
+
if (validate.errors === null)
|
|
2895
|
+
validate.errors = [];
|
|
2896
|
+
validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/duration" });
|
|
2897
|
+
errorCount++;
|
|
2898
|
+
}
|
|
2899
|
+
if (!(data.tracks !== undefined && hasOwn(data, "tracks"))) {
|
|
2900
|
+
if (validate.errors === null)
|
|
2901
|
+
validate.errors = [];
|
|
2902
|
+
validate.errors.push({ keywordLocation: "#/required", instanceLocation: "#/tracks" });
|
|
2903
|
+
errorCount++;
|
|
2904
|
+
}
|
|
2905
|
+
if (data.name !== undefined && hasOwn(data, "name")) {
|
|
2906
|
+
const err160 = validate.errors;
|
|
2907
|
+
const res160 = ref7(data.name);
|
|
2908
|
+
const suberr168 = ref7.errors;
|
|
2909
|
+
validate.errors = err160;
|
|
2910
|
+
if (!res160) {
|
|
2911
|
+
if (validate.errors === null)
|
|
2912
|
+
validate.errors = [];
|
|
2913
|
+
validate.errors.push(...suberr168.map(e => errorMerge(e, "#/properties/name/allOf/0/$ref", "#/name")));
|
|
2914
|
+
errorCount++;
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
if (data.duration !== undefined && hasOwn(data, "duration")) {
|
|
2918
|
+
if (!(typeof data.duration === "number")) {
|
|
2919
|
+
if (validate.errors === null)
|
|
2920
|
+
validate.errors = [];
|
|
2921
|
+
validate.errors.push({ keywordLocation: "#/properties/duration/type", instanceLocation: "#/duration" });
|
|
2922
|
+
errorCount++;
|
|
2923
|
+
}
|
|
2924
|
+
else {
|
|
2925
|
+
if (!(0 < data.duration)) {
|
|
2926
|
+
if (validate.errors === null)
|
|
2927
|
+
validate.errors = [];
|
|
2928
|
+
validate.errors.push({ keywordLocation: "#/properties/duration/exclusiveMinimum", instanceLocation: "#/duration" });
|
|
2929
|
+
errorCount++;
|
|
2930
|
+
}
|
|
2931
|
+
if (!(3600 >= data.duration)) {
|
|
2932
|
+
if (validate.errors === null)
|
|
2933
|
+
validate.errors = [];
|
|
2934
|
+
validate.errors.push({ keywordLocation: "#/properties/duration/maximum", instanceLocation: "#/duration" });
|
|
2935
|
+
errorCount++;
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
if (data.delay !== undefined && hasOwn(data, "delay")) {
|
|
2940
|
+
if (!(typeof data.delay === "number")) {
|
|
2941
|
+
if (validate.errors === null)
|
|
2942
|
+
validate.errors = [];
|
|
2943
|
+
validate.errors.push({ keywordLocation: "#/properties/delay/type", instanceLocation: "#/delay" });
|
|
2944
|
+
errorCount++;
|
|
2945
|
+
}
|
|
2946
|
+
else {
|
|
2947
|
+
if (!(-3600 <= data.delay)) {
|
|
2948
|
+
if (validate.errors === null)
|
|
2949
|
+
validate.errors = [];
|
|
2950
|
+
validate.errors.push({ keywordLocation: "#/properties/delay/minimum", instanceLocation: "#/delay" });
|
|
2951
|
+
errorCount++;
|
|
2952
|
+
}
|
|
2953
|
+
if (!(3600 >= data.delay)) {
|
|
2954
|
+
if (validate.errors === null)
|
|
2955
|
+
validate.errors = [];
|
|
2956
|
+
validate.errors.push({ keywordLocation: "#/properties/delay/maximum", instanceLocation: "#/delay" });
|
|
2957
|
+
errorCount++;
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
if (data.iterations !== undefined && hasOwn(data, "iterations")) {
|
|
2962
|
+
let suberr169 = null;
|
|
2963
|
+
const sub25 = (() => {
|
|
2964
|
+
let errorCount = 0;
|
|
2965
|
+
if (!(data.iterations === "infinite")) {
|
|
2966
|
+
if (suberr169 === null)
|
|
2967
|
+
suberr169 = [];
|
|
2968
|
+
suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/0/const", instanceLocation: "#/iterations" });
|
|
2969
|
+
errorCount++;
|
|
2970
|
+
}
|
|
2971
|
+
return errorCount === 0;
|
|
2972
|
+
})();
|
|
2973
|
+
if (!sub25) {
|
|
2974
|
+
const sub26 = (() => {
|
|
2975
|
+
let errorCount = 0;
|
|
2976
|
+
if (!(typeof data.iterations === "number")) {
|
|
2977
|
+
if (suberr169 === null)
|
|
2978
|
+
suberr169 = [];
|
|
2979
|
+
suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/type", instanceLocation: "#/iterations" });
|
|
2980
|
+
errorCount++;
|
|
2981
|
+
}
|
|
2982
|
+
else {
|
|
2983
|
+
if (!(0 < data.iterations)) {
|
|
2984
|
+
if (suberr169 === null)
|
|
2985
|
+
suberr169 = [];
|
|
2986
|
+
suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/exclusiveMinimum", instanceLocation: "#/iterations" });
|
|
2987
|
+
errorCount++;
|
|
2988
|
+
}
|
|
2989
|
+
if (!(10000 >= data.iterations)) {
|
|
2990
|
+
if (suberr169 === null)
|
|
2991
|
+
suberr169 = [];
|
|
2992
|
+
suberr169.push({ keywordLocation: "#/properties/iterations/anyOf/1/maximum", instanceLocation: "#/iterations" });
|
|
2993
|
+
errorCount++;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
return errorCount === 0;
|
|
2997
|
+
})();
|
|
2998
|
+
if (!sub26) {
|
|
2999
|
+
if (validate.errors === null)
|
|
3000
|
+
validate.errors = [];
|
|
3001
|
+
validate.errors.push({ keywordLocation: "#/properties/iterations/anyOf", instanceLocation: "#/iterations" });
|
|
3002
|
+
if (suberr169)
|
|
3003
|
+
validate.errors.push(...suberr169);
|
|
3004
|
+
errorCount++;
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
if (data.direction !== undefined && hasOwn(data, "direction")) {
|
|
3009
|
+
if (!(data.direction === "normal" || data.direction === "reverse" || data.direction === "alternate" || data.direction === "alternateReverse")) {
|
|
3010
|
+
if (validate.errors === null)
|
|
3011
|
+
validate.errors = [];
|
|
3012
|
+
validate.errors.push({ keywordLocation: "#/properties/direction/enum", instanceLocation: "#/direction" });
|
|
3013
|
+
errorCount++;
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
if (data.fill !== undefined && hasOwn(data, "fill")) {
|
|
3017
|
+
if (!(data.fill === "none" || data.fill === "forwards")) {
|
|
3018
|
+
if (validate.errors === null)
|
|
3019
|
+
validate.errors = [];
|
|
3020
|
+
validate.errors.push({ keywordLocation: "#/properties/fill/enum", instanceLocation: "#/fill" });
|
|
3021
|
+
errorCount++;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
if (data.easing !== undefined && hasOwn(data, "easing")) {
|
|
3025
|
+
const err161 = validate.errors;
|
|
3026
|
+
const res161 = ref16(data.easing);
|
|
3027
|
+
const suberr171 = ref16.errors;
|
|
3028
|
+
validate.errors = err161;
|
|
3029
|
+
if (!res161) {
|
|
3030
|
+
if (validate.errors === null)
|
|
3031
|
+
validate.errors = [];
|
|
3032
|
+
validate.errors.push(...suberr171.map(e => errorMerge(e, "#/properties/easing/allOf/0/$ref", "#/easing")));
|
|
3033
|
+
errorCount++;
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
if (data.origin !== undefined && hasOwn(data, "origin")) {
|
|
3037
|
+
if (!(typeof data.origin === "object" && data.origin && !Array.isArray(data.origin))) {
|
|
3038
|
+
if (validate.errors === null)
|
|
3039
|
+
validate.errors = [];
|
|
3040
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/type", instanceLocation: "#/origin" });
|
|
3041
|
+
errorCount++;
|
|
3042
|
+
}
|
|
3043
|
+
else {
|
|
3044
|
+
if (!(data.origin.x !== undefined && hasOwn(data.origin, "x"))) {
|
|
3045
|
+
if (validate.errors === null)
|
|
3046
|
+
validate.errors = [];
|
|
3047
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/required", instanceLocation: "#/origin/x" });
|
|
3048
|
+
errorCount++;
|
|
3049
|
+
}
|
|
3050
|
+
if (!(data.origin.y !== undefined && hasOwn(data.origin, "y"))) {
|
|
3051
|
+
if (validate.errors === null)
|
|
3052
|
+
validate.errors = [];
|
|
3053
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/required", instanceLocation: "#/origin/y" });
|
|
3054
|
+
errorCount++;
|
|
3055
|
+
}
|
|
3056
|
+
if (data.origin.x !== undefined && hasOwn(data.origin, "x")) {
|
|
3057
|
+
if (!(typeof data.origin.x === "number")) {
|
|
3058
|
+
if (validate.errors === null)
|
|
3059
|
+
validate.errors = [];
|
|
3060
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/type", instanceLocation: "#/origin/x" });
|
|
3061
|
+
errorCount++;
|
|
3062
|
+
}
|
|
3063
|
+
else {
|
|
3064
|
+
if (!(-1000 <= data.origin.x)) {
|
|
3065
|
+
if (validate.errors === null)
|
|
3066
|
+
validate.errors = [];
|
|
3067
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/minimum", instanceLocation: "#/origin/x" });
|
|
3068
|
+
errorCount++;
|
|
3069
|
+
}
|
|
3070
|
+
if (!(1000 >= data.origin.x)) {
|
|
3071
|
+
if (validate.errors === null)
|
|
3072
|
+
validate.errors = [];
|
|
3073
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/x/maximum", instanceLocation: "#/origin/x" });
|
|
3074
|
+
errorCount++;
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
if (data.origin.y !== undefined && hasOwn(data.origin, "y")) {
|
|
3079
|
+
if (!(typeof data.origin.y === "number")) {
|
|
3080
|
+
if (validate.errors === null)
|
|
3081
|
+
validate.errors = [];
|
|
3082
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/type", instanceLocation: "#/origin/y" });
|
|
3083
|
+
errorCount++;
|
|
3084
|
+
}
|
|
3085
|
+
else {
|
|
3086
|
+
if (!(-1000 <= data.origin.y)) {
|
|
3087
|
+
if (validate.errors === null)
|
|
3088
|
+
validate.errors = [];
|
|
3089
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/minimum", instanceLocation: "#/origin/y" });
|
|
3090
|
+
errorCount++;
|
|
3091
|
+
}
|
|
3092
|
+
if (!(1000 >= data.origin.y)) {
|
|
3093
|
+
if (validate.errors === null)
|
|
3094
|
+
validate.errors = [];
|
|
3095
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/properties/y/maximum", instanceLocation: "#/origin/y" });
|
|
3096
|
+
errorCount++;
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
for (const key11 of Object.keys(data.origin)) {
|
|
3101
|
+
if (key11 !== "x" && key11 !== "y") {
|
|
3102
|
+
if (validate.errors === null)
|
|
3103
|
+
validate.errors = [];
|
|
3104
|
+
validate.errors.push({ keywordLocation: "#/properties/origin/additionalProperties", instanceLocation: "#/origin/" + pointerPart(key11) });
|
|
3105
|
+
errorCount++;
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
if (data.tracks !== undefined && hasOwn(data, "tracks")) {
|
|
3111
|
+
if (!(typeof data.tracks === "object" && data.tracks && !Array.isArray(data.tracks))) {
|
|
3112
|
+
if (validate.errors === null)
|
|
3113
|
+
validate.errors = [];
|
|
3114
|
+
validate.errors.push({ keywordLocation: "#/properties/tracks/type", instanceLocation: "#/tracks" });
|
|
3115
|
+
errorCount++;
|
|
3116
|
+
}
|
|
3117
|
+
else {
|
|
3118
|
+
if (Object.keys(data.tracks).length < 1) {
|
|
3119
|
+
if (validate.errors === null)
|
|
3120
|
+
validate.errors = [];
|
|
3121
|
+
validate.errors.push({ keywordLocation: "#/properties/tracks/minProperties", instanceLocation: "#/tracks" });
|
|
3122
|
+
errorCount++;
|
|
3123
|
+
}
|
|
3124
|
+
if (data.tracks.translateX !== undefined && hasOwn(data.tracks, "translateX")) {
|
|
3125
|
+
const err164 = validate.errors;
|
|
3126
|
+
const res164 = ref17(data.tracks.translateX);
|
|
3127
|
+
const suberr174 = ref17.errors;
|
|
3128
|
+
validate.errors = err164;
|
|
3129
|
+
if (!res164) {
|
|
3130
|
+
if (validate.errors === null)
|
|
3131
|
+
validate.errors = [];
|
|
3132
|
+
validate.errors.push(...suberr174.map(e => errorMerge(e, "#/properties/tracks/properties/translateX/allOf/0/$ref", "#/tracks/translateX")));
|
|
3133
|
+
errorCount++;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
if (data.tracks.translateY !== undefined && hasOwn(data.tracks, "translateY")) {
|
|
3137
|
+
const err165 = validate.errors;
|
|
3138
|
+
const res165 = ref17(data.tracks.translateY);
|
|
3139
|
+
const suberr175 = ref17.errors;
|
|
3140
|
+
validate.errors = err165;
|
|
3141
|
+
if (!res165) {
|
|
3142
|
+
if (validate.errors === null)
|
|
3143
|
+
validate.errors = [];
|
|
3144
|
+
validate.errors.push(...suberr175.map(e => errorMerge(e, "#/properties/tracks/properties/translateY/allOf/0/$ref", "#/tracks/translateY")));
|
|
3145
|
+
errorCount++;
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
if (data.tracks.rotate !== undefined && hasOwn(data.tracks, "rotate")) {
|
|
3149
|
+
const err166 = validate.errors;
|
|
3150
|
+
const res166 = ref17(data.tracks.rotate);
|
|
3151
|
+
const suberr176 = ref17.errors;
|
|
3152
|
+
validate.errors = err166;
|
|
3153
|
+
if (!res166) {
|
|
3154
|
+
if (validate.errors === null)
|
|
3155
|
+
validate.errors = [];
|
|
3156
|
+
validate.errors.push(...suberr176.map(e => errorMerge(e, "#/properties/tracks/properties/rotate/allOf/0/$ref", "#/tracks/rotate")));
|
|
3157
|
+
errorCount++;
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
if (data.tracks.scaleX !== undefined && hasOwn(data.tracks, "scaleX")) {
|
|
3161
|
+
const err167 = validate.errors;
|
|
3162
|
+
const res167 = ref17(data.tracks.scaleX);
|
|
3163
|
+
const suberr177 = ref17.errors;
|
|
3164
|
+
validate.errors = err167;
|
|
3165
|
+
if (!res167) {
|
|
3166
|
+
if (validate.errors === null)
|
|
3167
|
+
validate.errors = [];
|
|
3168
|
+
validate.errors.push(...suberr177.map(e => errorMerge(e, "#/properties/tracks/properties/scaleX/allOf/0/$ref", "#/tracks/scaleX")));
|
|
3169
|
+
errorCount++;
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
if (data.tracks.scaleY !== undefined && hasOwn(data.tracks, "scaleY")) {
|
|
3173
|
+
const err168 = validate.errors;
|
|
3174
|
+
const res168 = ref17(data.tracks.scaleY);
|
|
3175
|
+
const suberr178 = ref17.errors;
|
|
3176
|
+
validate.errors = err168;
|
|
3177
|
+
if (!res168) {
|
|
3178
|
+
if (validate.errors === null)
|
|
3179
|
+
validate.errors = [];
|
|
3180
|
+
validate.errors.push(...suberr178.map(e => errorMerge(e, "#/properties/tracks/properties/scaleY/allOf/0/$ref", "#/tracks/scaleY")));
|
|
3181
|
+
errorCount++;
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
if (data.tracks.opacity !== undefined && hasOwn(data.tracks, "opacity")) {
|
|
3185
|
+
const err169 = validate.errors;
|
|
3186
|
+
const res169 = ref17(data.tracks.opacity);
|
|
3187
|
+
const suberr179 = ref17.errors;
|
|
3188
|
+
validate.errors = err169;
|
|
3189
|
+
if (!res169) {
|
|
3190
|
+
if (validate.errors === null)
|
|
3191
|
+
validate.errors = [];
|
|
3192
|
+
validate.errors.push(...suberr179.map(e => errorMerge(e, "#/properties/tracks/properties/opacity/allOf/0/$ref", "#/tracks/opacity")));
|
|
3193
|
+
errorCount++;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
for (const key14 of Object.keys(data.tracks)) {
|
|
3197
|
+
if (key14 !== "translateX" && key14 !== "translateY" && key14 !== "rotate" && key14 !== "scaleX" && key14 !== "scaleY" && key14 !== "opacity") {
|
|
3198
|
+
if (validate.errors === null)
|
|
3199
|
+
validate.errors = [];
|
|
3200
|
+
validate.errors.push({ keywordLocation: "#/properties/tracks/additionalProperties", instanceLocation: "#/tracks/" + pointerPart(key14) });
|
|
3201
|
+
errorCount++;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
for (const key15 of Object.keys(data)) {
|
|
3207
|
+
if (key15 !== "name" && key15 !== "duration" && key15 !== "delay" && key15 !== "iterations" && key15 !== "direction" && key15 !== "fill" && key15 !== "easing" && key15 !== "origin" && key15 !== "tracks") {
|
|
3208
|
+
if (validate.errors === null)
|
|
3209
|
+
validate.errors = [];
|
|
3210
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key15) });
|
|
3211
|
+
errorCount++;
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
return errorCount === 0;
|
|
3216
|
+
};
|
|
3217
|
+
const ref14 = function validate(data) {
|
|
3218
|
+
validate.errors = null;
|
|
3219
|
+
let errorCount = 0;
|
|
3220
|
+
if (!Array.isArray(data)) {
|
|
3221
|
+
if (validate.errors === null)
|
|
3222
|
+
validate.errors = [];
|
|
3223
|
+
validate.errors.push({ keywordLocation: "#/type", instanceLocation: "#" });
|
|
3224
|
+
errorCount++;
|
|
3225
|
+
}
|
|
3226
|
+
else {
|
|
3227
|
+
if (data.length > 8) {
|
|
3228
|
+
if (validate.errors === null)
|
|
3229
|
+
validate.errors = [];
|
|
3230
|
+
validate.errors.push({ keywordLocation: "#/maxItems", instanceLocation: "#" });
|
|
3231
|
+
errorCount++;
|
|
3232
|
+
}
|
|
3233
|
+
if (data.length < 1) {
|
|
3234
|
+
if (validate.errors === null)
|
|
3235
|
+
validate.errors = [];
|
|
3236
|
+
validate.errors.push({ keywordLocation: "#/minItems", instanceLocation: "#" });
|
|
3237
|
+
errorCount++;
|
|
3238
|
+
}
|
|
3239
|
+
for (let j = 0; j < data.length; j++) {
|
|
3240
|
+
if (data[j] !== undefined && hasOwn(data, j)) {
|
|
3241
|
+
const err170 = validate.errors;
|
|
3242
|
+
const res170 = ref15(data[j]);
|
|
3243
|
+
const suberr180 = ref15.errors;
|
|
3244
|
+
validate.errors = err170;
|
|
3245
|
+
if (!res170) {
|
|
3246
|
+
if (validate.errors === null)
|
|
3247
|
+
validate.errors = [];
|
|
3248
|
+
validate.errors.push(...suberr180.map(e => errorMerge(e, "#/items/$ref", "#/" + j)));
|
|
3249
|
+
errorCount++;
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
return errorCount === 0;
|
|
3255
|
+
};
|
|
2573
3256
|
const ref12 = function validate(data) {
|
|
2574
3257
|
validate.errors = null;
|
|
2575
3258
|
let errorCount = 0;
|
|
@@ -2624,18 +3307,30 @@ const validate = (function () {
|
|
|
2624
3307
|
errorCount++;
|
|
2625
3308
|
}
|
|
2626
3309
|
}
|
|
2627
|
-
|
|
2628
|
-
|
|
3310
|
+
if (data.animations !== undefined && hasOwn(data, "animations")) {
|
|
3311
|
+
const err171 = validate.errors;
|
|
3312
|
+
const res171 = ref14(data.animations);
|
|
3313
|
+
const suberr181 = ref14.errors;
|
|
3314
|
+
validate.errors = err171;
|
|
3315
|
+
if (!res171) {
|
|
3316
|
+
if (validate.errors === null)
|
|
3317
|
+
validate.errors = [];
|
|
3318
|
+
validate.errors.push(...suberr181.map(e => errorMerge(e, "#/properties/animations/$ref", "#/animations")));
|
|
3319
|
+
errorCount++;
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
for (const key16 of Object.keys(data)) {
|
|
3323
|
+
if (key16 !== "type" && key16 !== "name" && key16 !== "attributes" && key16 !== "animations") {
|
|
2629
3324
|
if (validate.errors === null)
|
|
2630
3325
|
validate.errors = [];
|
|
2631
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3326
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key16) });
|
|
2632
3327
|
errorCount++;
|
|
2633
3328
|
}
|
|
2634
3329
|
}
|
|
2635
3330
|
}
|
|
2636
3331
|
return errorCount === 0;
|
|
2637
3332
|
};
|
|
2638
|
-
const
|
|
3333
|
+
const ref19 = function validate(data) {
|
|
2639
3334
|
validate.errors = null;
|
|
2640
3335
|
let errorCount = 0;
|
|
2641
3336
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -2674,14 +3369,14 @@ const validate = (function () {
|
|
|
2674
3369
|
}
|
|
2675
3370
|
}
|
|
2676
3371
|
if (data.attributes !== undefined && hasOwn(data, "attributes")) {
|
|
2677
|
-
const
|
|
2678
|
-
const
|
|
2679
|
-
const
|
|
2680
|
-
validate.errors =
|
|
2681
|
-
if (!
|
|
3372
|
+
const err173 = validate.errors;
|
|
3373
|
+
const res173 = ref2(data.attributes);
|
|
3374
|
+
const suberr183 = ref2.errors;
|
|
3375
|
+
validate.errors = err173;
|
|
3376
|
+
if (!res173) {
|
|
2682
3377
|
if (validate.errors === null)
|
|
2683
3378
|
validate.errors = [];
|
|
2684
|
-
validate.errors.push(...
|
|
3379
|
+
validate.errors.push(...suberr183.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
|
|
2685
3380
|
errorCount++;
|
|
2686
3381
|
}
|
|
2687
3382
|
}
|
|
@@ -2699,52 +3394,52 @@ const validate = (function () {
|
|
|
2699
3394
|
validate.errors.push({ keywordLocation: "#/properties/children/maxItems", instanceLocation: "#/children" });
|
|
2700
3395
|
errorCount++;
|
|
2701
3396
|
}
|
|
2702
|
-
for (let
|
|
2703
|
-
if (data.children[
|
|
2704
|
-
if (!(typeof data.children[
|
|
3397
|
+
for (let l = 0; l < data.children.length; l++) {
|
|
3398
|
+
if (data.children[l] !== undefined && hasOwn(data.children, l)) {
|
|
3399
|
+
if (!(typeof data.children[l] === "object" && data.children[l] && !Array.isArray(data.children[l]))) {
|
|
2705
3400
|
if (validate.errors === null)
|
|
2706
3401
|
validate.errors = [];
|
|
2707
|
-
validate.errors.push({ keywordLocation: "#/properties/children/items/type", instanceLocation: "#/children/" +
|
|
3402
|
+
validate.errors.push({ keywordLocation: "#/properties/children/items/type", instanceLocation: "#/children/" + l });
|
|
2708
3403
|
errorCount++;
|
|
2709
3404
|
}
|
|
2710
3405
|
else {
|
|
2711
|
-
if (!(data.children[
|
|
3406
|
+
if (!(data.children[l].type !== undefined && hasOwn(data.children[l], "type"))) {
|
|
2712
3407
|
if (validate.errors === null)
|
|
2713
3408
|
validate.errors = [];
|
|
2714
|
-
validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" +
|
|
3409
|
+
validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + l + "/type" });
|
|
2715
3410
|
errorCount++;
|
|
2716
3411
|
}
|
|
2717
|
-
if (!(data.children[
|
|
3412
|
+
if (!(data.children[l].value !== undefined && hasOwn(data.children[l], "value"))) {
|
|
2718
3413
|
if (validate.errors === null)
|
|
2719
3414
|
validate.errors = [];
|
|
2720
|
-
validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" +
|
|
3415
|
+
validate.errors.push({ keywordLocation: "#/properties/children/items/required", instanceLocation: "#/children/" + l + "/value" });
|
|
2721
3416
|
errorCount++;
|
|
2722
3417
|
}
|
|
2723
|
-
if (data.children[
|
|
2724
|
-
if (!(data.children[
|
|
3418
|
+
if (data.children[l].type !== undefined && hasOwn(data.children[l], "type")) {
|
|
3419
|
+
if (!(data.children[l].type === "text")) {
|
|
2725
3420
|
if (validate.errors === null)
|
|
2726
3421
|
validate.errors = [];
|
|
2727
|
-
validate.errors.push({ keywordLocation: "#/properties/children/items/properties/type/const", instanceLocation: "#/children/" +
|
|
3422
|
+
validate.errors.push({ keywordLocation: "#/properties/children/items/properties/type/const", instanceLocation: "#/children/" + l + "/type" });
|
|
2728
3423
|
errorCount++;
|
|
2729
3424
|
}
|
|
2730
3425
|
}
|
|
2731
|
-
if (data.children[
|
|
2732
|
-
const
|
|
2733
|
-
const
|
|
2734
|
-
const
|
|
2735
|
-
validate.errors =
|
|
2736
|
-
if (!
|
|
3426
|
+
if (data.children[l].value !== undefined && hasOwn(data.children[l], "value")) {
|
|
3427
|
+
const err174 = validate.errors;
|
|
3428
|
+
const res174 = ref9(data.children[l].value);
|
|
3429
|
+
const suberr184 = ref9.errors;
|
|
3430
|
+
validate.errors = err174;
|
|
3431
|
+
if (!res174) {
|
|
2737
3432
|
if (validate.errors === null)
|
|
2738
3433
|
validate.errors = [];
|
|
2739
|
-
validate.errors.push(...
|
|
3434
|
+
validate.errors.push(...suberr184.map(e => errorMerge(e, "#/properties/children/items/properties/value/$ref", "#/children/" + l + "/value")));
|
|
2740
3435
|
errorCount++;
|
|
2741
3436
|
}
|
|
2742
3437
|
}
|
|
2743
|
-
for (const
|
|
2744
|
-
if (
|
|
3438
|
+
for (const key17 of Object.keys(data.children[l])) {
|
|
3439
|
+
if (key17 !== "type" && key17 !== "value") {
|
|
2745
3440
|
if (validate.errors === null)
|
|
2746
3441
|
validate.errors = [];
|
|
2747
|
-
validate.errors.push({ keywordLocation: "#/properties/children/items/additionalProperties", instanceLocation: "#/children/" +
|
|
3442
|
+
validate.errors.push({ keywordLocation: "#/properties/children/items/additionalProperties", instanceLocation: "#/children/" + l + "/" + pointerPart(key17) });
|
|
2748
3443
|
errorCount++;
|
|
2749
3444
|
}
|
|
2750
3445
|
}
|
|
@@ -2753,18 +3448,18 @@ const validate = (function () {
|
|
|
2753
3448
|
}
|
|
2754
3449
|
}
|
|
2755
3450
|
}
|
|
2756
|
-
for (const
|
|
2757
|
-
if (
|
|
3451
|
+
for (const key18 of Object.keys(data)) {
|
|
3452
|
+
if (key18 !== "type" && key18 !== "name" && key18 !== "attributes" && key18 !== "children") {
|
|
2758
3453
|
if (validate.errors === null)
|
|
2759
3454
|
validate.errors = [];
|
|
2760
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3455
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key18) });
|
|
2761
3456
|
errorCount++;
|
|
2762
3457
|
}
|
|
2763
3458
|
}
|
|
2764
3459
|
}
|
|
2765
3460
|
return errorCount === 0;
|
|
2766
3461
|
};
|
|
2767
|
-
const
|
|
3462
|
+
const ref20 = function validate(data) {
|
|
2768
3463
|
validate.errors = null;
|
|
2769
3464
|
let errorCount = 0;
|
|
2770
3465
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -2803,14 +3498,26 @@ const validate = (function () {
|
|
|
2803
3498
|
}
|
|
2804
3499
|
}
|
|
2805
3500
|
if (data.attributes !== undefined && hasOwn(data, "attributes")) {
|
|
2806
|
-
const
|
|
2807
|
-
const
|
|
2808
|
-
const
|
|
2809
|
-
validate.errors =
|
|
2810
|
-
if (!
|
|
3501
|
+
const err176 = validate.errors;
|
|
3502
|
+
const res176 = ref2(data.attributes);
|
|
3503
|
+
const suberr186 = ref2.errors;
|
|
3504
|
+
validate.errors = err176;
|
|
3505
|
+
if (!res176) {
|
|
3506
|
+
if (validate.errors === null)
|
|
3507
|
+
validate.errors = [];
|
|
3508
|
+
validate.errors.push(...suberr186.map(e => errorMerge(e, "#/properties/attributes/$ref", "#/attributes")));
|
|
3509
|
+
errorCount++;
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
if (data.animations !== undefined && hasOwn(data, "animations")) {
|
|
3513
|
+
const err177 = validate.errors;
|
|
3514
|
+
const res177 = ref14(data.animations);
|
|
3515
|
+
const suberr187 = ref14.errors;
|
|
3516
|
+
validate.errors = err177;
|
|
3517
|
+
if (!res177) {
|
|
2811
3518
|
if (validate.errors === null)
|
|
2812
3519
|
validate.errors = [];
|
|
2813
|
-
validate.errors.push(...
|
|
3520
|
+
validate.errors.push(...suberr187.map(e => errorMerge(e, "#/properties/animations/$ref", "#/animations")));
|
|
2814
3521
|
errorCount++;
|
|
2815
3522
|
}
|
|
2816
3523
|
}
|
|
@@ -2828,27 +3535,27 @@ const validate = (function () {
|
|
|
2828
3535
|
validate.errors.push({ keywordLocation: "#/properties/children/maxItems", instanceLocation: "#/children" });
|
|
2829
3536
|
errorCount++;
|
|
2830
3537
|
}
|
|
2831
|
-
for (let
|
|
2832
|
-
if (data.children[
|
|
2833
|
-
const
|
|
2834
|
-
const
|
|
2835
|
-
const
|
|
2836
|
-
validate.errors =
|
|
2837
|
-
if (!
|
|
3538
|
+
for (let m = 0; m < data.children.length; m++) {
|
|
3539
|
+
if (data.children[m] !== undefined && hasOwn(data.children, m)) {
|
|
3540
|
+
const err178 = validate.errors;
|
|
3541
|
+
const res178 = ref10(data.children[m]);
|
|
3542
|
+
const suberr188 = ref10.errors;
|
|
3543
|
+
validate.errors = err178;
|
|
3544
|
+
if (!res178) {
|
|
2838
3545
|
if (validate.errors === null)
|
|
2839
3546
|
validate.errors = [];
|
|
2840
|
-
validate.errors.push(...
|
|
3547
|
+
validate.errors.push(...suberr188.map(e => errorMerge(e, "#/properties/children/items/$ref", "#/children/" + m)));
|
|
2841
3548
|
errorCount++;
|
|
2842
3549
|
}
|
|
2843
3550
|
}
|
|
2844
3551
|
}
|
|
2845
3552
|
}
|
|
2846
3553
|
}
|
|
2847
|
-
for (const
|
|
2848
|
-
if (
|
|
3554
|
+
for (const key19 of Object.keys(data)) {
|
|
3555
|
+
if (key19 !== "type" && key19 !== "name" && key19 !== "attributes" && key19 !== "animations" && key19 !== "children") {
|
|
2849
3556
|
if (validate.errors === null)
|
|
2850
3557
|
validate.errors = [];
|
|
2851
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3558
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key19) });
|
|
2852
3559
|
errorCount++;
|
|
2853
3560
|
}
|
|
2854
3561
|
}
|
|
@@ -2876,49 +3583,49 @@ const validate = (function () {
|
|
|
2876
3583
|
if (!sub21) {
|
|
2877
3584
|
const sub24 = (() => {
|
|
2878
3585
|
let errorCount = 0;
|
|
2879
|
-
const
|
|
2880
|
-
const
|
|
2881
|
-
const
|
|
2882
|
-
validate.errors =
|
|
2883
|
-
if (!
|
|
3586
|
+
const err172 = validate.errors;
|
|
3587
|
+
const res172 = ref12(data);
|
|
3588
|
+
const suberr182 = ref12.errors;
|
|
3589
|
+
validate.errors = err172;
|
|
3590
|
+
if (!res172) {
|
|
2884
3591
|
if (validate.errors === null)
|
|
2885
3592
|
validate.errors = [];
|
|
2886
|
-
validate.errors.push(...
|
|
3593
|
+
validate.errors.push(...suberr182.map(e => errorMerge(e, "#/anyOf/1/$ref", "#")));
|
|
2887
3594
|
errorCount++;
|
|
2888
3595
|
}
|
|
2889
3596
|
return errorCount === 0;
|
|
2890
3597
|
})();
|
|
2891
3598
|
if (!sub24) {
|
|
2892
|
-
const
|
|
3599
|
+
const sub29 = (() => {
|
|
2893
3600
|
let errorCount = 0;
|
|
2894
|
-
const
|
|
2895
|
-
const
|
|
2896
|
-
const
|
|
2897
|
-
validate.errors =
|
|
2898
|
-
if (!
|
|
3601
|
+
const err175 = validate.errors;
|
|
3602
|
+
const res175 = ref19(data);
|
|
3603
|
+
const suberr185 = ref19.errors;
|
|
3604
|
+
validate.errors = err175;
|
|
3605
|
+
if (!res175) {
|
|
2899
3606
|
if (validate.errors === null)
|
|
2900
3607
|
validate.errors = [];
|
|
2901
|
-
validate.errors.push(...
|
|
3608
|
+
validate.errors.push(...suberr185.map(e => errorMerge(e, "#/anyOf/2/$ref", "#")));
|
|
2902
3609
|
errorCount++;
|
|
2903
3610
|
}
|
|
2904
3611
|
return errorCount === 0;
|
|
2905
3612
|
})();
|
|
2906
|
-
if (!
|
|
2907
|
-
const
|
|
3613
|
+
if (!sub29) {
|
|
3614
|
+
const sub30 = (() => {
|
|
2908
3615
|
let errorCount = 0;
|
|
2909
|
-
const
|
|
2910
|
-
const
|
|
2911
|
-
const
|
|
2912
|
-
validate.errors =
|
|
2913
|
-
if (!
|
|
3616
|
+
const err179 = validate.errors;
|
|
3617
|
+
const res179 = ref20(data);
|
|
3618
|
+
const suberr189 = ref20.errors;
|
|
3619
|
+
validate.errors = err179;
|
|
3620
|
+
if (!res179) {
|
|
2914
3621
|
if (validate.errors === null)
|
|
2915
3622
|
validate.errors = [];
|
|
2916
|
-
validate.errors.push(...
|
|
3623
|
+
validate.errors.push(...suberr189.map(e => errorMerge(e, "#/anyOf/3/$ref", "#")));
|
|
2917
3624
|
errorCount++;
|
|
2918
3625
|
}
|
|
2919
3626
|
return errorCount === 0;
|
|
2920
3627
|
})();
|
|
2921
|
-
if (!
|
|
3628
|
+
if (!sub30) {
|
|
2922
3629
|
if (validate.errors === null)
|
|
2923
3630
|
validate.errors = [];
|
|
2924
3631
|
validate.errors.push({ keywordLocation: "#/anyOf", instanceLocation: "#" });
|
|
@@ -2931,7 +3638,7 @@ const validate = (function () {
|
|
|
2931
3638
|
}
|
|
2932
3639
|
return errorCount === 0;
|
|
2933
3640
|
};
|
|
2934
|
-
const
|
|
3641
|
+
const ref22 = function validate(data) {
|
|
2935
3642
|
validate.errors = null;
|
|
2936
3643
|
let errorCount = 0;
|
|
2937
3644
|
if (!(typeof data === "number")) {
|
|
@@ -2956,7 +3663,7 @@ const validate = (function () {
|
|
|
2956
3663
|
}
|
|
2957
3664
|
return errorCount === 0;
|
|
2958
3665
|
};
|
|
2959
|
-
const
|
|
3666
|
+
const ref23 = function validate(data) {
|
|
2960
3667
|
validate.errors = null;
|
|
2961
3668
|
let errorCount = 0;
|
|
2962
3669
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3044,18 +3751,18 @@ const validate = (function () {
|
|
|
3044
3751
|
}
|
|
3045
3752
|
}
|
|
3046
3753
|
}
|
|
3047
|
-
for (const
|
|
3048
|
-
if (
|
|
3754
|
+
for (const key23 of Object.keys(data)) {
|
|
3755
|
+
if (key23 !== "min" && key23 !== "max" && key23 !== "step") {
|
|
3049
3756
|
if (validate.errors === null)
|
|
3050
3757
|
validate.errors = [];
|
|
3051
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3758
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key23) });
|
|
3052
3759
|
errorCount++;
|
|
3053
3760
|
}
|
|
3054
3761
|
}
|
|
3055
3762
|
}
|
|
3056
3763
|
return errorCount === 0;
|
|
3057
3764
|
};
|
|
3058
|
-
const
|
|
3765
|
+
const ref24 = function validate(data) {
|
|
3059
3766
|
validate.errors = null;
|
|
3060
3767
|
let errorCount = 0;
|
|
3061
3768
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3143,18 +3850,18 @@ const validate = (function () {
|
|
|
3143
3850
|
}
|
|
3144
3851
|
}
|
|
3145
3852
|
}
|
|
3146
|
-
for (const
|
|
3147
|
-
if (
|
|
3853
|
+
for (const key24 of Object.keys(data)) {
|
|
3854
|
+
if (key24 !== "min" && key24 !== "max" && key24 !== "step") {
|
|
3148
3855
|
if (validate.errors === null)
|
|
3149
3856
|
validate.errors = [];
|
|
3150
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3857
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key24) });
|
|
3151
3858
|
errorCount++;
|
|
3152
3859
|
}
|
|
3153
3860
|
}
|
|
3154
3861
|
}
|
|
3155
3862
|
return errorCount === 0;
|
|
3156
3863
|
};
|
|
3157
|
-
const
|
|
3864
|
+
const ref26 = function validate(data) {
|
|
3158
3865
|
validate.errors = null;
|
|
3159
3866
|
let errorCount = 0;
|
|
3160
3867
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3242,18 +3949,18 @@ const validate = (function () {
|
|
|
3242
3949
|
}
|
|
3243
3950
|
}
|
|
3244
3951
|
}
|
|
3245
|
-
for (const
|
|
3246
|
-
if (
|
|
3952
|
+
for (const key25 of Object.keys(data)) {
|
|
3953
|
+
if (key25 !== "min" && key25 !== "max" && key25 !== "step") {
|
|
3247
3954
|
if (validate.errors === null)
|
|
3248
3955
|
validate.errors = [];
|
|
3249
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
3956
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key25) });
|
|
3250
3957
|
errorCount++;
|
|
3251
3958
|
}
|
|
3252
3959
|
}
|
|
3253
3960
|
}
|
|
3254
3961
|
return errorCount === 0;
|
|
3255
3962
|
};
|
|
3256
|
-
const
|
|
3963
|
+
const ref25 = function validate(data) {
|
|
3257
3964
|
validate.errors = null;
|
|
3258
3965
|
let errorCount = 0;
|
|
3259
3966
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3264,34 +3971,34 @@ const validate = (function () {
|
|
|
3264
3971
|
}
|
|
3265
3972
|
else {
|
|
3266
3973
|
if (data.x !== undefined && hasOwn(data, "x")) {
|
|
3267
|
-
const
|
|
3268
|
-
const
|
|
3269
|
-
const
|
|
3270
|
-
validate.errors =
|
|
3271
|
-
if (!
|
|
3974
|
+
const err185 = validate.errors;
|
|
3975
|
+
const res185 = ref26(data.x);
|
|
3976
|
+
const suberr196 = ref26.errors;
|
|
3977
|
+
validate.errors = err185;
|
|
3978
|
+
if (!res185) {
|
|
3272
3979
|
if (validate.errors === null)
|
|
3273
3980
|
validate.errors = [];
|
|
3274
|
-
validate.errors.push(...
|
|
3981
|
+
validate.errors.push(...suberr196.map(e => errorMerge(e, "#/properties/x/$ref", "#/x")));
|
|
3275
3982
|
errorCount++;
|
|
3276
3983
|
}
|
|
3277
3984
|
}
|
|
3278
3985
|
if (data.y !== undefined && hasOwn(data, "y")) {
|
|
3279
|
-
const
|
|
3280
|
-
const
|
|
3281
|
-
const
|
|
3282
|
-
validate.errors =
|
|
3283
|
-
if (!
|
|
3986
|
+
const err186 = validate.errors;
|
|
3987
|
+
const res186 = ref26(data.y);
|
|
3988
|
+
const suberr197 = ref26.errors;
|
|
3989
|
+
validate.errors = err186;
|
|
3990
|
+
if (!res186) {
|
|
3284
3991
|
if (validate.errors === null)
|
|
3285
3992
|
validate.errors = [];
|
|
3286
|
-
validate.errors.push(...
|
|
3993
|
+
validate.errors.push(...suberr197.map(e => errorMerge(e, "#/properties/y/$ref", "#/y")));
|
|
3287
3994
|
errorCount++;
|
|
3288
3995
|
}
|
|
3289
3996
|
}
|
|
3290
|
-
for (const
|
|
3291
|
-
if (
|
|
3997
|
+
for (const key26 of Object.keys(data)) {
|
|
3998
|
+
if (key26 !== "x" && key26 !== "y") {
|
|
3292
3999
|
if (validate.errors === null)
|
|
3293
4000
|
validate.errors = [];
|
|
3294
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
4001
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key26) });
|
|
3295
4002
|
errorCount++;
|
|
3296
4003
|
}
|
|
3297
4004
|
}
|
|
@@ -3355,7 +4062,7 @@ const validate = (function () {
|
|
|
3355
4062
|
}
|
|
3356
4063
|
return false;
|
|
3357
4064
|
};
|
|
3358
|
-
const
|
|
4065
|
+
const ref21 = function validate(data) {
|
|
3359
4066
|
validate.errors = null;
|
|
3360
4067
|
let errorCount = 0;
|
|
3361
4068
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3428,50 +4135,50 @@ const validate = (function () {
|
|
|
3428
4135
|
}
|
|
3429
4136
|
}
|
|
3430
4137
|
if (data.probability !== undefined && hasOwn(data, "probability")) {
|
|
3431
|
-
const
|
|
3432
|
-
const
|
|
3433
|
-
const
|
|
3434
|
-
validate.errors =
|
|
3435
|
-
if (!
|
|
4138
|
+
const err182 = validate.errors;
|
|
4139
|
+
const res182 = ref22(data.probability);
|
|
4140
|
+
const suberr193 = ref22.errors;
|
|
4141
|
+
validate.errors = err182;
|
|
4142
|
+
if (!res182) {
|
|
3436
4143
|
if (validate.errors === null)
|
|
3437
4144
|
validate.errors = [];
|
|
3438
|
-
validate.errors.push(...
|
|
4145
|
+
validate.errors.push(...suberr193.map(e => errorMerge(e, "#/properties/probability/$ref", "#/probability")));
|
|
3439
4146
|
errorCount++;
|
|
3440
4147
|
}
|
|
3441
4148
|
}
|
|
3442
4149
|
if (data.rotate !== undefined && hasOwn(data, "rotate")) {
|
|
3443
|
-
const
|
|
3444
|
-
const
|
|
3445
|
-
const
|
|
3446
|
-
validate.errors =
|
|
3447
|
-
if (!
|
|
4150
|
+
const err183 = validate.errors;
|
|
4151
|
+
const res183 = ref23(data.rotate);
|
|
4152
|
+
const suberr194 = ref23.errors;
|
|
4153
|
+
validate.errors = err183;
|
|
4154
|
+
if (!res183) {
|
|
3448
4155
|
if (validate.errors === null)
|
|
3449
4156
|
validate.errors = [];
|
|
3450
|
-
validate.errors.push(...
|
|
4157
|
+
validate.errors.push(...suberr194.map(e => errorMerge(e, "#/properties/rotate/$ref", "#/rotate")));
|
|
3451
4158
|
errorCount++;
|
|
3452
4159
|
}
|
|
3453
4160
|
}
|
|
3454
4161
|
if (data.scale !== undefined && hasOwn(data, "scale")) {
|
|
3455
|
-
const
|
|
3456
|
-
const
|
|
3457
|
-
const
|
|
3458
|
-
validate.errors =
|
|
3459
|
-
if (!
|
|
4162
|
+
const err184 = validate.errors;
|
|
4163
|
+
const res184 = ref24(data.scale);
|
|
4164
|
+
const suberr195 = ref24.errors;
|
|
4165
|
+
validate.errors = err184;
|
|
4166
|
+
if (!res184) {
|
|
3460
4167
|
if (validate.errors === null)
|
|
3461
4168
|
validate.errors = [];
|
|
3462
|
-
validate.errors.push(...
|
|
4169
|
+
validate.errors.push(...suberr195.map(e => errorMerge(e, "#/properties/scale/$ref", "#/scale")));
|
|
3463
4170
|
errorCount++;
|
|
3464
4171
|
}
|
|
3465
4172
|
}
|
|
3466
4173
|
if (data.translate !== undefined && hasOwn(data, "translate")) {
|
|
3467
|
-
const
|
|
3468
|
-
const
|
|
3469
|
-
const
|
|
3470
|
-
validate.errors =
|
|
3471
|
-
if (!
|
|
4174
|
+
const err187 = validate.errors;
|
|
4175
|
+
const res187 = ref25(data.translate);
|
|
4176
|
+
const suberr198 = ref25.errors;
|
|
4177
|
+
validate.errors = err187;
|
|
4178
|
+
if (!res187) {
|
|
3472
4179
|
if (validate.errors === null)
|
|
3473
4180
|
validate.errors = [];
|
|
3474
|
-
validate.errors.push(...
|
|
4181
|
+
validate.errors.push(...suberr198.map(e => errorMerge(e, "#/properties/translate/$ref", "#/translate")));
|
|
3475
4182
|
errorCount++;
|
|
3476
4183
|
}
|
|
3477
4184
|
}
|
|
@@ -3489,120 +4196,120 @@ const validate = (function () {
|
|
|
3489
4196
|
validate.errors.push({ keywordLocation: "#/properties/variants/maxProperties", instanceLocation: "#/variants" });
|
|
3490
4197
|
errorCount++;
|
|
3491
4198
|
}
|
|
3492
|
-
for (const
|
|
3493
|
-
const
|
|
3494
|
-
const
|
|
3495
|
-
const
|
|
3496
|
-
validate.errors =
|
|
3497
|
-
if (!
|
|
4199
|
+
for (const key27 of Object.keys(data.variants)) {
|
|
4200
|
+
const err188 = validate.errors;
|
|
4201
|
+
const res188 = ref7(key27);
|
|
4202
|
+
const suberr199 = ref7.errors;
|
|
4203
|
+
validate.errors = err188;
|
|
4204
|
+
if (!res188) {
|
|
3498
4205
|
if (validate.errors === null)
|
|
3499
4206
|
validate.errors = [];
|
|
3500
|
-
validate.errors.push(...
|
|
4207
|
+
validate.errors.push(...suberr199.map(e => errorMerge(e, "#/properties/variants/propertyNames/$ref", "#/variants/" + pointerPart(key27))));
|
|
3501
4208
|
errorCount++;
|
|
3502
4209
|
}
|
|
3503
4210
|
}
|
|
3504
|
-
for (const
|
|
3505
|
-
if (!(typeof data.variants[
|
|
4211
|
+
for (const key28 of Object.keys(data.variants)) {
|
|
4212
|
+
if (!(typeof data.variants[key28] === "object" && data.variants[key28] && !Array.isArray(data.variants[key28]))) {
|
|
3506
4213
|
if (validate.errors === null)
|
|
3507
4214
|
validate.errors = [];
|
|
3508
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/type", instanceLocation: "#/variants/" + pointerPart(
|
|
4215
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/type", instanceLocation: "#/variants/" + pointerPart(key28) });
|
|
3509
4216
|
errorCount++;
|
|
3510
4217
|
}
|
|
3511
4218
|
else {
|
|
3512
|
-
if (!(data.variants[
|
|
4219
|
+
if (!(data.variants[key28].elements !== undefined && hasOwn(data.variants[key28], "elements"))) {
|
|
3513
4220
|
if (validate.errors === null)
|
|
3514
4221
|
validate.errors = [];
|
|
3515
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/required", instanceLocation: "#/variants/" + pointerPart(
|
|
4222
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/required", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
|
|
3516
4223
|
errorCount++;
|
|
3517
4224
|
}
|
|
3518
|
-
if (data.variants[
|
|
3519
|
-
if (!(Array.isArray(data.variants[
|
|
4225
|
+
if (data.variants[key28].elements !== undefined && hasOwn(data.variants[key28], "elements")) {
|
|
4226
|
+
if (!(Array.isArray(data.variants[key28].elements))) {
|
|
3520
4227
|
if (validate.errors === null)
|
|
3521
4228
|
validate.errors = [];
|
|
3522
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/type", instanceLocation: "#/variants/" + pointerPart(
|
|
4229
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
|
|
3523
4230
|
errorCount++;
|
|
3524
4231
|
}
|
|
3525
4232
|
else {
|
|
3526
|
-
if (data.variants[
|
|
4233
|
+
if (data.variants[key28].elements.length > 1024) {
|
|
3527
4234
|
if (validate.errors === null)
|
|
3528
4235
|
validate.errors = [];
|
|
3529
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/maxItems", instanceLocation: "#/variants/" + pointerPart(
|
|
4236
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/elements/maxItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/elements" });
|
|
3530
4237
|
errorCount++;
|
|
3531
4238
|
}
|
|
3532
|
-
for (let
|
|
3533
|
-
if (data.variants[
|
|
3534
|
-
const
|
|
3535
|
-
const
|
|
3536
|
-
const
|
|
3537
|
-
validate.errors =
|
|
3538
|
-
if (!
|
|
4239
|
+
for (let n = 0; n < data.variants[key28].elements.length; n++) {
|
|
4240
|
+
if (data.variants[key28].elements[n] !== undefined && hasOwn(data.variants[key28].elements, n)) {
|
|
4241
|
+
const err189 = validate.errors;
|
|
4242
|
+
const res189 = ref10(data.variants[key28].elements[n]);
|
|
4243
|
+
const suberr200 = ref10.errors;
|
|
4244
|
+
validate.errors = err189;
|
|
4245
|
+
if (!res189) {
|
|
3539
4246
|
if (validate.errors === null)
|
|
3540
4247
|
validate.errors = [];
|
|
3541
|
-
validate.errors.push(...
|
|
4248
|
+
validate.errors.push(...suberr200.map(e => errorMerge(e, "#/properties/variants/additionalProperties/properties/elements/items/$ref", "#/variants/" + pointerPart(key28) + "elements/" + n)));
|
|
3542
4249
|
errorCount++;
|
|
3543
4250
|
}
|
|
3544
4251
|
}
|
|
3545
4252
|
}
|
|
3546
4253
|
}
|
|
3547
4254
|
}
|
|
3548
|
-
if (data.variants[
|
|
3549
|
-
if (!(typeof data.variants[
|
|
4255
|
+
if (data.variants[key28].weight !== undefined && hasOwn(data.variants[key28], "weight")) {
|
|
4256
|
+
if (!(typeof data.variants[key28].weight === "number")) {
|
|
3550
4257
|
if (validate.errors === null)
|
|
3551
4258
|
validate.errors = [];
|
|
3552
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/type", instanceLocation: "#/variants/" + pointerPart(
|
|
4259
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
|
|
3553
4260
|
errorCount++;
|
|
3554
4261
|
}
|
|
3555
4262
|
else {
|
|
3556
|
-
if (!(0 <= data.variants[
|
|
4263
|
+
if (!(0 <= data.variants[key28].weight)) {
|
|
3557
4264
|
if (validate.errors === null)
|
|
3558
4265
|
validate.errors = [];
|
|
3559
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/minimum", instanceLocation: "#/variants/" + pointerPart(
|
|
4266
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/minimum", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
|
|
3560
4267
|
errorCount++;
|
|
3561
4268
|
}
|
|
3562
|
-
if (!(1000000 >= data.variants[
|
|
4269
|
+
if (!(1000000 >= data.variants[key28].weight)) {
|
|
3563
4270
|
if (validate.errors === null)
|
|
3564
4271
|
validate.errors = [];
|
|
3565
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/maximum", instanceLocation: "#/variants/" + pointerPart(
|
|
4272
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/weight/maximum", instanceLocation: "#/variants/" + pointerPart(key28) + "/weight" });
|
|
3566
4273
|
errorCount++;
|
|
3567
4274
|
}
|
|
3568
4275
|
}
|
|
3569
4276
|
}
|
|
3570
|
-
if (data.variants[
|
|
3571
|
-
if (!(Array.isArray(data.variants[
|
|
4277
|
+
if (data.variants[key28].tags !== undefined && hasOwn(data.variants[key28], "tags")) {
|
|
4278
|
+
if (!(Array.isArray(data.variants[key28].tags))) {
|
|
3572
4279
|
if (validate.errors === null)
|
|
3573
4280
|
validate.errors = [];
|
|
3574
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/type", instanceLocation: "#/variants/" + pointerPart(
|
|
4281
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/type", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
|
|
3575
4282
|
errorCount++;
|
|
3576
4283
|
}
|
|
3577
4284
|
else {
|
|
3578
4285
|
const prev15 = errorCount;
|
|
3579
|
-
if (data.variants[
|
|
4286
|
+
if (data.variants[key28].tags.length > 32) {
|
|
3580
4287
|
if (validate.errors === null)
|
|
3581
4288
|
validate.errors = [];
|
|
3582
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/maxItems", instanceLocation: "#/variants/" + pointerPart(
|
|
4289
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/maxItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
|
|
3583
4290
|
errorCount++;
|
|
3584
4291
|
}
|
|
3585
|
-
for (let
|
|
3586
|
-
if (data.variants[
|
|
3587
|
-
if (!(typeof data.variants[
|
|
4292
|
+
for (let o = 0; o < data.variants[key28].tags.length; o++) {
|
|
4293
|
+
if (data.variants[key28].tags[o] !== undefined && hasOwn(data.variants[key28].tags, o)) {
|
|
4294
|
+
if (!(typeof data.variants[key28].tags[o] === "string")) {
|
|
3588
4295
|
if (validate.errors === null)
|
|
3589
4296
|
validate.errors = [];
|
|
3590
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/type", instanceLocation: "#/variants/" + pointerPart(
|
|
4297
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/type", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + o });
|
|
3591
4298
|
errorCount++;
|
|
3592
4299
|
}
|
|
3593
4300
|
else {
|
|
3594
4301
|
const prev16 = errorCount;
|
|
3595
|
-
if (data.variants[
|
|
4302
|
+
if (data.variants[key28].tags[o].length > 129 && stringLength(data.variants[key28].tags[o]) > 129) {
|
|
3596
4303
|
if (validate.errors === null)
|
|
3597
4304
|
validate.errors = [];
|
|
3598
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/maxLength", instanceLocation: "#/variants/" + pointerPart(
|
|
4305
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/maxLength", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + o });
|
|
3599
4306
|
errorCount++;
|
|
3600
4307
|
}
|
|
3601
4308
|
if (errorCount === prev16) {
|
|
3602
|
-
if (!(pattern15.test(data.variants[
|
|
4309
|
+
if (!(pattern15.test(data.variants[key28].tags[o]))) {
|
|
3603
4310
|
if (validate.errors === null)
|
|
3604
4311
|
validate.errors = [];
|
|
3605
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/pattern", instanceLocation: "#/variants/" + pointerPart(
|
|
4312
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/items/pattern", instanceLocation: "#/variants/" + pointerPart(key28) + "tags/" + o });
|
|
3606
4313
|
errorCount++;
|
|
3607
4314
|
}
|
|
3608
4315
|
}
|
|
@@ -3610,20 +4317,20 @@ const validate = (function () {
|
|
|
3610
4317
|
}
|
|
3611
4318
|
}
|
|
3612
4319
|
if (errorCount === prev15) {
|
|
3613
|
-
if (!unique(data.variants[
|
|
4320
|
+
if (!unique(data.variants[key28].tags)) {
|
|
3614
4321
|
if (validate.errors === null)
|
|
3615
4322
|
validate.errors = [];
|
|
3616
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/uniqueItems", instanceLocation: "#/variants/" + pointerPart(
|
|
4323
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/properties/tags/uniqueItems", instanceLocation: "#/variants/" + pointerPart(key28) + "/tags" });
|
|
3617
4324
|
errorCount++;
|
|
3618
4325
|
}
|
|
3619
4326
|
}
|
|
3620
4327
|
}
|
|
3621
4328
|
}
|
|
3622
|
-
for (const
|
|
3623
|
-
if (
|
|
4329
|
+
for (const key29 of Object.keys(data.variants[key28])) {
|
|
4330
|
+
if (key29 !== "elements" && key29 !== "weight" && key29 !== "tags") {
|
|
3624
4331
|
if (validate.errors === null)
|
|
3625
4332
|
validate.errors = [];
|
|
3626
|
-
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/additionalProperties", instanceLocation: "#/variants/" + pointerPart(
|
|
4333
|
+
validate.errors.push({ keywordLocation: "#/properties/variants/additionalProperties/additionalProperties", instanceLocation: "#/variants/" + pointerPart(key28) + "/" + pointerPart(key29) });
|
|
3627
4334
|
errorCount++;
|
|
3628
4335
|
}
|
|
3629
4336
|
}
|
|
@@ -3631,18 +4338,18 @@ const validate = (function () {
|
|
|
3631
4338
|
}
|
|
3632
4339
|
}
|
|
3633
4340
|
}
|
|
3634
|
-
for (const
|
|
3635
|
-
if (
|
|
4341
|
+
for (const key30 of Object.keys(data)) {
|
|
4342
|
+
if (key30 !== "width" && key30 !== "height" && key30 !== "probability" && key30 !== "rotate" && key30 !== "scale" && key30 !== "translate" && key30 !== "variants") {
|
|
3636
4343
|
if (validate.errors === null)
|
|
3637
4344
|
validate.errors = [];
|
|
3638
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
4345
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key30) });
|
|
3639
4346
|
errorCount++;
|
|
3640
4347
|
}
|
|
3641
4348
|
}
|
|
3642
4349
|
}
|
|
3643
4350
|
return errorCount === 0;
|
|
3644
4351
|
};
|
|
3645
|
-
const
|
|
4352
|
+
const ref27 = function validate(data) {
|
|
3646
4353
|
validate.errors = null;
|
|
3647
4354
|
let errorCount = 0;
|
|
3648
4355
|
if (!(typeof data === "object" && data && !Array.isArray(data))) {
|
|
@@ -3659,22 +4366,22 @@ const validate = (function () {
|
|
|
3659
4366
|
errorCount++;
|
|
3660
4367
|
}
|
|
3661
4368
|
if (data.extends !== undefined && hasOwn(data, "extends")) {
|
|
3662
|
-
const
|
|
3663
|
-
const
|
|
3664
|
-
const
|
|
3665
|
-
validate.errors =
|
|
3666
|
-
if (!
|
|
4369
|
+
const err191 = validate.errors;
|
|
4370
|
+
const res191 = ref13(data.extends);
|
|
4371
|
+
const suberr202 = ref13.errors;
|
|
4372
|
+
validate.errors = err191;
|
|
4373
|
+
if (!res191) {
|
|
3667
4374
|
if (validate.errors === null)
|
|
3668
4375
|
validate.errors = [];
|
|
3669
|
-
validate.errors.push(...
|
|
4376
|
+
validate.errors.push(...suberr202.map(e => errorMerge(e, "#/properties/extends/$ref", "#/extends")));
|
|
3670
4377
|
errorCount++;
|
|
3671
4378
|
}
|
|
3672
4379
|
}
|
|
3673
|
-
for (const
|
|
3674
|
-
if (
|
|
4380
|
+
for (const key31 of Object.keys(data)) {
|
|
4381
|
+
if (key31 !== "extends") {
|
|
3675
4382
|
if (validate.errors === null)
|
|
3676
4383
|
validate.errors = [];
|
|
3677
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
4384
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key31) });
|
|
3678
4385
|
errorCount++;
|
|
3679
4386
|
}
|
|
3680
4387
|
}
|
|
@@ -3682,7 +4389,7 @@ const validate = (function () {
|
|
|
3682
4389
|
return errorCount === 0;
|
|
3683
4390
|
};
|
|
3684
4391
|
const pattern16 = new RegExp("^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
|
|
3685
|
-
const
|
|
4392
|
+
const ref28 = function validate(data) {
|
|
3686
4393
|
validate.errors = null;
|
|
3687
4394
|
let errorCount = 0;
|
|
3688
4395
|
if (!(typeof data === "string")) {
|
|
@@ -4000,14 +4707,14 @@ const validate = (function () {
|
|
|
4000
4707
|
}
|
|
4001
4708
|
for (let i = 0; i < data.canvas.elements.length; i++) {
|
|
4002
4709
|
if (data.canvas.elements[i] !== undefined && hasOwn(data.canvas.elements, i)) {
|
|
4003
|
-
const
|
|
4004
|
-
const
|
|
4005
|
-
const
|
|
4006
|
-
validate.errors =
|
|
4007
|
-
if (!
|
|
4710
|
+
const err180 = validate.errors;
|
|
4711
|
+
const res180 = ref10(data.canvas.elements[i]);
|
|
4712
|
+
const suberr190 = ref10.errors;
|
|
4713
|
+
validate.errors = err180;
|
|
4714
|
+
if (!res180) {
|
|
4008
4715
|
if (validate.errors === null)
|
|
4009
4716
|
validate.errors = [];
|
|
4010
|
-
validate.errors.push(...
|
|
4717
|
+
validate.errors.push(...suberr190.map(e => errorMerge(e, "#/properties/canvas/properties/elements/items/$ref", "#/canvas/elements/" + i)));
|
|
4011
4718
|
errorCount++;
|
|
4012
4719
|
}
|
|
4013
4720
|
}
|
|
@@ -4058,11 +4765,11 @@ const validate = (function () {
|
|
|
4058
4765
|
}
|
|
4059
4766
|
}
|
|
4060
4767
|
}
|
|
4061
|
-
for (const
|
|
4062
|
-
if (
|
|
4768
|
+
for (const key20 of Object.keys(data.canvas)) {
|
|
4769
|
+
if (key20 !== "elements" && key20 !== "width" && key20 !== "height") {
|
|
4063
4770
|
if (validate.errors === null)
|
|
4064
4771
|
validate.errors = [];
|
|
4065
|
-
validate.errors.push({ keywordLocation: "#/properties/canvas/additionalProperties", instanceLocation: "#/canvas/" + pointerPart(
|
|
4772
|
+
validate.errors.push({ keywordLocation: "#/properties/canvas/additionalProperties", instanceLocation: "#/canvas/" + pointerPart(key20) });
|
|
4066
4773
|
errorCount++;
|
|
4067
4774
|
}
|
|
4068
4775
|
}
|
|
@@ -4082,55 +4789,55 @@ const validate = (function () {
|
|
|
4082
4789
|
validate.errors.push({ keywordLocation: "#/properties/components/maxProperties", instanceLocation: "#/components" });
|
|
4083
4790
|
errorCount++;
|
|
4084
4791
|
}
|
|
4085
|
-
for (const
|
|
4086
|
-
const
|
|
4087
|
-
const
|
|
4088
|
-
const
|
|
4089
|
-
validate.errors =
|
|
4090
|
-
if (!
|
|
4792
|
+
for (const key21 of Object.keys(data.components)) {
|
|
4793
|
+
const err181 = validate.errors;
|
|
4794
|
+
const res181 = ref7(key21);
|
|
4795
|
+
const suberr191 = ref7.errors;
|
|
4796
|
+
validate.errors = err181;
|
|
4797
|
+
if (!res181) {
|
|
4091
4798
|
if (validate.errors === null)
|
|
4092
4799
|
validate.errors = [];
|
|
4093
|
-
validate.errors.push(...
|
|
4800
|
+
validate.errors.push(...suberr191.map(e => errorMerge(e, "#/properties/components/propertyNames/$ref", "#/components/" + pointerPart(key21))));
|
|
4094
4801
|
errorCount++;
|
|
4095
4802
|
}
|
|
4096
4803
|
}
|
|
4097
|
-
for (const
|
|
4098
|
-
let
|
|
4099
|
-
const
|
|
4804
|
+
for (const key22 of Object.keys(data.components)) {
|
|
4805
|
+
let suberr192 = null;
|
|
4806
|
+
const sub31 = (() => {
|
|
4100
4807
|
let errorCount = 0;
|
|
4101
|
-
const
|
|
4102
|
-
const
|
|
4103
|
-
const
|
|
4104
|
-
validate.errors =
|
|
4105
|
-
if (!
|
|
4808
|
+
const err190 = validate.errors;
|
|
4809
|
+
const res190 = ref21(data.components[key22]);
|
|
4810
|
+
const suberr201 = ref21.errors;
|
|
4811
|
+
validate.errors = err190;
|
|
4812
|
+
if (!res190) {
|
|
4106
4813
|
if (validate.errors === null)
|
|
4107
4814
|
validate.errors = [];
|
|
4108
|
-
validate.errors.push(...
|
|
4815
|
+
validate.errors.push(...suberr201.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/0/$ref", "#/components/" + pointerPart(key22))));
|
|
4109
4816
|
errorCount++;
|
|
4110
4817
|
}
|
|
4111
4818
|
return errorCount === 0;
|
|
4112
4819
|
})();
|
|
4113
|
-
if (!
|
|
4114
|
-
const
|
|
4820
|
+
if (!sub31) {
|
|
4821
|
+
const sub32 = (() => {
|
|
4115
4822
|
let errorCount = 0;
|
|
4116
|
-
const
|
|
4117
|
-
const
|
|
4118
|
-
const
|
|
4119
|
-
validate.errors =
|
|
4120
|
-
if (!
|
|
4823
|
+
const err192 = validate.errors;
|
|
4824
|
+
const res192 = ref27(data.components[key22]);
|
|
4825
|
+
const suberr203 = ref27.errors;
|
|
4826
|
+
validate.errors = err192;
|
|
4827
|
+
if (!res192) {
|
|
4121
4828
|
if (validate.errors === null)
|
|
4122
4829
|
validate.errors = [];
|
|
4123
|
-
validate.errors.push(...
|
|
4830
|
+
validate.errors.push(...suberr203.map(e => errorMerge(e, "#/properties/components/additionalProperties/anyOf/1/$ref", "#/components/" + pointerPart(key22))));
|
|
4124
4831
|
errorCount++;
|
|
4125
4832
|
}
|
|
4126
4833
|
return errorCount === 0;
|
|
4127
4834
|
})();
|
|
4128
|
-
if (!
|
|
4835
|
+
if (!sub32) {
|
|
4129
4836
|
if (validate.errors === null)
|
|
4130
4837
|
validate.errors = [];
|
|
4131
|
-
validate.errors.push({ keywordLocation: "#/properties/components/additionalProperties/anyOf", instanceLocation: "#/components/" + pointerPart(
|
|
4132
|
-
if (
|
|
4133
|
-
validate.errors.push(...
|
|
4838
|
+
validate.errors.push({ keywordLocation: "#/properties/components/additionalProperties/anyOf", instanceLocation: "#/components/" + pointerPart(key22) });
|
|
4839
|
+
if (suberr192)
|
|
4840
|
+
validate.errors.push(...suberr192);
|
|
4134
4841
|
errorCount++;
|
|
4135
4842
|
}
|
|
4136
4843
|
}
|
|
@@ -4151,115 +4858,115 @@ const validate = (function () {
|
|
|
4151
4858
|
validate.errors.push({ keywordLocation: "#/properties/colors/maxProperties", instanceLocation: "#/colors" });
|
|
4152
4859
|
errorCount++;
|
|
4153
4860
|
}
|
|
4154
|
-
for (const
|
|
4155
|
-
const
|
|
4156
|
-
const
|
|
4157
|
-
const
|
|
4158
|
-
validate.errors =
|
|
4159
|
-
if (!
|
|
4861
|
+
for (const key32 of Object.keys(data.colors)) {
|
|
4862
|
+
const err193 = validate.errors;
|
|
4863
|
+
const res193 = ref7(key32);
|
|
4864
|
+
const suberr204 = ref7.errors;
|
|
4865
|
+
validate.errors = err193;
|
|
4866
|
+
if (!res193) {
|
|
4160
4867
|
if (validate.errors === null)
|
|
4161
4868
|
validate.errors = [];
|
|
4162
|
-
validate.errors.push(...
|
|
4869
|
+
validate.errors.push(...suberr204.map(e => errorMerge(e, "#/properties/colors/propertyNames/$ref", "#/colors/" + pointerPart(key32))));
|
|
4163
4870
|
errorCount++;
|
|
4164
4871
|
}
|
|
4165
4872
|
}
|
|
4166
|
-
for (const
|
|
4167
|
-
if (!(typeof data.colors[
|
|
4873
|
+
for (const key33 of Object.keys(data.colors)) {
|
|
4874
|
+
if (!(typeof data.colors[key33] === "object" && data.colors[key33] && !Array.isArray(data.colors[key33]))) {
|
|
4168
4875
|
if (validate.errors === null)
|
|
4169
4876
|
validate.errors = [];
|
|
4170
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/type", instanceLocation: "#/colors/" + pointerPart(
|
|
4877
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/type", instanceLocation: "#/colors/" + pointerPart(key33) });
|
|
4171
4878
|
errorCount++;
|
|
4172
4879
|
}
|
|
4173
4880
|
else {
|
|
4174
|
-
if (!(data.colors[
|
|
4881
|
+
if (!(data.colors[key33].values !== undefined && hasOwn(data.colors[key33], "values"))) {
|
|
4175
4882
|
if (validate.errors === null)
|
|
4176
4883
|
validate.errors = [];
|
|
4177
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/required", instanceLocation: "#/colors/" + pointerPart(
|
|
4884
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/required", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
|
|
4178
4885
|
errorCount++;
|
|
4179
4886
|
}
|
|
4180
|
-
if (data.colors[
|
|
4181
|
-
if (!(Array.isArray(data.colors[
|
|
4887
|
+
if (data.colors[key33].values !== undefined && hasOwn(data.colors[key33], "values")) {
|
|
4888
|
+
if (!(Array.isArray(data.colors[key33].values))) {
|
|
4182
4889
|
if (validate.errors === null)
|
|
4183
4890
|
validate.errors = [];
|
|
4184
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/type", instanceLocation: "#/colors/" + pointerPart(
|
|
4891
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/type", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
|
|
4185
4892
|
errorCount++;
|
|
4186
4893
|
}
|
|
4187
4894
|
else {
|
|
4188
|
-
if (data.colors[
|
|
4895
|
+
if (data.colors[key33].values.length > 128) {
|
|
4189
4896
|
if (validate.errors === null)
|
|
4190
4897
|
validate.errors = [];
|
|
4191
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/maxItems", instanceLocation: "#/colors/" + pointerPart(
|
|
4898
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/maxItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
|
|
4192
4899
|
errorCount++;
|
|
4193
4900
|
}
|
|
4194
|
-
if (data.colors[
|
|
4901
|
+
if (data.colors[key33].values.length < 1) {
|
|
4195
4902
|
if (validate.errors === null)
|
|
4196
4903
|
validate.errors = [];
|
|
4197
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/minItems", instanceLocation: "#/colors/" + pointerPart(
|
|
4904
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/values/minItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/values" });
|
|
4198
4905
|
errorCount++;
|
|
4199
4906
|
}
|
|
4200
|
-
for (let
|
|
4201
|
-
if (data.colors[
|
|
4202
|
-
const
|
|
4203
|
-
const
|
|
4204
|
-
const
|
|
4205
|
-
validate.errors =
|
|
4206
|
-
if (!
|
|
4907
|
+
for (let p = 0; p < data.colors[key33].values.length; p++) {
|
|
4908
|
+
if (data.colors[key33].values[p] !== undefined && hasOwn(data.colors[key33].values, p)) {
|
|
4909
|
+
const err194 = validate.errors;
|
|
4910
|
+
const res194 = ref28(data.colors[key33].values[p]);
|
|
4911
|
+
const suberr205 = ref28.errors;
|
|
4912
|
+
validate.errors = err194;
|
|
4913
|
+
if (!res194) {
|
|
4207
4914
|
if (validate.errors === null)
|
|
4208
4915
|
validate.errors = [];
|
|
4209
|
-
validate.errors.push(...
|
|
4916
|
+
validate.errors.push(...suberr205.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/values/items/$ref", "#/colors/" + pointerPart(key33) + "values/" + p)));
|
|
4210
4917
|
errorCount++;
|
|
4211
4918
|
}
|
|
4212
4919
|
}
|
|
4213
4920
|
}
|
|
4214
4921
|
}
|
|
4215
4922
|
}
|
|
4216
|
-
if (data.colors[
|
|
4217
|
-
if (!(Array.isArray(data.colors[
|
|
4923
|
+
if (data.colors[key33].notEqualTo !== undefined && hasOwn(data.colors[key33], "notEqualTo")) {
|
|
4924
|
+
if (!(Array.isArray(data.colors[key33].notEqualTo))) {
|
|
4218
4925
|
if (validate.errors === null)
|
|
4219
4926
|
validate.errors = [];
|
|
4220
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/type", instanceLocation: "#/colors/" + pointerPart(
|
|
4927
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/type", instanceLocation: "#/colors/" + pointerPart(key33) + "/notEqualTo" });
|
|
4221
4928
|
errorCount++;
|
|
4222
4929
|
}
|
|
4223
4930
|
else {
|
|
4224
|
-
if (data.colors[
|
|
4931
|
+
if (data.colors[key33].notEqualTo.length > 64) {
|
|
4225
4932
|
if (validate.errors === null)
|
|
4226
4933
|
validate.errors = [];
|
|
4227
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/maxItems", instanceLocation: "#/colors/" + pointerPart(
|
|
4934
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/properties/notEqualTo/maxItems", instanceLocation: "#/colors/" + pointerPart(key33) + "/notEqualTo" });
|
|
4228
4935
|
errorCount++;
|
|
4229
4936
|
}
|
|
4230
|
-
for (let
|
|
4231
|
-
if (data.colors[
|
|
4232
|
-
const
|
|
4233
|
-
const
|
|
4234
|
-
const
|
|
4235
|
-
validate.errors =
|
|
4236
|
-
if (!
|
|
4937
|
+
for (let q = 0; q < data.colors[key33].notEqualTo.length; q++) {
|
|
4938
|
+
if (data.colors[key33].notEqualTo[q] !== undefined && hasOwn(data.colors[key33].notEqualTo, q)) {
|
|
4939
|
+
const err195 = validate.errors;
|
|
4940
|
+
const res195 = ref6(data.colors[key33].notEqualTo[q]);
|
|
4941
|
+
const suberr206 = ref6.errors;
|
|
4942
|
+
validate.errors = err195;
|
|
4943
|
+
if (!res195) {
|
|
4237
4944
|
if (validate.errors === null)
|
|
4238
4945
|
validate.errors = [];
|
|
4239
|
-
validate.errors.push(...
|
|
4946
|
+
validate.errors.push(...suberr206.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/notEqualTo/items/$ref", "#/colors/" + pointerPart(key33) + "notEqualTo/" + q)));
|
|
4240
4947
|
errorCount++;
|
|
4241
4948
|
}
|
|
4242
4949
|
}
|
|
4243
4950
|
}
|
|
4244
4951
|
}
|
|
4245
4952
|
}
|
|
4246
|
-
if (data.colors[
|
|
4247
|
-
const
|
|
4248
|
-
const
|
|
4249
|
-
const
|
|
4250
|
-
validate.errors =
|
|
4251
|
-
if (!
|
|
4953
|
+
if (data.colors[key33].contrastTo !== undefined && hasOwn(data.colors[key33], "contrastTo")) {
|
|
4954
|
+
const err196 = validate.errors;
|
|
4955
|
+
const res196 = ref6(data.colors[key33].contrastTo);
|
|
4956
|
+
const suberr207 = ref6.errors;
|
|
4957
|
+
validate.errors = err196;
|
|
4958
|
+
if (!res196) {
|
|
4252
4959
|
if (validate.errors === null)
|
|
4253
4960
|
validate.errors = [];
|
|
4254
|
-
validate.errors.push(...
|
|
4961
|
+
validate.errors.push(...suberr207.map(e => errorMerge(e, "#/properties/colors/additionalProperties/properties/contrastTo/$ref", "#/colors/" + pointerPart(key33) + "/contrastTo")));
|
|
4255
4962
|
errorCount++;
|
|
4256
4963
|
}
|
|
4257
4964
|
}
|
|
4258
|
-
for (const
|
|
4259
|
-
if (
|
|
4965
|
+
for (const key34 of Object.keys(data.colors[key33])) {
|
|
4966
|
+
if (key34 !== "values" && key34 !== "notEqualTo" && key34 !== "contrastTo") {
|
|
4260
4967
|
if (validate.errors === null)
|
|
4261
4968
|
validate.errors = [];
|
|
4262
|
-
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/additionalProperties", instanceLocation: "#/colors/" + pointerPart(
|
|
4969
|
+
validate.errors.push({ keywordLocation: "#/properties/colors/additionalProperties/additionalProperties", instanceLocation: "#/colors/" + pointerPart(key33) + "/" + pointerPart(key34) });
|
|
4263
4970
|
errorCount++;
|
|
4264
4971
|
}
|
|
4265
4972
|
}
|
|
@@ -4267,11 +4974,11 @@ const validate = (function () {
|
|
|
4267
4974
|
}
|
|
4268
4975
|
}
|
|
4269
4976
|
}
|
|
4270
|
-
for (const
|
|
4271
|
-
if (
|
|
4977
|
+
for (const key35 of Object.keys(data)) {
|
|
4978
|
+
if (key35 !== "$id" && key35 !== "$schema" && key35 !== "$comment" && key35 !== "meta" && key35 !== "attributes" && key35 !== "canvas" && key35 !== "components" && key35 !== "colors") {
|
|
4272
4979
|
if (validate.errors === null)
|
|
4273
4980
|
validate.errors = [];
|
|
4274
|
-
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(
|
|
4981
|
+
validate.errors.push({ keywordLocation: "#/additionalProperties", instanceLocation: "#/" + pointerPart(key35) });
|
|
4275
4982
|
errorCount++;
|
|
4276
4983
|
}
|
|
4277
4984
|
}
|