@dicebear/core 10.0.0-rc.1 → 10.0.0-rc.3
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/lib/Avatar.d.ts +17 -1
- package/lib/Avatar.js +23 -5
- package/lib/Error/CircularColorReferenceError.d.ts +4 -0
- package/lib/Error/CircularColorReferenceError.js +4 -0
- package/lib/Error/OptionsValidationError.d.ts +3 -0
- package/lib/Error/OptionsValidationError.js +3 -0
- package/lib/Error/StyleValidationError.d.ts +3 -0
- package/lib/Error/StyleValidationError.js +3 -0
- package/lib/Error/ValidationError.d.ts +4 -0
- package/lib/Error/ValidationError.js +4 -0
- package/lib/Options.d.ts +39 -18
- package/lib/Options.js +64 -164
- package/lib/OptionsDescriptor.d.ts +8 -0
- package/lib/OptionsDescriptor.js +14 -6
- package/lib/Prng/Fnv1a.d.ts +14 -0
- package/lib/Prng/Fnv1a.js +14 -3
- package/lib/Prng/Mulberry32.d.ts +22 -0
- package/lib/Prng/Mulberry32.js +22 -8
- package/lib/Prng.d.ts +35 -0
- package/lib/Prng.js +35 -6
- package/lib/Renderer.d.ts +11 -2
- package/lib/Renderer.js +60 -54
- package/lib/Resolver.d.ts +62 -0
- package/lib/Resolver.js +203 -0
- package/lib/Style/Canvas.d.ts +14 -0
- package/lib/Style/Canvas.js +14 -0
- package/lib/Style/Color.d.ts +14 -0
- package/lib/Style/Color.js +14 -0
- package/lib/Style/Component.d.ts +50 -1
- package/lib/Style/Component.js +88 -9
- package/lib/Style/ComponentTranslate.d.ts +10 -0
- package/lib/Style/ComponentTranslate.js +10 -0
- package/lib/Style/ComponentVariant.d.ts +10 -0
- package/lib/Style/ComponentVariant.js +10 -0
- package/lib/Style/Element.d.ts +25 -0
- package/lib/Style/Element.js +25 -0
- package/lib/Style/Meta.d.ts +16 -0
- package/lib/Style/Meta.js +16 -0
- package/lib/Style/MetaCreator.d.ts +9 -0
- package/lib/Style/MetaCreator.js +9 -0
- package/lib/Style/MetaLicense.d.ts +12 -0
- package/lib/Style/MetaLicense.js +12 -0
- package/lib/Style/MetaSource.d.ts +10 -0
- package/lib/Style/MetaSource.js +10 -0
- package/lib/Style.d.ts +37 -1
- package/lib/Style.js +90 -6
- package/lib/StyleDefinition.d.ts +8 -3
- package/lib/StyleOptions.d.ts +12 -10
- package/lib/Utils/Color.d.ts +28 -0
- package/lib/Utils/Color.js +28 -8
- package/lib/Utils/Initials.d.ts +10 -0
- package/lib/Utils/Initials.js +10 -3
- package/lib/Utils/License.d.ts +14 -0
- package/lib/Utils/License.js +14 -0
- package/lib/Utils/Xml.d.ts +6 -0
- package/lib/Utils/Xml.js +6 -0
- package/lib/Validator/OptionsValidator.js +1569 -1700
- package/lib/Validator/StyleValidator.js +3453 -3197
- package/package.json +2 -2
|
@@ -2,2171 +2,2041 @@ import { OptionsValidationError } from '../Error/OptionsValidationError.js';
|
|
|
2
2
|
function ucs2length(str) { let n = 0; for (const _ of str)
|
|
3
3
|
n++; return n; }
|
|
4
4
|
"use strict";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const schema48 = { "type": "number", "minimum": -360, "maximum": 360 };
|
|
15
|
-
const schema52 = { "type": "number", "minimum": -100, "maximum": 100 };
|
|
16
|
-
const func1 = Object.prototype.hasOwnProperty;
|
|
5
|
+
const schema11 = { "$id": "https://cdn.hopjs.net/npm/@dicebear/schema@0.14.1/dist/options.min.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "DiceBear options schema", "type": "object", "definitions": { "flip": { "type": "string", "enum": ["none", "horizontal", "vertical", "both"] }, "rotate": { "type": "number", "minimum": -360, "maximum": 360 }, "scale": { "type": "number", "minimum": 0, "maximum": 10 }, "translate": { "type": "number", "minimum": -1000, "maximum": 1000 }, "borderRadius": { "type": "number", "minimum": 0, "maximum": 50 }, "color": { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, "colorFill": { "type": "string", "enum": ["solid", "linear", "radial"] }, "colorFillStops": { "type": "integer", "minimum": 2 }, "fontFamilyName": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "maxLength": 256 }, "fontWeight": { "type": "integer", "minimum": 1, "maximum": 1000 }, "variantName": { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 }, "rotateOption": { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] }, "translateOption": { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] }, "scaleOption": { "anyOf": [{ "$ref": "#/definitions/scale" }, { "type": "array", "items": { "$ref": "#/definitions/scale" }, "minItems": 0, "maxItems": 2 }] } }, "properties": { "seed": { "type": "string", "description": "The starting value for the pseudorandom number generator (PRNG) used in the avatar generation process. This option is essential for creating unique and consistent avatars. By setting a specific seed, you ensure that the same sequence of random characteristics is applied, allowing identical avatars to be reproduced. This is especially valuable for maintaining consistency across sessions and allowing users to share or recreate their personalized avatars.", "maxLength": 1024 }, "size": { "type": "integer", "description": "Specifies the dimensions of the avatar in pixels. If no size is specified, the avatar defaults to a responsive design or scales to 100% of its container. This flexibility allows the avatar to seamlessly adapt to different screen sizes and layouts, ensuring optimal display across devices and environments.", "minimum": 1, "maximum": 4096 }, "idRandomization": { "type": "boolean", "description": "Generates random values for all IDs present in the SVG. This process ensures that while the avatar appears visually identical, the underlying code remains unique. This is particularly useful for embedding the same avatar multiple times in a document without running into duplicate ID conflicts that can interfere with styles and scripts." }, "title": { "type": "string", "description": "Specifies an accessible title for the avatar. When set, the SVG will include a <title> element and an aria-label attribute, allowing screen readers and other assistive technologies to describe the avatar to users.", "maxLength": 256 }, "flip": { "description": "Specifies how the avatar will be flipped. Options include `none` for no flip, `horizontal` for a left-to-right flip, `vertical` for an upside-down flip, and `both` for a complete flip. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/flip" }, { "type": "array", "items": { "$ref": "#/definitions/flip" }, "minItems": 0, "maxItems": 128 }] }, "fontFamily": { "description": "Specifies the font family used for text rendering. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontFamilyName" }, { "type": "array", "items": { "$ref": "#/definitions/fontFamilyName" }, "minItems": 0, "maxItems": 128 }] }, "fontWeight": { "description": "Specifies the font weight used for text rendering. The value must be an integer between 1 and 1000. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontWeight" }, { "type": "array", "items": { "$ref": "#/definitions/fontWeight" }, "minItems": 0, "maxItems": 128 }] }, "scale": { "description": "Sets the scaling of the avatar. A value of `1` corresponds to the original size of the avatar. This setting affects the size of the avatar itself, but not the size of the avatar container; any excess content will be clipped. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/scaleOption" }] }, "borderRadius": { "description": "This is the radius of the corners of the avatar. This value can be a float or an integer. A value of 0 means that the avatar has sharp corners, while larger values result in more rounded corners. The maximum value is 50, which turns the avatar into a complete circle. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/borderRadius" }, { "type": "array", "items": { "$ref": "#/definitions/borderRadius" }, "minItems": 0, "maxItems": 2 }] } }, "patternProperties": { "^[a-z][a-zA-Z0-9]*Probability$": { "type": "number", "description": "Represents the probability that a component of the avatar will be displayed. The value can be either a float or an integer, but is interpreted as a percentage. For example, a value of 0 means the part will never be displayed, while a value of 100 means it will always be displayed.", "minimum": 0, "maximum": 100 }, "^[a-z][a-zA-Z0-9]*Variant$": { "description": "Specifies which variants of the avatar part can be selected by the PRNG and their relative weights. A string or array of strings filters which variants the PRNG can choose from. An object maps variant names to non-negative weights, simultaneously filtering and weighting selection. Variant names must be camelCase identifiers.", "anyOf": [{ "$ref": "#/definitions/variantName" }, { "type": "array", "items": { "$ref": "#/definitions/variantName" }, "minItems": 0, "maxItems": 128 }, { "type": "object", "propertyNames": { "$ref": "#/definitions/variantName" }, "additionalProperties": { "type": "number", "minimum": 0 }, "minProperties": 1, "maxProperties": 512 }] }, "^[a-z][a-zA-Z0-9]*Color$": { "description": "Specifies which colors for the avatar component can be selected by the PRNG. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options. The color must be specified as a hex value.", "anyOf": [{ "$ref": "#/definitions/color" }, { "type": "array", "items": { "$ref": "#/definitions/color" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFill$": { "description": "Specifies the color fill method for the avatar component. Options include `solid` for a flat color, `linear` for a linear gradient, and `radial` for a radial gradient. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/colorFill" }, { "type": "array", "items": { "$ref": "#/definitions/colorFill" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFillStops$": { "description": "Specifies the number of color stops for gradient fills. This value is only relevant when the color fill method is set to `linear` or `radial`. The minimum value is 2. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/colorFillStops" }, { "type": "array", "items": { "$ref": "#/definitions/colorFillStops" }, "minItems": 0, "maxItems": 2 }] }, "^[a-z][a-zA-Z0-9]*ColorAngle$": { "description": "Specifies the angle for the color gradient. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^rotate$": { "description": "This is the rotation angle for the entire avatar. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation in both directions. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^translateY$": { "description": "This is the vertical translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar down and negative values move it up. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] }, "^translateX$": { "description": "This is the horizontal translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar to the right and negative values move it to the left. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] } }, "propertyNames": { "maxLength": 128 }, "additionalProperties": false, "maxProperties": 512 };
|
|
6
|
+
const schema12 = { "type": "string", "enum": ["none", "horizontal", "vertical", "both"] };
|
|
7
|
+
const schema14 = { "type": "string", "pattern": "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "maxLength": 256 };
|
|
8
|
+
const schema16 = { "type": "integer", "minimum": 1, "maximum": 1000 };
|
|
9
|
+
const schema21 = { "type": "number", "minimum": 0, "maximum": 50 };
|
|
10
|
+
const schema23 = { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 };
|
|
11
|
+
const schema26 = { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" };
|
|
12
|
+
const schema28 = { "type": "string", "enum": ["solid", "linear", "radial"] };
|
|
13
|
+
const schema30 = { "type": "integer", "minimum": 2 };
|
|
17
14
|
const func2 = ucs2length;
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
15
|
+
const func3 = Object.prototype.hasOwnProperty;
|
|
16
|
+
const pattern0 = new RegExp("^[a-z][a-zA-Z0-9]*Probability$", "u");
|
|
17
|
+
const pattern1 = new RegExp("^[a-z][a-zA-Z0-9]*Variant$", "u");
|
|
18
|
+
const pattern2 = new RegExp("^[a-z][a-zA-Z0-9]*Color$", "u");
|
|
19
|
+
const pattern3 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFill$", "u");
|
|
20
|
+
const pattern4 = new RegExp("^[a-z][a-zA-Z0-9]*ColorFillStops$", "u");
|
|
21
|
+
const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*ColorAngle$", "u");
|
|
22
|
+
const pattern6 = new RegExp("^rotate$", "u");
|
|
23
|
+
const pattern7 = new RegExp("^translateY$", "u");
|
|
24
|
+
const pattern8 = new RegExp("^translateX$", "u");
|
|
25
|
+
const pattern9 = new RegExp("^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "u");
|
|
26
|
+
const pattern13 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
|
|
27
|
+
const pattern17 = new RegExp("^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
|
|
28
|
+
const schema18 = { "anyOf": [{ "$ref": "#/definitions/scale" }, { "type": "array", "items": { "$ref": "#/definitions/scale" }, "minItems": 0, "maxItems": 2 }] };
|
|
29
|
+
const schema19 = { "type": "number", "minimum": 0, "maximum": 10 };
|
|
30
|
+
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
|
|
31
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
32
|
+
if (data > 10 || isNaN(data)) {
|
|
33
|
+
const err0 = { instancePath, schemaPath: "#/definitions/scale/maximum", keyword: "maximum", params: { comparison: "<=", limit: 10 }, message: "must be <= 10" };
|
|
34
|
+
if (vErrors === null) {
|
|
35
|
+
vErrors = [err0];
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
vErrors.push(err0);
|
|
42
39
|
}
|
|
40
|
+
errors++;
|
|
43
41
|
}
|
|
44
|
-
|
|
45
|
-
if (data
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (typeof data0 === "string") {
|
|
50
|
-
if (func2(data0) > 1024) {
|
|
51
|
-
validate20.errors = [{ instancePath: instancePath + "/seed", schemaPath: "#/properties/seed/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" }];
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
validate20.errors = [{ instancePath: instancePath + "/seed", schemaPath: "#/properties/seed/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
42
|
+
else {
|
|
43
|
+
if (data < 0 || isNaN(data)) {
|
|
44
|
+
const err1 = { instancePath, schemaPath: "#/definitions/scale/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
45
|
+
if (vErrors === null) {
|
|
46
|
+
vErrors = [err1];
|
|
59
47
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
else {
|
|
49
|
+
vErrors.push(err1);
|
|
50
|
+
}
|
|
51
|
+
errors++;
|
|
64
52
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const err2 = { instancePath, schemaPath: "#/definitions/scale/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
57
|
+
if (vErrors === null) {
|
|
58
|
+
vErrors = [err2];
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
vErrors.push(err2);
|
|
62
|
+
}
|
|
63
|
+
errors++;
|
|
64
|
+
}
|
|
65
|
+
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
66
|
+
const _errs4 = errors;
|
|
67
|
+
if (errors === _errs4) {
|
|
68
|
+
if (Array.isArray(data)) {
|
|
69
|
+
if (data.length > 2) {
|
|
70
|
+
const err3 = { instancePath, schemaPath: "#/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
71
|
+
if (vErrors === null) {
|
|
72
|
+
vErrors = [err3];
|
|
82
73
|
}
|
|
83
74
|
else {
|
|
84
|
-
|
|
75
|
+
vErrors.push(err3);
|
|
85
76
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var valid0 = _errs6 === errors;
|
|
77
|
+
errors++;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
if (data.length < 0) {
|
|
81
|
+
const err4 = { instancePath, schemaPath: "#/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
82
|
+
if (vErrors === null) {
|
|
83
|
+
vErrors = [err4];
|
|
94
84
|
}
|
|
95
85
|
else {
|
|
96
|
-
|
|
86
|
+
vErrors.push(err4);
|
|
97
87
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
88
|
+
errors++;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
var valid2 = true;
|
|
92
|
+
const len0 = data.length;
|
|
93
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
94
|
+
let data0 = data[i0];
|
|
95
|
+
const _errs6 = errors;
|
|
96
|
+
const _errs7 = errors;
|
|
97
|
+
if (errors === _errs7) {
|
|
98
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
99
|
+
if (data0 > 10 || isNaN(data0)) {
|
|
100
|
+
const err5 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/scale/maximum", keyword: "maximum", params: { comparison: "<=", limit: 10 }, message: "must be <= 10" };
|
|
101
|
+
if (vErrors === null) {
|
|
102
|
+
vErrors = [err5];
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
vErrors.push(err5);
|
|
107
106
|
}
|
|
107
|
+
errors++;
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
if (data0 < 0 || isNaN(data0)) {
|
|
111
|
+
const err6 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/scale/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
112
|
+
if (vErrors === null) {
|
|
113
|
+
vErrors = [err6];
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
vErrors.push(err6);
|
|
117
|
+
}
|
|
118
|
+
errors++;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
const err7 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/scale/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
124
|
+
if (vErrors === null) {
|
|
125
|
+
vErrors = [err7];
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
vErrors.push(err7);
|
|
112
129
|
}
|
|
130
|
+
errors++;
|
|
113
131
|
}
|
|
114
|
-
var valid0 = _errs8 === errors;
|
|
115
132
|
}
|
|
116
|
-
|
|
117
|
-
|
|
133
|
+
var valid2 = _errs6 === errors;
|
|
134
|
+
if (!valid2) {
|
|
135
|
+
break;
|
|
118
136
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
const err8 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
143
|
+
if (vErrors === null) {
|
|
144
|
+
vErrors = [err8];
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
vErrors.push(err8);
|
|
148
|
+
}
|
|
149
|
+
errors++;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
var _valid0 = _errs4 === errors;
|
|
153
|
+
valid0 = valid0 || _valid0;
|
|
154
|
+
} if (!valid0) {
|
|
155
|
+
const err9 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
156
|
+
if (vErrors === null) {
|
|
157
|
+
vErrors = [err9];
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
vErrors.push(err9);
|
|
161
|
+
}
|
|
162
|
+
errors++;
|
|
163
|
+
validate11.errors = vErrors;
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
errors = _errs0;
|
|
168
|
+
if (vErrors !== null) {
|
|
169
|
+
if (_errs0) {
|
|
170
|
+
vErrors.length = _errs0;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
vErrors = null;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
} validate11.errors = vErrors; return errors === 0; }
|
|
177
|
+
const schema32 = { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] };
|
|
178
|
+
const schema33 = { "type": "number", "minimum": -360, "maximum": 360 };
|
|
179
|
+
function validate13(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
|
|
180
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
181
|
+
if (data > 360 || isNaN(data)) {
|
|
182
|
+
const err0 = { instancePath, schemaPath: "#/definitions/rotate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 360 }, message: "must be <= 360" };
|
|
183
|
+
if (vErrors === null) {
|
|
184
|
+
vErrors = [err0];
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
vErrors.push(err0);
|
|
188
|
+
}
|
|
189
|
+
errors++;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
if (data < -360 || isNaN(data)) {
|
|
193
|
+
const err1 = { instancePath, schemaPath: "#/definitions/rotate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -360 }, message: "must be >= -360" };
|
|
194
|
+
if (vErrors === null) {
|
|
195
|
+
vErrors = [err1];
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
vErrors.push(err1);
|
|
199
|
+
}
|
|
200
|
+
errors++;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
const err2 = { instancePath, schemaPath: "#/definitions/rotate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
206
|
+
if (vErrors === null) {
|
|
207
|
+
vErrors = [err2];
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
vErrors.push(err2);
|
|
211
|
+
}
|
|
212
|
+
errors++;
|
|
213
|
+
}
|
|
214
|
+
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
215
|
+
const _errs4 = errors;
|
|
216
|
+
if (errors === _errs4) {
|
|
217
|
+
if (Array.isArray(data)) {
|
|
218
|
+
if (data.length > 2) {
|
|
219
|
+
const err3 = { instancePath, schemaPath: "#/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
220
|
+
if (vErrors === null) {
|
|
221
|
+
vErrors = [err3];
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
vErrors.push(err3);
|
|
225
|
+
}
|
|
226
|
+
errors++;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
if (data.length < 0) {
|
|
230
|
+
const err4 = { instancePath, schemaPath: "#/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
231
|
+
if (vErrors === null) {
|
|
232
|
+
vErrors = [err4];
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
vErrors.push(err4);
|
|
236
|
+
}
|
|
237
|
+
errors++;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
var valid2 = true;
|
|
241
|
+
const len0 = data.length;
|
|
242
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
243
|
+
let data0 = data[i0];
|
|
244
|
+
const _errs6 = errors;
|
|
245
|
+
const _errs7 = errors;
|
|
246
|
+
if (errors === _errs7) {
|
|
247
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
248
|
+
if (data0 > 360 || isNaN(data0)) {
|
|
249
|
+
const err5 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/rotate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 360 }, message: "must be <= 360" };
|
|
139
250
|
if (vErrors === null) {
|
|
140
|
-
vErrors = [
|
|
251
|
+
vErrors = [err5];
|
|
141
252
|
}
|
|
142
253
|
else {
|
|
143
|
-
vErrors.push(
|
|
254
|
+
vErrors.push(err5);
|
|
144
255
|
}
|
|
145
256
|
errors++;
|
|
146
257
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
passing0 = 0;
|
|
151
|
-
}
|
|
152
|
-
const _errs15 = errors;
|
|
153
|
-
if (errors === _errs15) {
|
|
154
|
-
if (Array.isArray(data4)) {
|
|
155
|
-
if (data4.length > 128) {
|
|
156
|
-
const err2 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
157
|
-
if (vErrors === null) {
|
|
158
|
-
vErrors = [err2];
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
vErrors.push(err2);
|
|
162
|
-
}
|
|
163
|
-
errors++;
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
var valid3 = true;
|
|
167
|
-
const len0 = data4.length;
|
|
168
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
169
|
-
let data5 = data4[i0];
|
|
170
|
-
const _errs17 = errors;
|
|
171
|
-
if (typeof data5 !== "string") {
|
|
172
|
-
const err3 = { instancePath: instancePath + "/flip/" + i0, schemaPath: "#/$defs/flip/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
173
|
-
if (vErrors === null) {
|
|
174
|
-
vErrors = [err3];
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
vErrors.push(err3);
|
|
178
|
-
}
|
|
179
|
-
errors++;
|
|
180
|
-
}
|
|
181
|
-
if (!((((data5 === "none") || (data5 === "horizontal")) || (data5 === "vertical")) || (data5 === "both"))) {
|
|
182
|
-
const err4 = { instancePath: instancePath + "/flip/" + i0, schemaPath: "#/$defs/flip/enum", keyword: "enum", params: { allowedValues: schema32.enum }, message: "must be equal to one of the allowed values" };
|
|
183
|
-
if (vErrors === null) {
|
|
184
|
-
vErrors = [err4];
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
vErrors.push(err4);
|
|
188
|
-
}
|
|
189
|
-
errors++;
|
|
190
|
-
}
|
|
191
|
-
var valid3 = _errs17 === errors;
|
|
192
|
-
if (!valid3) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
const err5 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
258
|
+
else {
|
|
259
|
+
if (data0 < -360 || isNaN(data0)) {
|
|
260
|
+
const err6 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/rotate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -360 }, message: "must be >= -360" };
|
|
200
261
|
if (vErrors === null) {
|
|
201
|
-
vErrors = [
|
|
262
|
+
vErrors = [err6];
|
|
202
263
|
}
|
|
203
264
|
else {
|
|
204
|
-
vErrors.push(
|
|
265
|
+
vErrors.push(err6);
|
|
205
266
|
}
|
|
206
267
|
errors++;
|
|
207
268
|
}
|
|
208
269
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
const err7 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/rotate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
273
|
+
if (vErrors === null) {
|
|
274
|
+
vErrors = [err7];
|
|
213
275
|
}
|
|
214
276
|
else {
|
|
215
|
-
|
|
216
|
-
valid1 = true;
|
|
217
|
-
passing0 = 1;
|
|
218
|
-
}
|
|
277
|
+
vErrors.push(err7);
|
|
219
278
|
}
|
|
220
|
-
|
|
221
|
-
|
|
279
|
+
errors++;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
var valid2 = _errs6 === errors;
|
|
283
|
+
if (!valid2) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
const err8 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
292
|
+
if (vErrors === null) {
|
|
293
|
+
vErrors = [err8];
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
vErrors.push(err8);
|
|
297
|
+
}
|
|
298
|
+
errors++;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
var _valid0 = _errs4 === errors;
|
|
302
|
+
valid0 = valid0 || _valid0;
|
|
303
|
+
} if (!valid0) {
|
|
304
|
+
const err9 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
305
|
+
if (vErrors === null) {
|
|
306
|
+
vErrors = [err9];
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
vErrors.push(err9);
|
|
310
|
+
}
|
|
311
|
+
errors++;
|
|
312
|
+
validate13.errors = vErrors;
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
errors = _errs0;
|
|
317
|
+
if (vErrors !== null) {
|
|
318
|
+
if (_errs0) {
|
|
319
|
+
vErrors.length = _errs0;
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
vErrors = null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
} validate13.errors = vErrors; return errors === 0; }
|
|
326
|
+
const schema35 = { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] };
|
|
327
|
+
const schema36 = { "type": "number", "minimum": -1000, "maximum": 1000 };
|
|
328
|
+
function validate16(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
|
|
329
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
330
|
+
if (data > 1000 || isNaN(data)) {
|
|
331
|
+
const err0 = { instancePath, schemaPath: "#/definitions/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000 }, message: "must be <= 1000" };
|
|
332
|
+
if (vErrors === null) {
|
|
333
|
+
vErrors = [err0];
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
vErrors.push(err0);
|
|
337
|
+
}
|
|
338
|
+
errors++;
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
if (data < -1000 || isNaN(data)) {
|
|
342
|
+
const err1 = { instancePath, schemaPath: "#/definitions/translate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -1000 }, message: "must be >= -1000" };
|
|
343
|
+
if (vErrors === null) {
|
|
344
|
+
vErrors = [err1];
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
vErrors.push(err1);
|
|
348
|
+
}
|
|
349
|
+
errors++;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
const err2 = { instancePath, schemaPath: "#/definitions/translate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
355
|
+
if (vErrors === null) {
|
|
356
|
+
vErrors = [err2];
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
vErrors.push(err2);
|
|
360
|
+
}
|
|
361
|
+
errors++;
|
|
362
|
+
}
|
|
363
|
+
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
364
|
+
const _errs4 = errors;
|
|
365
|
+
if (errors === _errs4) {
|
|
366
|
+
if (Array.isArray(data)) {
|
|
367
|
+
if (data.length > 2) {
|
|
368
|
+
const err3 = { instancePath, schemaPath: "#/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
369
|
+
if (vErrors === null) {
|
|
370
|
+
vErrors = [err3];
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
vErrors.push(err3);
|
|
374
|
+
}
|
|
375
|
+
errors++;
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
if (data.length < 0) {
|
|
379
|
+
const err4 = { instancePath, schemaPath: "#/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
380
|
+
if (vErrors === null) {
|
|
381
|
+
vErrors = [err4];
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
vErrors.push(err4);
|
|
385
|
+
}
|
|
386
|
+
errors++;
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
var valid2 = true;
|
|
390
|
+
const len0 = data.length;
|
|
391
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
392
|
+
let data0 = data[i0];
|
|
393
|
+
const _errs6 = errors;
|
|
394
|
+
const _errs7 = errors;
|
|
395
|
+
if (errors === _errs7) {
|
|
396
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
397
|
+
if (data0 > 1000 || isNaN(data0)) {
|
|
398
|
+
const err5 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000 }, message: "must be <= 1000" };
|
|
222
399
|
if (vErrors === null) {
|
|
223
|
-
vErrors = [
|
|
400
|
+
vErrors = [err5];
|
|
224
401
|
}
|
|
225
402
|
else {
|
|
226
|
-
vErrors.push(
|
|
403
|
+
vErrors.push(err5);
|
|
227
404
|
}
|
|
228
405
|
errors++;
|
|
229
|
-
validate20.errors = vErrors;
|
|
230
|
-
return false;
|
|
231
406
|
}
|
|
232
407
|
else {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (
|
|
236
|
-
vErrors
|
|
408
|
+
if (data0 < -1000 || isNaN(data0)) {
|
|
409
|
+
const err6 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/translate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -1000 }, message: "must be >= -1000" };
|
|
410
|
+
if (vErrors === null) {
|
|
411
|
+
vErrors = [err6];
|
|
237
412
|
}
|
|
238
413
|
else {
|
|
239
|
-
vErrors
|
|
414
|
+
vErrors.push(err6);
|
|
240
415
|
}
|
|
416
|
+
errors++;
|
|
241
417
|
}
|
|
242
418
|
}
|
|
243
|
-
var valid0 = _errs10 === errors;
|
|
244
419
|
}
|
|
245
420
|
else {
|
|
246
|
-
|
|
421
|
+
const err7 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/translate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
422
|
+
if (vErrors === null) {
|
|
423
|
+
vErrors = [err7];
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
vErrors.push(err7);
|
|
427
|
+
}
|
|
428
|
+
errors++;
|
|
247
429
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
430
|
+
}
|
|
431
|
+
var valid2 = _errs6 === errors;
|
|
432
|
+
if (!valid2) {
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
const err8 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
441
|
+
if (vErrors === null) {
|
|
442
|
+
vErrors = [err8];
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
vErrors.push(err8);
|
|
446
|
+
}
|
|
447
|
+
errors++;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
var _valid0 = _errs4 === errors;
|
|
451
|
+
valid0 = valid0 || _valid0;
|
|
452
|
+
} if (!valid0) {
|
|
453
|
+
const err9 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
454
|
+
if (vErrors === null) {
|
|
455
|
+
vErrors = [err9];
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
vErrors.push(err9);
|
|
459
|
+
}
|
|
460
|
+
errors++;
|
|
461
|
+
validate16.errors = vErrors;
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
errors = _errs0;
|
|
466
|
+
if (vErrors !== null) {
|
|
467
|
+
if (_errs0) {
|
|
468
|
+
vErrors.length = _errs0;
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
vErrors = null;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
} validate16.errors = vErrors; return errors === 0; }
|
|
475
|
+
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="https://cdn.hopjs.net/npm/@dicebear/schema@0.14.1/dist/options.min.json" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
476
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
477
|
+
if (Object.keys(data).length > 512) {
|
|
478
|
+
validate10.errors = [{ instancePath, schemaPath: "#/maxProperties", keyword: "maxProperties", params: { limit: 512 }, message: "must NOT have more than 512 properties" }];
|
|
479
|
+
return false;
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
for (const key0 in data) {
|
|
483
|
+
const _errs1 = errors;
|
|
484
|
+
if (typeof key0 === "string") {
|
|
485
|
+
if (func2(key0) > 128) {
|
|
486
|
+
const err0 = { instancePath, schemaPath: "#/propertyNames/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters", propertyName: key0 };
|
|
487
|
+
if (vErrors === null) {
|
|
488
|
+
vErrors = [err0];
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
vErrors.push(err0);
|
|
492
|
+
}
|
|
493
|
+
errors++;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
var valid0 = _errs1 === errors;
|
|
497
|
+
if (!valid0) {
|
|
498
|
+
const err1 = { instancePath, schemaPath: "#/propertyNames", keyword: "propertyNames", params: { propertyName: key0 }, message: "property name must be valid" };
|
|
499
|
+
if (vErrors === null) {
|
|
500
|
+
vErrors = [err1];
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
vErrors.push(err1);
|
|
504
|
+
}
|
|
505
|
+
errors++;
|
|
506
|
+
validate10.errors = vErrors;
|
|
507
|
+
return false;
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (valid0) {
|
|
512
|
+
const _errs2 = errors;
|
|
513
|
+
for (const key1 in data) {
|
|
514
|
+
if (!((((((((((func3.call(schema11.properties, key1)) || (pattern0.test(key1))) || (pattern1.test(key1))) || (pattern2.test(key1))) || (pattern3.test(key1))) || (pattern4.test(key1))) || (pattern5.test(key1))) || (pattern6.test(key1))) || (pattern7.test(key1))) || (pattern8.test(key1)))) {
|
|
515
|
+
validate10.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
516
|
+
return false;
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if (_errs2 === errors) {
|
|
521
|
+
if (data.seed !== undefined) {
|
|
522
|
+
let data0 = data.seed;
|
|
523
|
+
const _errs3 = errors;
|
|
524
|
+
if (errors === _errs3) {
|
|
525
|
+
if (typeof data0 === "string") {
|
|
526
|
+
if (func2(data0) > 1024) {
|
|
527
|
+
validate10.errors = [{ instancePath: instancePath + "/seed", schemaPath: "#/properties/seed/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" }];
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
validate10.errors = [{ instancePath: instancePath + "/seed", schemaPath: "#/properties/seed/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
var valid1 = _errs3 === errors;
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
var valid1 = true;
|
|
540
|
+
}
|
|
541
|
+
if (valid1) {
|
|
542
|
+
if (data.size !== undefined) {
|
|
543
|
+
let data1 = data.size;
|
|
544
|
+
const _errs5 = errors;
|
|
545
|
+
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
546
|
+
validate10.errors = [{ instancePath: instancePath + "/size", schemaPath: "#/properties/size/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
547
|
+
return false;
|
|
548
|
+
}
|
|
549
|
+
if (errors === _errs5) {
|
|
550
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
551
|
+
if (data1 > 4096 || isNaN(data1)) {
|
|
552
|
+
validate10.errors = [{ instancePath: instancePath + "/size", schemaPath: "#/properties/size/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4096 }, message: "must be <= 4096" }];
|
|
553
|
+
return false;
|
|
352
554
|
}
|
|
353
555
|
else {
|
|
354
|
-
if (
|
|
355
|
-
|
|
356
|
-
|
|
556
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
557
|
+
validate10.errors = [{ instancePath: instancePath + "/size", schemaPath: "#/properties/size/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
558
|
+
return false;
|
|
357
559
|
}
|
|
358
560
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
var valid1 = _errs5 === errors;
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
var valid1 = true;
|
|
567
|
+
}
|
|
568
|
+
if (valid1) {
|
|
569
|
+
if (data.idRandomization !== undefined) {
|
|
570
|
+
const _errs7 = errors;
|
|
571
|
+
if (typeof data.idRandomization !== "boolean") {
|
|
572
|
+
validate10.errors = [{ instancePath: instancePath + "/idRandomization", schemaPath: "#/properties/idRandomization/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
var valid1 = _errs7 === errors;
|
|
576
|
+
}
|
|
577
|
+
else {
|
|
578
|
+
var valid1 = true;
|
|
579
|
+
}
|
|
580
|
+
if (valid1) {
|
|
581
|
+
if (data.title !== undefined) {
|
|
582
|
+
let data3 = data.title;
|
|
583
|
+
const _errs9 = errors;
|
|
584
|
+
if (errors === _errs9) {
|
|
585
|
+
if (typeof data3 === "string") {
|
|
586
|
+
if (func2(data3) > 256) {
|
|
587
|
+
validate10.errors = [{ instancePath: instancePath + "/title", schemaPath: "#/properties/title/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
363
590
|
}
|
|
364
591
|
else {
|
|
365
|
-
|
|
592
|
+
validate10.errors = [{ instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
593
|
+
return false;
|
|
366
594
|
}
|
|
367
|
-
errors++;
|
|
368
|
-
validate20.errors = vErrors;
|
|
369
|
-
return false;
|
|
370
595
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
596
|
+
var valid1 = _errs9 === errors;
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
var valid1 = true;
|
|
600
|
+
}
|
|
601
|
+
if (valid1) {
|
|
602
|
+
if (data.flip !== undefined) {
|
|
603
|
+
let data4 = data.flip;
|
|
604
|
+
const _errs11 = errors;
|
|
605
|
+
const _errs12 = errors;
|
|
606
|
+
let valid2 = false;
|
|
607
|
+
const _errs13 = errors;
|
|
608
|
+
if (typeof data4 !== "string") {
|
|
609
|
+
const err2 = { instancePath: instancePath + "/flip", schemaPath: "#/definitions/flip/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
610
|
+
if (vErrors === null) {
|
|
611
|
+
vErrors = [err2];
|
|
376
612
|
}
|
|
377
613
|
else {
|
|
378
|
-
vErrors
|
|
614
|
+
vErrors.push(err2);
|
|
379
615
|
}
|
|
616
|
+
errors++;
|
|
380
617
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
var valid0 = true;
|
|
386
|
-
}
|
|
387
|
-
if (valid0) {
|
|
388
|
-
if (data.fontWeight !== undefined) {
|
|
389
|
-
let data8 = data.fontWeight;
|
|
390
|
-
const _errs30 = errors;
|
|
391
|
-
const _errs31 = errors;
|
|
392
|
-
let valid9 = false;
|
|
393
|
-
let passing2 = null;
|
|
394
|
-
const _errs32 = errors;
|
|
395
|
-
const _errs33 = errors;
|
|
396
|
-
if (!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) {
|
|
397
|
-
const err14 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/$defs/fontWeight/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
618
|
+
if (!((((data4 === "none") || (data4 === "horizontal")) || (data4 === "vertical")) || (data4 === "both"))) {
|
|
619
|
+
const err3 = { instancePath: instancePath + "/flip", schemaPath: "#/definitions/flip/enum", keyword: "enum", params: { allowedValues: schema12.enum }, message: "must be equal to one of the allowed values" };
|
|
398
620
|
if (vErrors === null) {
|
|
399
|
-
vErrors = [
|
|
621
|
+
vErrors = [err3];
|
|
400
622
|
}
|
|
401
623
|
else {
|
|
402
|
-
vErrors.push(
|
|
624
|
+
vErrors.push(err3);
|
|
403
625
|
}
|
|
404
626
|
errors++;
|
|
405
627
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
vErrors.push(err15);
|
|
415
|
-
}
|
|
416
|
-
errors++;
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
419
|
-
if (data8 < 1 || isNaN(data8)) {
|
|
420
|
-
const err16 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/$defs/fontWeight/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
628
|
+
var _valid0 = _errs13 === errors;
|
|
629
|
+
valid2 = valid2 || _valid0;
|
|
630
|
+
if (!valid2) {
|
|
631
|
+
const _errs16 = errors;
|
|
632
|
+
if (errors === _errs16) {
|
|
633
|
+
if (Array.isArray(data4)) {
|
|
634
|
+
if (data4.length > 128) {
|
|
635
|
+
const err4 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
421
636
|
if (vErrors === null) {
|
|
422
|
-
vErrors = [
|
|
637
|
+
vErrors = [err4];
|
|
423
638
|
}
|
|
424
639
|
else {
|
|
425
|
-
vErrors.push(
|
|
640
|
+
vErrors.push(err4);
|
|
426
641
|
}
|
|
427
642
|
errors++;
|
|
428
643
|
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
var _valid2 = _errs32 === errors;
|
|
433
|
-
if (_valid2) {
|
|
434
|
-
valid9 = true;
|
|
435
|
-
passing2 = 0;
|
|
436
|
-
}
|
|
437
|
-
const _errs35 = errors;
|
|
438
|
-
if (errors === _errs35) {
|
|
439
|
-
if (Array.isArray(data8)) {
|
|
440
|
-
if (data8.length > 128) {
|
|
441
|
-
const err17 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
442
|
-
if (vErrors === null) {
|
|
443
|
-
vErrors = [err17];
|
|
444
|
-
}
|
|
445
644
|
else {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
errors++;
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
var valid11 = true;
|
|
452
|
-
const len2 = data8.length;
|
|
453
|
-
for (let i2 = 0; i2 < len2; i2++) {
|
|
454
|
-
let data9 = data8[i2];
|
|
455
|
-
const _errs37 = errors;
|
|
456
|
-
const _errs38 = errors;
|
|
457
|
-
if (!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) {
|
|
458
|
-
const err18 = { instancePath: instancePath + "/fontWeight/" + i2, schemaPath: "#/$defs/fontWeight/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
645
|
+
if (data4.length < 0) {
|
|
646
|
+
const err5 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
459
647
|
if (vErrors === null) {
|
|
460
|
-
vErrors = [
|
|
648
|
+
vErrors = [err5];
|
|
461
649
|
}
|
|
462
650
|
else {
|
|
463
|
-
vErrors.push(
|
|
651
|
+
vErrors.push(err5);
|
|
464
652
|
}
|
|
465
653
|
errors++;
|
|
466
654
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
655
|
+
else {
|
|
656
|
+
var valid4 = true;
|
|
657
|
+
const len0 = data4.length;
|
|
658
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
659
|
+
let data5 = data4[i0];
|
|
660
|
+
const _errs18 = errors;
|
|
661
|
+
if (typeof data5 !== "string") {
|
|
662
|
+
const err6 = { instancePath: instancePath + "/flip/" + i0, schemaPath: "#/definitions/flip/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
471
663
|
if (vErrors === null) {
|
|
472
|
-
vErrors = [
|
|
664
|
+
vErrors = [err6];
|
|
473
665
|
}
|
|
474
666
|
else {
|
|
475
|
-
vErrors.push(
|
|
667
|
+
vErrors.push(err6);
|
|
476
668
|
}
|
|
477
669
|
errors++;
|
|
478
670
|
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
vErrors.push(err20);
|
|
487
|
-
}
|
|
488
|
-
errors++;
|
|
671
|
+
if (!((((data5 === "none") || (data5 === "horizontal")) || (data5 === "vertical")) || (data5 === "both"))) {
|
|
672
|
+
const err7 = { instancePath: instancePath + "/flip/" + i0, schemaPath: "#/definitions/flip/enum", keyword: "enum", params: { allowedValues: schema12.enum }, message: "must be equal to one of the allowed values" };
|
|
673
|
+
if (vErrors === null) {
|
|
674
|
+
vErrors = [err7];
|
|
675
|
+
}
|
|
676
|
+
else {
|
|
677
|
+
vErrors.push(err7);
|
|
489
678
|
}
|
|
679
|
+
errors++;
|
|
680
|
+
}
|
|
681
|
+
var valid4 = _errs18 === errors;
|
|
682
|
+
if (!valid4) {
|
|
683
|
+
break;
|
|
490
684
|
}
|
|
491
685
|
}
|
|
492
686
|
}
|
|
493
|
-
var valid11 = _errs37 === errors;
|
|
494
|
-
if (!valid11) {
|
|
495
|
-
break;
|
|
496
|
-
}
|
|
497
687
|
}
|
|
498
688
|
}
|
|
499
|
-
}
|
|
500
|
-
else {
|
|
501
|
-
const err21 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
502
|
-
if (vErrors === null) {
|
|
503
|
-
vErrors = [err21];
|
|
504
|
-
}
|
|
505
689
|
else {
|
|
506
|
-
|
|
690
|
+
const err8 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
691
|
+
if (vErrors === null) {
|
|
692
|
+
vErrors = [err8];
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
vErrors.push(err8);
|
|
696
|
+
}
|
|
697
|
+
errors++;
|
|
507
698
|
}
|
|
508
|
-
errors++;
|
|
509
699
|
}
|
|
700
|
+
var _valid0 = _errs16 === errors;
|
|
701
|
+
valid2 = valid2 || _valid0;
|
|
510
702
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
valid9 = false;
|
|
514
|
-
passing2 = [passing2, 1];
|
|
515
|
-
}
|
|
516
|
-
else {
|
|
517
|
-
if (_valid2) {
|
|
518
|
-
valid9 = true;
|
|
519
|
-
passing2 = 1;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
if (!valid9) {
|
|
523
|
-
const err22 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
703
|
+
if (!valid2) {
|
|
704
|
+
const err9 = { instancePath: instancePath + "/flip", schemaPath: "#/properties/flip/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
524
705
|
if (vErrors === null) {
|
|
525
|
-
vErrors = [
|
|
706
|
+
vErrors = [err9];
|
|
526
707
|
}
|
|
527
708
|
else {
|
|
528
|
-
vErrors.push(
|
|
709
|
+
vErrors.push(err9);
|
|
529
710
|
}
|
|
530
711
|
errors++;
|
|
531
|
-
|
|
712
|
+
validate10.errors = vErrors;
|
|
532
713
|
return false;
|
|
533
714
|
}
|
|
534
715
|
else {
|
|
535
|
-
errors =
|
|
716
|
+
errors = _errs12;
|
|
536
717
|
if (vErrors !== null) {
|
|
537
|
-
if (
|
|
538
|
-
vErrors.length =
|
|
718
|
+
if (_errs12) {
|
|
719
|
+
vErrors.length = _errs12;
|
|
539
720
|
}
|
|
540
721
|
else {
|
|
541
722
|
vErrors = null;
|
|
542
723
|
}
|
|
543
724
|
}
|
|
544
725
|
}
|
|
545
|
-
var
|
|
726
|
+
var valid1 = _errs11 === errors;
|
|
546
727
|
}
|
|
547
728
|
else {
|
|
548
|
-
var
|
|
729
|
+
var valid1 = true;
|
|
549
730
|
}
|
|
550
|
-
if (
|
|
551
|
-
if (data.
|
|
552
|
-
let
|
|
553
|
-
const
|
|
554
|
-
const
|
|
555
|
-
let
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
const err23 = { instancePath: instancePath + "/scale", schemaPath: "#/$defs/scale/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
731
|
+
if (valid1) {
|
|
732
|
+
if (data.fontFamily !== undefined) {
|
|
733
|
+
let data6 = data.fontFamily;
|
|
734
|
+
const _errs21 = errors;
|
|
735
|
+
const _errs22 = errors;
|
|
736
|
+
let valid6 = false;
|
|
737
|
+
const _errs23 = errors;
|
|
738
|
+
const _errs24 = errors;
|
|
739
|
+
if (errors === _errs24) {
|
|
740
|
+
if (typeof data6 === "string") {
|
|
741
|
+
if (func2(data6) > 256) {
|
|
742
|
+
const err10 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/definitions/fontFamilyName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
563
743
|
if (vErrors === null) {
|
|
564
|
-
vErrors = [
|
|
744
|
+
vErrors = [err10];
|
|
565
745
|
}
|
|
566
746
|
else {
|
|
567
|
-
vErrors.push(
|
|
747
|
+
vErrors.push(err10);
|
|
568
748
|
}
|
|
569
749
|
errors++;
|
|
570
750
|
}
|
|
571
|
-
}
|
|
572
|
-
else {
|
|
573
|
-
const err24 = { instancePath: instancePath + "/scale", schemaPath: "#/$defs/scale/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
574
|
-
if (vErrors === null) {
|
|
575
|
-
vErrors = [err24];
|
|
576
|
-
}
|
|
577
751
|
else {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
583
|
-
var _valid3 = _errs42 === errors;
|
|
584
|
-
if (_valid3) {
|
|
585
|
-
valid13 = true;
|
|
586
|
-
passing3 = 0;
|
|
587
|
-
}
|
|
588
|
-
const _errs45 = errors;
|
|
589
|
-
if (errors === _errs45) {
|
|
590
|
-
if (Array.isArray(data10)) {
|
|
591
|
-
if (data10.length > 2) {
|
|
592
|
-
const err25 = { instancePath: instancePath + "/scale", schemaPath: "#/properties/scale/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
593
|
-
if (vErrors === null) {
|
|
594
|
-
vErrors = [err25];
|
|
595
|
-
}
|
|
596
|
-
else {
|
|
597
|
-
vErrors.push(err25);
|
|
598
|
-
}
|
|
599
|
-
errors++;
|
|
600
|
-
}
|
|
601
|
-
else {
|
|
602
|
-
var valid15 = true;
|
|
603
|
-
const len3 = data10.length;
|
|
604
|
-
for (let i3 = 0; i3 < len3; i3++) {
|
|
605
|
-
let data11 = data10[i3];
|
|
606
|
-
const _errs47 = errors;
|
|
607
|
-
const _errs48 = errors;
|
|
608
|
-
if (errors === _errs48) {
|
|
609
|
-
if ((typeof data11 == "number") && (isFinite(data11))) {
|
|
610
|
-
if (data11 < 0 || isNaN(data11)) {
|
|
611
|
-
const err26 = { instancePath: instancePath + "/scale/" + i3, schemaPath: "#/$defs/scale/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
612
|
-
if (vErrors === null) {
|
|
613
|
-
vErrors = [err26];
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
vErrors.push(err26);
|
|
617
|
-
}
|
|
618
|
-
errors++;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
else {
|
|
622
|
-
const err27 = { instancePath: instancePath + "/scale/" + i3, schemaPath: "#/$defs/scale/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
623
|
-
if (vErrors === null) {
|
|
624
|
-
vErrors = [err27];
|
|
625
|
-
}
|
|
626
|
-
else {
|
|
627
|
-
vErrors.push(err27);
|
|
628
|
-
}
|
|
629
|
-
errors++;
|
|
630
|
-
}
|
|
752
|
+
if (!pattern9.test(data6)) {
|
|
753
|
+
const err11 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/definitions/fontFamilyName/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$" }, message: "must match pattern \"" + "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$" + "\"" };
|
|
754
|
+
if (vErrors === null) {
|
|
755
|
+
vErrors = [err11];
|
|
631
756
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
break;
|
|
757
|
+
else {
|
|
758
|
+
vErrors.push(err11);
|
|
635
759
|
}
|
|
760
|
+
errors++;
|
|
636
761
|
}
|
|
637
762
|
}
|
|
638
763
|
}
|
|
639
764
|
else {
|
|
640
|
-
const
|
|
765
|
+
const err12 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/definitions/fontFamilyName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
641
766
|
if (vErrors === null) {
|
|
642
|
-
vErrors = [
|
|
767
|
+
vErrors = [err12];
|
|
643
768
|
}
|
|
644
769
|
else {
|
|
645
|
-
vErrors.push(
|
|
770
|
+
vErrors.push(err12);
|
|
646
771
|
}
|
|
647
772
|
errors++;
|
|
648
773
|
}
|
|
649
774
|
}
|
|
650
|
-
var
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
if (valid0) {
|
|
690
|
-
if (data.borderRadius !== undefined) {
|
|
691
|
-
let data12 = data.borderRadius;
|
|
692
|
-
const _errs50 = errors;
|
|
693
|
-
const _errs51 = errors;
|
|
694
|
-
let valid17 = false;
|
|
695
|
-
let passing4 = null;
|
|
696
|
-
const _errs52 = errors;
|
|
697
|
-
const _errs53 = errors;
|
|
698
|
-
if (errors === _errs53) {
|
|
699
|
-
if ((typeof data12 == "number") && (isFinite(data12))) {
|
|
700
|
-
if (data12 > 50 || isNaN(data12)) {
|
|
701
|
-
const err30 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/$defs/borderRadius/maximum", keyword: "maximum", params: { comparison: "<=", limit: 50 }, message: "must be <= 50" };
|
|
702
|
-
if (vErrors === null) {
|
|
703
|
-
vErrors = [err30];
|
|
704
|
-
}
|
|
705
|
-
else {
|
|
706
|
-
vErrors.push(err30);
|
|
707
|
-
}
|
|
708
|
-
errors++;
|
|
709
|
-
}
|
|
710
|
-
else {
|
|
711
|
-
if (data12 < 0 || isNaN(data12)) {
|
|
712
|
-
const err31 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/$defs/borderRadius/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
713
|
-
if (vErrors === null) {
|
|
714
|
-
vErrors = [err31];
|
|
715
|
-
}
|
|
716
|
-
else {
|
|
717
|
-
vErrors.push(err31);
|
|
718
|
-
}
|
|
719
|
-
errors++;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
const err32 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/$defs/borderRadius/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
725
|
-
if (vErrors === null) {
|
|
726
|
-
vErrors = [err32];
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
vErrors.push(err32);
|
|
730
|
-
}
|
|
731
|
-
errors++;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
var _valid4 = _errs52 === errors;
|
|
735
|
-
if (_valid4) {
|
|
736
|
-
valid17 = true;
|
|
737
|
-
passing4 = 0;
|
|
738
|
-
}
|
|
739
|
-
const _errs55 = errors;
|
|
740
|
-
if (errors === _errs55) {
|
|
741
|
-
if (Array.isArray(data12)) {
|
|
742
|
-
if (data12.length > 2) {
|
|
743
|
-
const err33 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/properties/borderRadius/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
744
|
-
if (vErrors === null) {
|
|
745
|
-
vErrors = [err33];
|
|
746
|
-
}
|
|
747
|
-
else {
|
|
748
|
-
vErrors.push(err33);
|
|
749
|
-
}
|
|
750
|
-
errors++;
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
var valid19 = true;
|
|
754
|
-
const len4 = data12.length;
|
|
755
|
-
for (let i4 = 0; i4 < len4; i4++) {
|
|
756
|
-
let data13 = data12[i4];
|
|
757
|
-
const _errs57 = errors;
|
|
758
|
-
const _errs58 = errors;
|
|
759
|
-
if (errors === _errs58) {
|
|
760
|
-
if ((typeof data13 == "number") && (isFinite(data13))) {
|
|
761
|
-
if (data13 > 50 || isNaN(data13)) {
|
|
762
|
-
const err34 = { instancePath: instancePath + "/borderRadius/" + i4, schemaPath: "#/$defs/borderRadius/maximum", keyword: "maximum", params: { comparison: "<=", limit: 50 }, message: "must be <= 50" };
|
|
763
|
-
if (vErrors === null) {
|
|
764
|
-
vErrors = [err34];
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
vErrors.push(err34);
|
|
768
|
-
}
|
|
769
|
-
errors++;
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
if (data13 < 0 || isNaN(data13)) {
|
|
773
|
-
const err35 = { instancePath: instancePath + "/borderRadius/" + i4, schemaPath: "#/$defs/borderRadius/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
775
|
+
var _valid1 = _errs23 === errors;
|
|
776
|
+
valid6 = valid6 || _valid1;
|
|
777
|
+
if (!valid6) {
|
|
778
|
+
const _errs26 = errors;
|
|
779
|
+
if (errors === _errs26) {
|
|
780
|
+
if (Array.isArray(data6)) {
|
|
781
|
+
if (data6.length > 128) {
|
|
782
|
+
const err13 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
783
|
+
if (vErrors === null) {
|
|
784
|
+
vErrors = [err13];
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
vErrors.push(err13);
|
|
788
|
+
}
|
|
789
|
+
errors++;
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
if (data6.length < 0) {
|
|
793
|
+
const err14 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
794
|
+
if (vErrors === null) {
|
|
795
|
+
vErrors = [err14];
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
vErrors.push(err14);
|
|
799
|
+
}
|
|
800
|
+
errors++;
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
var valid8 = true;
|
|
804
|
+
const len1 = data6.length;
|
|
805
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
806
|
+
let data7 = data6[i1];
|
|
807
|
+
const _errs28 = errors;
|
|
808
|
+
const _errs29 = errors;
|
|
809
|
+
if (errors === _errs29) {
|
|
810
|
+
if (typeof data7 === "string") {
|
|
811
|
+
if (func2(data7) > 256) {
|
|
812
|
+
const err15 = { instancePath: instancePath + "/fontFamily/" + i1, schemaPath: "#/definitions/fontFamilyName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
774
813
|
if (vErrors === null) {
|
|
775
|
-
vErrors = [
|
|
814
|
+
vErrors = [err15];
|
|
776
815
|
}
|
|
777
816
|
else {
|
|
778
|
-
vErrors.push(
|
|
817
|
+
vErrors.push(err15);
|
|
779
818
|
}
|
|
780
819
|
errors++;
|
|
781
820
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
821
|
+
else {
|
|
822
|
+
if (!pattern9.test(data7)) {
|
|
823
|
+
const err16 = { instancePath: instancePath + "/fontFamily/" + i1, schemaPath: "#/definitions/fontFamilyName/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$" }, message: "must match pattern \"" + "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$" + "\"" };
|
|
824
|
+
if (vErrors === null) {
|
|
825
|
+
vErrors = [err16];
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
vErrors.push(err16);
|
|
829
|
+
}
|
|
830
|
+
errors++;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
788
833
|
}
|
|
789
834
|
else {
|
|
790
|
-
|
|
835
|
+
const err17 = { instancePath: instancePath + "/fontFamily/" + i1, schemaPath: "#/definitions/fontFamilyName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
836
|
+
if (vErrors === null) {
|
|
837
|
+
vErrors = [err17];
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
vErrors.push(err17);
|
|
841
|
+
}
|
|
842
|
+
errors++;
|
|
791
843
|
}
|
|
792
|
-
errors++;
|
|
793
844
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
845
|
+
var valid8 = _errs28 === errors;
|
|
846
|
+
if (!valid8) {
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
798
849
|
}
|
|
799
850
|
}
|
|
800
851
|
}
|
|
801
852
|
}
|
|
802
853
|
else {
|
|
803
|
-
const
|
|
854
|
+
const err18 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
804
855
|
if (vErrors === null) {
|
|
805
|
-
vErrors = [
|
|
856
|
+
vErrors = [err18];
|
|
806
857
|
}
|
|
807
858
|
else {
|
|
808
|
-
vErrors.push(
|
|
859
|
+
vErrors.push(err18);
|
|
809
860
|
}
|
|
810
861
|
errors++;
|
|
811
862
|
}
|
|
812
863
|
}
|
|
813
|
-
var
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
864
|
+
var _valid1 = _errs26 === errors;
|
|
865
|
+
valid6 = valid6 || _valid1;
|
|
866
|
+
}
|
|
867
|
+
if (!valid6) {
|
|
868
|
+
const err19 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
869
|
+
if (vErrors === null) {
|
|
870
|
+
vErrors = [err19];
|
|
817
871
|
}
|
|
818
872
|
else {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
873
|
+
vErrors.push(err19);
|
|
874
|
+
}
|
|
875
|
+
errors++;
|
|
876
|
+
validate10.errors = vErrors;
|
|
877
|
+
return false;
|
|
878
|
+
}
|
|
879
|
+
else {
|
|
880
|
+
errors = _errs22;
|
|
881
|
+
if (vErrors !== null) {
|
|
882
|
+
if (_errs22) {
|
|
883
|
+
vErrors.length = _errs22;
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
vErrors = null;
|
|
822
887
|
}
|
|
823
888
|
}
|
|
824
|
-
|
|
825
|
-
|
|
889
|
+
}
|
|
890
|
+
var valid1 = _errs21 === errors;
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
var valid1 = true;
|
|
894
|
+
}
|
|
895
|
+
if (valid1) {
|
|
896
|
+
if (data.fontWeight !== undefined) {
|
|
897
|
+
let data8 = data.fontWeight;
|
|
898
|
+
const _errs31 = errors;
|
|
899
|
+
const _errs32 = errors;
|
|
900
|
+
let valid10 = false;
|
|
901
|
+
const _errs33 = errors;
|
|
902
|
+
const _errs34 = errors;
|
|
903
|
+
if (!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) {
|
|
904
|
+
const err20 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/definitions/fontWeight/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
826
905
|
if (vErrors === null) {
|
|
827
|
-
vErrors = [
|
|
906
|
+
vErrors = [err20];
|
|
828
907
|
}
|
|
829
908
|
else {
|
|
830
|
-
vErrors.push(
|
|
909
|
+
vErrors.push(err20);
|
|
831
910
|
}
|
|
832
911
|
errors++;
|
|
833
|
-
validate20.errors = vErrors;
|
|
834
|
-
return false;
|
|
835
912
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
vErrors
|
|
913
|
+
if (errors === _errs34) {
|
|
914
|
+
if ((typeof data8 == "number") && (isFinite(data8))) {
|
|
915
|
+
if (data8 > 1000 || isNaN(data8)) {
|
|
916
|
+
const err21 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/definitions/fontWeight/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000 }, message: "must be <= 1000" };
|
|
917
|
+
if (vErrors === null) {
|
|
918
|
+
vErrors = [err21];
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
vErrors.push(err21);
|
|
922
|
+
}
|
|
923
|
+
errors++;
|
|
841
924
|
}
|
|
842
925
|
else {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
var valid0 = _errs50 === errors;
|
|
848
|
-
}
|
|
849
|
-
else {
|
|
850
|
-
var valid0 = true;
|
|
851
|
-
}
|
|
852
|
-
if (valid0) {
|
|
853
|
-
var valid21 = true;
|
|
854
|
-
for (const key1 in data) {
|
|
855
|
-
if (pattern4.test(key1)) {
|
|
856
|
-
let data14 = data[key1];
|
|
857
|
-
const _errs60 = errors;
|
|
858
|
-
if (errors === _errs60) {
|
|
859
|
-
if ((typeof data14 == "number") && (isFinite(data14))) {
|
|
860
|
-
if (data14 > 100 || isNaN(data14)) {
|
|
861
|
-
validate20.errors = [{ instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
|
|
862
|
-
return false;
|
|
926
|
+
if (data8 < 1 || isNaN(data8)) {
|
|
927
|
+
const err22 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/definitions/fontWeight/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
928
|
+
if (vErrors === null) {
|
|
929
|
+
vErrors = [err22];
|
|
863
930
|
}
|
|
864
931
|
else {
|
|
865
|
-
|
|
866
|
-
validate20.errors = [{ instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
867
|
-
return false;
|
|
868
|
-
}
|
|
932
|
+
vErrors.push(err22);
|
|
869
933
|
}
|
|
934
|
+
errors++;
|
|
870
935
|
}
|
|
871
|
-
else {
|
|
872
|
-
validate20.errors = [{ instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
873
|
-
return false;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
var valid21 = _errs60 === errors;
|
|
877
|
-
if (!valid21) {
|
|
878
|
-
break;
|
|
879
936
|
}
|
|
880
937
|
}
|
|
881
938
|
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
let passing5 = null;
|
|
891
|
-
const _errs64 = errors;
|
|
892
|
-
if (typeof data15 !== "string") {
|
|
893
|
-
const err39 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
939
|
+
var _valid2 = _errs33 === errors;
|
|
940
|
+
valid10 = valid10 || _valid2;
|
|
941
|
+
if (!valid10) {
|
|
942
|
+
const _errs36 = errors;
|
|
943
|
+
if (errors === _errs36) {
|
|
944
|
+
if (Array.isArray(data8)) {
|
|
945
|
+
if (data8.length > 128) {
|
|
946
|
+
const err23 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
894
947
|
if (vErrors === null) {
|
|
895
|
-
vErrors = [
|
|
948
|
+
vErrors = [err23];
|
|
896
949
|
}
|
|
897
950
|
else {
|
|
898
|
-
vErrors.push(
|
|
951
|
+
vErrors.push(err23);
|
|
899
952
|
}
|
|
900
953
|
errors++;
|
|
901
954
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
passing5 = 0;
|
|
906
|
-
}
|
|
907
|
-
const _errs66 = errors;
|
|
908
|
-
if (errors === _errs66) {
|
|
909
|
-
if (Array.isArray(data15)) {
|
|
910
|
-
if (data15.length > 128) {
|
|
911
|
-
const err40 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
912
|
-
if (vErrors === null) {
|
|
913
|
-
vErrors = [err40];
|
|
914
|
-
}
|
|
915
|
-
else {
|
|
916
|
-
vErrors.push(err40);
|
|
917
|
-
}
|
|
918
|
-
errors++;
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
var valid23 = true;
|
|
922
|
-
const len5 = data15.length;
|
|
923
|
-
for (let i5 = 0; i5 < len5; i5++) {
|
|
924
|
-
const _errs68 = errors;
|
|
925
|
-
if (typeof data15[i5] !== "string") {
|
|
926
|
-
const err41 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/1/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
927
|
-
if (vErrors === null) {
|
|
928
|
-
vErrors = [err41];
|
|
929
|
-
}
|
|
930
|
-
else {
|
|
931
|
-
vErrors.push(err41);
|
|
932
|
-
}
|
|
933
|
-
errors++;
|
|
934
|
-
}
|
|
935
|
-
var valid23 = _errs68 === errors;
|
|
936
|
-
if (!valid23) {
|
|
937
|
-
break;
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
else {
|
|
943
|
-
const err42 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
955
|
+
else {
|
|
956
|
+
if (data8.length < 0) {
|
|
957
|
+
const err24 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
944
958
|
if (vErrors === null) {
|
|
945
|
-
vErrors = [
|
|
959
|
+
vErrors = [err24];
|
|
946
960
|
}
|
|
947
961
|
else {
|
|
948
|
-
vErrors.push(
|
|
962
|
+
vErrors.push(err24);
|
|
949
963
|
}
|
|
950
964
|
errors++;
|
|
951
965
|
}
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
passing5 = 1;
|
|
962
|
-
}
|
|
963
|
-
const _errs70 = errors;
|
|
964
|
-
if (errors === _errs70) {
|
|
965
|
-
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
966
|
-
if (Object.keys(data15).length > 128) {
|
|
967
|
-
const err43 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/2/maxProperties", keyword: "maxProperties", params: { limit: 128 }, message: "must NOT have more than 128 properties" };
|
|
966
|
+
else {
|
|
967
|
+
var valid12 = true;
|
|
968
|
+
const len2 = data8.length;
|
|
969
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
970
|
+
let data9 = data8[i2];
|
|
971
|
+
const _errs38 = errors;
|
|
972
|
+
const _errs39 = errors;
|
|
973
|
+
if (!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) {
|
|
974
|
+
const err25 = { instancePath: instancePath + "/fontWeight/" + i2, schemaPath: "#/definitions/fontWeight/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
968
975
|
if (vErrors === null) {
|
|
969
|
-
vErrors = [
|
|
976
|
+
vErrors = [err25];
|
|
970
977
|
}
|
|
971
978
|
else {
|
|
972
|
-
vErrors.push(
|
|
979
|
+
vErrors.push(err25);
|
|
973
980
|
}
|
|
974
981
|
errors++;
|
|
975
982
|
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
if (!pattern17.test(key3)) {
|
|
981
|
-
const err44 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/2/propertyNames/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"", propertyName: key3 };
|
|
982
|
-
if (vErrors === null) {
|
|
983
|
-
vErrors = [err44];
|
|
984
|
-
}
|
|
985
|
-
else {
|
|
986
|
-
vErrors.push(err44);
|
|
987
|
-
}
|
|
988
|
-
errors++;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
var valid24 = _errs72 === errors;
|
|
992
|
-
if (!valid24) {
|
|
993
|
-
const err45 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/2/propertyNames", keyword: "propertyNames", params: { propertyName: key3 }, message: "property name must be valid" };
|
|
983
|
+
if (errors === _errs39) {
|
|
984
|
+
if ((typeof data9 == "number") && (isFinite(data9))) {
|
|
985
|
+
if (data9 > 1000 || isNaN(data9)) {
|
|
986
|
+
const err26 = { instancePath: instancePath + "/fontWeight/" + i2, schemaPath: "#/definitions/fontWeight/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000 }, message: "must be <= 1000" };
|
|
994
987
|
if (vErrors === null) {
|
|
995
|
-
vErrors = [
|
|
988
|
+
vErrors = [err26];
|
|
996
989
|
}
|
|
997
990
|
else {
|
|
998
|
-
vErrors.push(
|
|
991
|
+
vErrors.push(err26);
|
|
999
992
|
}
|
|
1000
993
|
errors++;
|
|
1001
|
-
break;
|
|
1002
994
|
}
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
if (errors === _errs74) {
|
|
1009
|
-
if ((typeof data17 == "number") && (isFinite(data17))) {
|
|
1010
|
-
if (data17 < 0 || isNaN(data17)) {
|
|
1011
|
-
const err46 = { instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/oneOf/2/additionalProperties/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1012
|
-
if (vErrors === null) {
|
|
1013
|
-
vErrors = [err46];
|
|
1014
|
-
}
|
|
1015
|
-
else {
|
|
1016
|
-
vErrors.push(err46);
|
|
1017
|
-
}
|
|
1018
|
-
errors++;
|
|
1019
|
-
}
|
|
995
|
+
else {
|
|
996
|
+
if (data9 < 1 || isNaN(data9)) {
|
|
997
|
+
const err27 = { instancePath: instancePath + "/fontWeight/" + i2, schemaPath: "#/definitions/fontWeight/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
998
|
+
if (vErrors === null) {
|
|
999
|
+
vErrors = [err27];
|
|
1020
1000
|
}
|
|
1021
1001
|
else {
|
|
1022
|
-
|
|
1023
|
-
if (vErrors === null) {
|
|
1024
|
-
vErrors = [err47];
|
|
1025
|
-
}
|
|
1026
|
-
else {
|
|
1027
|
-
vErrors.push(err47);
|
|
1028
|
-
}
|
|
1029
|
-
errors++;
|
|
1002
|
+
vErrors.push(err27);
|
|
1030
1003
|
}
|
|
1031
|
-
|
|
1032
|
-
var valid25 = _errs74 === errors;
|
|
1033
|
-
if (!valid25) {
|
|
1034
|
-
break;
|
|
1004
|
+
errors++;
|
|
1035
1005
|
}
|
|
1036
1006
|
}
|
|
1037
1007
|
}
|
|
1038
1008
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
if (vErrors === null) {
|
|
1043
|
-
vErrors = [err48];
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
vErrors.push(err48);
|
|
1009
|
+
var valid12 = _errs38 === errors;
|
|
1010
|
+
if (!valid12) {
|
|
1011
|
+
break;
|
|
1047
1012
|
}
|
|
1048
|
-
errors++;
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
var _valid5 = _errs70 === errors;
|
|
1052
|
-
if (_valid5 && valid22) {
|
|
1053
|
-
valid22 = false;
|
|
1054
|
-
passing5 = [passing5, 2];
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
if (_valid5) {
|
|
1058
|
-
valid22 = true;
|
|
1059
|
-
passing5 = 2;
|
|
1060
1013
|
}
|
|
1061
1014
|
}
|
|
1062
1015
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
else {
|
|
1069
|
-
vErrors.push(err49);
|
|
1070
|
-
}
|
|
1071
|
-
errors++;
|
|
1072
|
-
validate20.errors = vErrors;
|
|
1073
|
-
return false;
|
|
1016
|
+
}
|
|
1017
|
+
else {
|
|
1018
|
+
const err28 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1019
|
+
if (vErrors === null) {
|
|
1020
|
+
vErrors = [err28];
|
|
1074
1021
|
}
|
|
1075
1022
|
else {
|
|
1076
|
-
|
|
1077
|
-
if (vErrors !== null) {
|
|
1078
|
-
if (_errs63) {
|
|
1079
|
-
vErrors.length = _errs63;
|
|
1080
|
-
}
|
|
1081
|
-
else {
|
|
1082
|
-
vErrors = null;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
var valid21 = _errs62 === errors;
|
|
1087
|
-
if (!valid21) {
|
|
1088
|
-
break;
|
|
1023
|
+
vErrors.push(err28);
|
|
1089
1024
|
}
|
|
1025
|
+
errors++;
|
|
1090
1026
|
}
|
|
1091
1027
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1028
|
+
var _valid2 = _errs36 === errors;
|
|
1029
|
+
valid10 = valid10 || _valid2;
|
|
1030
|
+
}
|
|
1031
|
+
if (!valid10) {
|
|
1032
|
+
const err29 = { instancePath: instancePath + "/fontWeight", schemaPath: "#/properties/fontWeight/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1033
|
+
if (vErrors === null) {
|
|
1034
|
+
vErrors = [err29];
|
|
1035
|
+
}
|
|
1036
|
+
else {
|
|
1037
|
+
vErrors.push(err29);
|
|
1038
|
+
}
|
|
1039
|
+
errors++;
|
|
1040
|
+
validate10.errors = vErrors;
|
|
1041
|
+
return false;
|
|
1042
|
+
}
|
|
1043
|
+
else {
|
|
1044
|
+
errors = _errs32;
|
|
1045
|
+
if (vErrors !== null) {
|
|
1046
|
+
if (_errs32) {
|
|
1047
|
+
vErrors.length = _errs32;
|
|
1048
|
+
}
|
|
1049
|
+
else {
|
|
1050
|
+
vErrors = null;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
var valid1 = _errs31 === errors;
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
var valid1 = true;
|
|
1058
|
+
}
|
|
1059
|
+
if (valid1) {
|
|
1060
|
+
if (data.scale !== undefined) {
|
|
1061
|
+
const _errs41 = errors;
|
|
1062
|
+
if (!(validate11(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData }))) {
|
|
1063
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
1064
|
+
errors = vErrors.length;
|
|
1065
|
+
}
|
|
1066
|
+
var valid1 = _errs41 === errors;
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
var valid1 = true;
|
|
1070
|
+
}
|
|
1071
|
+
if (valid1) {
|
|
1072
|
+
if (data.borderRadius !== undefined) {
|
|
1073
|
+
let data11 = data.borderRadius;
|
|
1074
|
+
const _errs43 = errors;
|
|
1075
|
+
const _errs44 = errors;
|
|
1076
|
+
let valid15 = false;
|
|
1077
|
+
const _errs45 = errors;
|
|
1078
|
+
const _errs46 = errors;
|
|
1079
|
+
if (errors === _errs46) {
|
|
1080
|
+
if ((typeof data11 == "number") && (isFinite(data11))) {
|
|
1081
|
+
if (data11 > 50 || isNaN(data11)) {
|
|
1082
|
+
const err30 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/definitions/borderRadius/maximum", keyword: "maximum", params: { comparison: "<=", limit: 50 }, message: "must be <= 50" };
|
|
1083
|
+
if (vErrors === null) {
|
|
1084
|
+
vErrors = [err30];
|
|
1115
1085
|
}
|
|
1116
1086
|
else {
|
|
1117
|
-
|
|
1118
|
-
if (vErrors === null) {
|
|
1119
|
-
vErrors = [err51];
|
|
1120
|
-
}
|
|
1121
|
-
else {
|
|
1122
|
-
vErrors.push(err51);
|
|
1123
|
-
}
|
|
1124
|
-
errors++;
|
|
1087
|
+
vErrors.push(err30);
|
|
1125
1088
|
}
|
|
1089
|
+
errors++;
|
|
1126
1090
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
passing6 = 0;
|
|
1131
|
-
}
|
|
1132
|
-
const _errs81 = errors;
|
|
1133
|
-
if (errors === _errs81) {
|
|
1134
|
-
if (Array.isArray(data18)) {
|
|
1135
|
-
if (data18.length > 128) {
|
|
1136
|
-
const err52 = { instancePath: instancePath + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
1137
|
-
if (vErrors === null) {
|
|
1138
|
-
vErrors = [err52];
|
|
1139
|
-
}
|
|
1140
|
-
else {
|
|
1141
|
-
vErrors.push(err52);
|
|
1142
|
-
}
|
|
1143
|
-
errors++;
|
|
1144
|
-
}
|
|
1145
|
-
else {
|
|
1146
|
-
var valid28 = true;
|
|
1147
|
-
const len6 = data18.length;
|
|
1148
|
-
for (let i6 = 0; i6 < len6; i6++) {
|
|
1149
|
-
let data19 = data18[i6];
|
|
1150
|
-
const _errs83 = errors;
|
|
1151
|
-
const _errs84 = errors;
|
|
1152
|
-
if (errors === _errs84) {
|
|
1153
|
-
if (typeof data19 === "string") {
|
|
1154
|
-
if (!pattern19.test(data19)) {
|
|
1155
|
-
const err53 = { instancePath: instancePath + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/$defs/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
|
|
1156
|
-
if (vErrors === null) {
|
|
1157
|
-
vErrors = [err53];
|
|
1158
|
-
}
|
|
1159
|
-
else {
|
|
1160
|
-
vErrors.push(err53);
|
|
1161
|
-
}
|
|
1162
|
-
errors++;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
else {
|
|
1166
|
-
const err54 = { instancePath: instancePath + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/$defs/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1167
|
-
if (vErrors === null) {
|
|
1168
|
-
vErrors = [err54];
|
|
1169
|
-
}
|
|
1170
|
-
else {
|
|
1171
|
-
vErrors.push(err54);
|
|
1172
|
-
}
|
|
1173
|
-
errors++;
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
var valid28 = _errs83 === errors;
|
|
1177
|
-
if (!valid28) {
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
else {
|
|
1184
|
-
const err55 = { instancePath: instancePath + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1091
|
+
else {
|
|
1092
|
+
if (data11 < 0 || isNaN(data11)) {
|
|
1093
|
+
const err31 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/definitions/borderRadius/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1185
1094
|
if (vErrors === null) {
|
|
1186
|
-
vErrors = [
|
|
1095
|
+
vErrors = [err31];
|
|
1187
1096
|
}
|
|
1188
1097
|
else {
|
|
1189
|
-
vErrors.push(
|
|
1098
|
+
vErrors.push(err31);
|
|
1190
1099
|
}
|
|
1191
1100
|
errors++;
|
|
1192
1101
|
}
|
|
1193
1102
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
else {
|
|
1200
|
-
if (_valid6) {
|
|
1201
|
-
valid26 = true;
|
|
1202
|
-
passing6 = 1;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
if (!valid26) {
|
|
1206
|
-
const err56 = { instancePath: instancePath + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
|
|
1207
|
-
if (vErrors === null) {
|
|
1208
|
-
vErrors = [err56];
|
|
1209
|
-
}
|
|
1210
|
-
else {
|
|
1211
|
-
vErrors.push(err56);
|
|
1212
|
-
}
|
|
1213
|
-
errors++;
|
|
1214
|
-
validate20.errors = vErrors;
|
|
1215
|
-
return false;
|
|
1103
|
+
}
|
|
1104
|
+
else {
|
|
1105
|
+
const err32 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/definitions/borderRadius/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1106
|
+
if (vErrors === null) {
|
|
1107
|
+
vErrors = [err32];
|
|
1216
1108
|
}
|
|
1217
1109
|
else {
|
|
1218
|
-
|
|
1219
|
-
if (vErrors !== null) {
|
|
1220
|
-
if (_errs77) {
|
|
1221
|
-
vErrors.length = _errs77;
|
|
1222
|
-
}
|
|
1223
|
-
else {
|
|
1224
|
-
vErrors = null;
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
var valid21 = _errs76 === errors;
|
|
1229
|
-
if (!valid21) {
|
|
1230
|
-
break;
|
|
1110
|
+
vErrors.push(err32);
|
|
1231
1111
|
}
|
|
1112
|
+
errors++;
|
|
1232
1113
|
}
|
|
1233
1114
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
let passing7 = null;
|
|
1243
|
-
const _errs88 = errors;
|
|
1244
|
-
if (typeof data20 !== "string") {
|
|
1245
|
-
const err57 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1246
|
-
if (vErrors === null) {
|
|
1247
|
-
vErrors = [err57];
|
|
1248
|
-
}
|
|
1249
|
-
else {
|
|
1250
|
-
vErrors.push(err57);
|
|
1251
|
-
}
|
|
1252
|
-
errors++;
|
|
1253
|
-
}
|
|
1254
|
-
if (!(((data20 === "solid") || (data20 === "linear")) || (data20 === "radial"))) {
|
|
1255
|
-
const err58 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/colorFill/enum", keyword: "enum", params: { allowedValues: schema44.enum }, message: "must be equal to one of the allowed values" };
|
|
1115
|
+
var _valid3 = _errs45 === errors;
|
|
1116
|
+
valid15 = valid15 || _valid3;
|
|
1117
|
+
if (!valid15) {
|
|
1118
|
+
const _errs48 = errors;
|
|
1119
|
+
if (errors === _errs48) {
|
|
1120
|
+
if (Array.isArray(data11)) {
|
|
1121
|
+
if (data11.length > 2) {
|
|
1122
|
+
const err33 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/properties/borderRadius/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
1256
1123
|
if (vErrors === null) {
|
|
1257
|
-
vErrors = [
|
|
1124
|
+
vErrors = [err33];
|
|
1258
1125
|
}
|
|
1259
1126
|
else {
|
|
1260
|
-
vErrors.push(
|
|
1127
|
+
vErrors.push(err33);
|
|
1261
1128
|
}
|
|
1262
1129
|
errors++;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
const _errs91 = errors;
|
|
1270
|
-
if (errors === _errs91) {
|
|
1271
|
-
if (Array.isArray(data20)) {
|
|
1272
|
-
if (data20.length > 128) {
|
|
1273
|
-
const err59 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
1274
|
-
if (vErrors === null) {
|
|
1275
|
-
vErrors = [err59];
|
|
1276
|
-
}
|
|
1277
|
-
else {
|
|
1278
|
-
vErrors.push(err59);
|
|
1279
|
-
}
|
|
1280
|
-
errors++;
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
if (data11.length < 0) {
|
|
1133
|
+
const err34 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/properties/borderRadius/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
1134
|
+
if (vErrors === null) {
|
|
1135
|
+
vErrors = [err34];
|
|
1281
1136
|
}
|
|
1282
1137
|
else {
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1138
|
+
vErrors.push(err34);
|
|
1139
|
+
}
|
|
1140
|
+
errors++;
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
var valid17 = true;
|
|
1144
|
+
const len3 = data11.length;
|
|
1145
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
1146
|
+
let data12 = data11[i3];
|
|
1147
|
+
const _errs50 = errors;
|
|
1148
|
+
const _errs51 = errors;
|
|
1149
|
+
if (errors === _errs51) {
|
|
1150
|
+
if ((typeof data12 == "number") && (isFinite(data12))) {
|
|
1151
|
+
if (data12 > 50 || isNaN(data12)) {
|
|
1152
|
+
const err35 = { instancePath: instancePath + "/borderRadius/" + i3, schemaPath: "#/definitions/borderRadius/maximum", keyword: "maximum", params: { comparison: "<=", limit: 50 }, message: "must be <= 50" };
|
|
1153
|
+
if (vErrors === null) {
|
|
1154
|
+
vErrors = [err35];
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
vErrors.push(err35);
|
|
1158
|
+
}
|
|
1159
|
+
errors++;
|
|
1292
1160
|
}
|
|
1293
1161
|
else {
|
|
1294
|
-
|
|
1162
|
+
if (data12 < 0 || isNaN(data12)) {
|
|
1163
|
+
const err36 = { instancePath: instancePath + "/borderRadius/" + i3, schemaPath: "#/definitions/borderRadius/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1164
|
+
if (vErrors === null) {
|
|
1165
|
+
vErrors = [err36];
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
vErrors.push(err36);
|
|
1169
|
+
}
|
|
1170
|
+
errors++;
|
|
1171
|
+
}
|
|
1295
1172
|
}
|
|
1296
|
-
errors++;
|
|
1297
1173
|
}
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1174
|
+
else {
|
|
1175
|
+
const err37 = { instancePath: instancePath + "/borderRadius/" + i3, schemaPath: "#/definitions/borderRadius/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1300
1176
|
if (vErrors === null) {
|
|
1301
|
-
vErrors = [
|
|
1177
|
+
vErrors = [err37];
|
|
1302
1178
|
}
|
|
1303
1179
|
else {
|
|
1304
|
-
vErrors.push(
|
|
1180
|
+
vErrors.push(err37);
|
|
1305
1181
|
}
|
|
1306
1182
|
errors++;
|
|
1307
1183
|
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1184
|
+
}
|
|
1185
|
+
var valid17 = _errs50 === errors;
|
|
1186
|
+
if (!valid17) {
|
|
1187
|
+
break;
|
|
1312
1188
|
}
|
|
1313
1189
|
}
|
|
1314
1190
|
}
|
|
1315
|
-
else {
|
|
1316
|
-
const err62 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1317
|
-
if (vErrors === null) {
|
|
1318
|
-
vErrors = [err62];
|
|
1319
|
-
}
|
|
1320
|
-
else {
|
|
1321
|
-
vErrors.push(err62);
|
|
1322
|
-
}
|
|
1323
|
-
errors++;
|
|
1324
|
-
}
|
|
1325
1191
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1192
|
+
}
|
|
1193
|
+
else {
|
|
1194
|
+
const err38 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/properties/borderRadius/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1195
|
+
if (vErrors === null) {
|
|
1196
|
+
vErrors = [err38];
|
|
1330
1197
|
}
|
|
1331
1198
|
else {
|
|
1332
|
-
|
|
1333
|
-
valid30 = true;
|
|
1334
|
-
passing7 = 1;
|
|
1335
|
-
}
|
|
1199
|
+
vErrors.push(err38);
|
|
1336
1200
|
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1201
|
+
errors++;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
var _valid3 = _errs48 === errors;
|
|
1205
|
+
valid15 = valid15 || _valid3;
|
|
1206
|
+
}
|
|
1207
|
+
if (!valid15) {
|
|
1208
|
+
const err39 = { instancePath: instancePath + "/borderRadius", schemaPath: "#/properties/borderRadius/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1209
|
+
if (vErrors === null) {
|
|
1210
|
+
vErrors = [err39];
|
|
1211
|
+
}
|
|
1212
|
+
else {
|
|
1213
|
+
vErrors.push(err39);
|
|
1214
|
+
}
|
|
1215
|
+
errors++;
|
|
1216
|
+
validate10.errors = vErrors;
|
|
1217
|
+
return false;
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
errors = _errs44;
|
|
1221
|
+
if (vErrors !== null) {
|
|
1222
|
+
if (_errs44) {
|
|
1223
|
+
vErrors.length = _errs44;
|
|
1224
|
+
}
|
|
1225
|
+
else {
|
|
1226
|
+
vErrors = null;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
var valid1 = _errs43 === errors;
|
|
1231
|
+
}
|
|
1232
|
+
else {
|
|
1233
|
+
var valid1 = true;
|
|
1234
|
+
}
|
|
1235
|
+
if (valid1) {
|
|
1236
|
+
var valid19 = true;
|
|
1237
|
+
for (const key2 in data) {
|
|
1238
|
+
if (pattern0.test(key2)) {
|
|
1239
|
+
let data13 = data[key2];
|
|
1240
|
+
const _errs53 = errors;
|
|
1241
|
+
if (errors === _errs53) {
|
|
1242
|
+
if ((typeof data13 == "number") && (isFinite(data13))) {
|
|
1243
|
+
if (data13 > 100 || isNaN(data13)) {
|
|
1244
|
+
validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
|
|
1245
|
+
return false;
|
|
1341
1246
|
}
|
|
1342
1247
|
else {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
validate20.errors = vErrors;
|
|
1347
|
-
return false;
|
|
1348
|
-
}
|
|
1349
|
-
else {
|
|
1350
|
-
errors = _errs87;
|
|
1351
|
-
if (vErrors !== null) {
|
|
1352
|
-
if (_errs87) {
|
|
1353
|
-
vErrors.length = _errs87;
|
|
1354
|
-
}
|
|
1355
|
-
else {
|
|
1356
|
-
vErrors = null;
|
|
1248
|
+
if (data13 < 0 || isNaN(data13)) {
|
|
1249
|
+
validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
1250
|
+
return false;
|
|
1357
1251
|
}
|
|
1358
1252
|
}
|
|
1359
1253
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1254
|
+
else {
|
|
1255
|
+
validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
1256
|
+
return false;
|
|
1363
1257
|
}
|
|
1364
1258
|
}
|
|
1259
|
+
var valid19 = _errs53 === errors;
|
|
1260
|
+
if (!valid19) {
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1365
1263
|
}
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
if (
|
|
1380
|
-
|
|
1264
|
+
}
|
|
1265
|
+
if (valid19) {
|
|
1266
|
+
var valid19 = true;
|
|
1267
|
+
for (const key3 in data) {
|
|
1268
|
+
if (pattern1.test(key3)) {
|
|
1269
|
+
let data14 = data[key3];
|
|
1270
|
+
const _errs55 = errors;
|
|
1271
|
+
const _errs56 = errors;
|
|
1272
|
+
let valid20 = false;
|
|
1273
|
+
const _errs57 = errors;
|
|
1274
|
+
const _errs58 = errors;
|
|
1275
|
+
if (errors === _errs58) {
|
|
1276
|
+
if (typeof data14 === "string") {
|
|
1277
|
+
if (func2(data14) > 64) {
|
|
1278
|
+
const err40 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
1279
|
+
if (vErrors === null) {
|
|
1280
|
+
vErrors = [err40];
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
vErrors.push(err40);
|
|
1284
|
+
}
|
|
1285
|
+
errors++;
|
|
1381
1286
|
}
|
|
1382
1287
|
else {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
errors++;
|
|
1386
|
-
}
|
|
1387
|
-
if (errors === _errs99) {
|
|
1388
|
-
if ((typeof data22 == "number") && (isFinite(data22))) {
|
|
1389
|
-
if (data22 < 1 || isNaN(data22)) {
|
|
1390
|
-
const err65 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
1288
|
+
if (!pattern13.test(data14)) {
|
|
1289
|
+
const err41 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
|
|
1391
1290
|
if (vErrors === null) {
|
|
1392
|
-
vErrors = [
|
|
1291
|
+
vErrors = [err41];
|
|
1393
1292
|
}
|
|
1394
1293
|
else {
|
|
1395
|
-
vErrors.push(
|
|
1294
|
+
vErrors.push(err41);
|
|
1396
1295
|
}
|
|
1397
1296
|
errors++;
|
|
1398
1297
|
}
|
|
1399
1298
|
}
|
|
1400
1299
|
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1300
|
+
else {
|
|
1301
|
+
const err42 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1302
|
+
if (vErrors === null) {
|
|
1303
|
+
vErrors = [err42];
|
|
1304
|
+
}
|
|
1305
|
+
else {
|
|
1306
|
+
vErrors.push(err42);
|
|
1307
|
+
}
|
|
1308
|
+
errors++;
|
|
1405
1309
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1310
|
+
}
|
|
1311
|
+
var _valid4 = _errs57 === errors;
|
|
1312
|
+
valid20 = valid20 || _valid4;
|
|
1313
|
+
if (!valid20) {
|
|
1314
|
+
const _errs60 = errors;
|
|
1315
|
+
if (errors === _errs60) {
|
|
1316
|
+
if (Array.isArray(data14)) {
|
|
1317
|
+
if (data14.length > 128) {
|
|
1318
|
+
const err43 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
1411
1319
|
if (vErrors === null) {
|
|
1412
|
-
vErrors = [
|
|
1320
|
+
vErrors = [err43];
|
|
1413
1321
|
}
|
|
1414
1322
|
else {
|
|
1415
|
-
vErrors.push(
|
|
1323
|
+
vErrors.push(err43);
|
|
1416
1324
|
}
|
|
1417
1325
|
errors++;
|
|
1418
1326
|
}
|
|
1419
1327
|
else {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
const err67 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i8, schemaPath: "#/$defs/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1428
|
-
if (vErrors === null) {
|
|
1429
|
-
vErrors = [err67];
|
|
1430
|
-
}
|
|
1431
|
-
else {
|
|
1432
|
-
vErrors.push(err67);
|
|
1433
|
-
}
|
|
1434
|
-
errors++;
|
|
1328
|
+
if (data14.length < 0) {
|
|
1329
|
+
const err44 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
1330
|
+
if (vErrors === null) {
|
|
1331
|
+
vErrors = [err44];
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
vErrors.push(err44);
|
|
1435
1335
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1336
|
+
errors++;
|
|
1337
|
+
}
|
|
1338
|
+
else {
|
|
1339
|
+
var valid22 = true;
|
|
1340
|
+
const len4 = data14.length;
|
|
1341
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
1342
|
+
let data15 = data14[i4];
|
|
1343
|
+
const _errs62 = errors;
|
|
1344
|
+
const _errs63 = errors;
|
|
1345
|
+
if (errors === _errs63) {
|
|
1346
|
+
if (typeof data15 === "string") {
|
|
1347
|
+
if (func2(data15) > 64) {
|
|
1348
|
+
const err45 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
1349
|
+
if (vErrors === null) {
|
|
1350
|
+
vErrors = [err45];
|
|
1351
|
+
}
|
|
1352
|
+
else {
|
|
1353
|
+
vErrors.push(err45);
|
|
1354
|
+
}
|
|
1355
|
+
errors++;
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
if (!pattern13.test(data15)) {
|
|
1359
|
+
const err46 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
|
|
1360
|
+
if (vErrors === null) {
|
|
1361
|
+
vErrors = [err46];
|
|
1362
|
+
}
|
|
1363
|
+
else {
|
|
1364
|
+
vErrors.push(err46);
|
|
1365
|
+
}
|
|
1366
|
+
errors++;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
else {
|
|
1371
|
+
const err47 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1440
1372
|
if (vErrors === null) {
|
|
1441
|
-
vErrors = [
|
|
1373
|
+
vErrors = [err47];
|
|
1442
1374
|
}
|
|
1443
1375
|
else {
|
|
1444
|
-
vErrors.push(
|
|
1376
|
+
vErrors.push(err47);
|
|
1445
1377
|
}
|
|
1446
1378
|
errors++;
|
|
1447
1379
|
}
|
|
1448
1380
|
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1381
|
+
var valid22 = _errs62 === errors;
|
|
1382
|
+
if (!valid22) {
|
|
1383
|
+
break;
|
|
1384
|
+
}
|
|
1453
1385
|
}
|
|
1454
1386
|
}
|
|
1455
1387
|
}
|
|
1456
1388
|
}
|
|
1457
1389
|
else {
|
|
1458
|
-
const
|
|
1390
|
+
const err48 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1459
1391
|
if (vErrors === null) {
|
|
1460
|
-
vErrors = [
|
|
1392
|
+
vErrors = [err48];
|
|
1461
1393
|
}
|
|
1462
1394
|
else {
|
|
1463
|
-
vErrors.push(
|
|
1395
|
+
vErrors.push(err48);
|
|
1464
1396
|
}
|
|
1465
1397
|
errors++;
|
|
1466
1398
|
}
|
|
1467
1399
|
}
|
|
1468
|
-
var
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
passing8 = 1;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
if (!valid34) {
|
|
1480
|
-
const err70 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
|
|
1481
|
-
if (vErrors === null) {
|
|
1482
|
-
vErrors = [err70];
|
|
1483
|
-
}
|
|
1484
|
-
else {
|
|
1485
|
-
vErrors.push(err70);
|
|
1486
|
-
}
|
|
1487
|
-
errors++;
|
|
1488
|
-
validate20.errors = vErrors;
|
|
1489
|
-
return false;
|
|
1490
|
-
}
|
|
1491
|
-
else {
|
|
1492
|
-
errors = _errs97;
|
|
1493
|
-
if (vErrors !== null) {
|
|
1494
|
-
if (_errs97) {
|
|
1495
|
-
vErrors.length = _errs97;
|
|
1496
|
-
}
|
|
1497
|
-
else {
|
|
1498
|
-
vErrors = null;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
var valid21 = _errs96 === errors;
|
|
1503
|
-
if (!valid21) {
|
|
1504
|
-
break;
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
if (valid21) {
|
|
1509
|
-
var valid21 = true;
|
|
1510
|
-
for (const key8 in data) {
|
|
1511
|
-
if (pattern9.test(key8)) {
|
|
1512
|
-
let data24 = data[key8];
|
|
1513
|
-
const _errs106 = errors;
|
|
1514
|
-
const _errs107 = errors;
|
|
1515
|
-
let valid38 = false;
|
|
1516
|
-
let passing9 = null;
|
|
1517
|
-
const _errs108 = errors;
|
|
1518
|
-
const _errs109 = errors;
|
|
1519
|
-
if (errors === _errs109) {
|
|
1520
|
-
if ((typeof data24 == "number") && (isFinite(data24))) {
|
|
1521
|
-
if (data24 > 360 || isNaN(data24)) {
|
|
1522
|
-
const err71 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/rotate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 360 }, message: "must be <= 360" };
|
|
1400
|
+
var _valid4 = _errs60 === errors;
|
|
1401
|
+
valid20 = valid20 || _valid4;
|
|
1402
|
+
if (!valid20) {
|
|
1403
|
+
const _errs65 = errors;
|
|
1404
|
+
if (errors === _errs65) {
|
|
1405
|
+
if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
|
|
1406
|
+
if (Object.keys(data14).length > 512) {
|
|
1407
|
+
const err49 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/maxProperties", keyword: "maxProperties", params: { limit: 512 }, message: "must NOT have more than 512 properties" };
|
|
1523
1408
|
if (vErrors === null) {
|
|
1524
|
-
vErrors = [
|
|
1409
|
+
vErrors = [err49];
|
|
1525
1410
|
}
|
|
1526
1411
|
else {
|
|
1527
|
-
vErrors.push(
|
|
1412
|
+
vErrors.push(err49);
|
|
1528
1413
|
}
|
|
1529
1414
|
errors++;
|
|
1530
1415
|
}
|
|
1531
1416
|
else {
|
|
1532
|
-
if (
|
|
1533
|
-
const
|
|
1417
|
+
if (Object.keys(data14).length < 1) {
|
|
1418
|
+
const err50 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
|
|
1534
1419
|
if (vErrors === null) {
|
|
1535
|
-
vErrors = [
|
|
1420
|
+
vErrors = [err50];
|
|
1536
1421
|
}
|
|
1537
1422
|
else {
|
|
1538
|
-
vErrors.push(
|
|
1423
|
+
vErrors.push(err50);
|
|
1539
1424
|
}
|
|
1540
1425
|
errors++;
|
|
1541
1426
|
}
|
|
1427
|
+
else {
|
|
1428
|
+
for (const key4 in data14) {
|
|
1429
|
+
const _errs67 = errors;
|
|
1430
|
+
const _errs68 = errors;
|
|
1431
|
+
if (errors === _errs68) {
|
|
1432
|
+
if (typeof key4 === "string") {
|
|
1433
|
+
if (func2(key4) > 64) {
|
|
1434
|
+
const err51 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters", propertyName: key4 };
|
|
1435
|
+
if (vErrors === null) {
|
|
1436
|
+
vErrors = [err51];
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
vErrors.push(err51);
|
|
1440
|
+
}
|
|
1441
|
+
errors++;
|
|
1442
|
+
}
|
|
1443
|
+
else {
|
|
1444
|
+
if (!pattern13.test(key4)) {
|
|
1445
|
+
const err52 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"", propertyName: key4 };
|
|
1446
|
+
if (vErrors === null) {
|
|
1447
|
+
vErrors = [err52];
|
|
1448
|
+
}
|
|
1449
|
+
else {
|
|
1450
|
+
vErrors.push(err52);
|
|
1451
|
+
}
|
|
1452
|
+
errors++;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
const err53 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string", propertyName: key4 };
|
|
1458
|
+
if (vErrors === null) {
|
|
1459
|
+
vErrors = [err53];
|
|
1460
|
+
}
|
|
1461
|
+
else {
|
|
1462
|
+
vErrors.push(err53);
|
|
1463
|
+
}
|
|
1464
|
+
errors++;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
var valid24 = _errs67 === errors;
|
|
1468
|
+
if (!valid24) {
|
|
1469
|
+
const err54 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/propertyNames", keyword: "propertyNames", params: { propertyName: key4 }, message: "property name must be valid" };
|
|
1470
|
+
if (vErrors === null) {
|
|
1471
|
+
vErrors = [err54];
|
|
1472
|
+
}
|
|
1473
|
+
else {
|
|
1474
|
+
vErrors.push(err54);
|
|
1475
|
+
}
|
|
1476
|
+
errors++;
|
|
1477
|
+
break;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
if (valid24) {
|
|
1481
|
+
for (const key5 in data14) {
|
|
1482
|
+
let data16 = data14[key5];
|
|
1483
|
+
const _errs71 = errors;
|
|
1484
|
+
if (errors === _errs71) {
|
|
1485
|
+
if ((typeof data16 == "number") && (isFinite(data16))) {
|
|
1486
|
+
if (data16 < 0 || isNaN(data16)) {
|
|
1487
|
+
const err55 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1488
|
+
if (vErrors === null) {
|
|
1489
|
+
vErrors = [err55];
|
|
1490
|
+
}
|
|
1491
|
+
else {
|
|
1492
|
+
vErrors.push(err55);
|
|
1493
|
+
}
|
|
1494
|
+
errors++;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
else {
|
|
1498
|
+
const err56 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1499
|
+
if (vErrors === null) {
|
|
1500
|
+
vErrors = [err56];
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
vErrors.push(err56);
|
|
1504
|
+
}
|
|
1505
|
+
errors++;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
var valid26 = _errs71 === errors;
|
|
1509
|
+
if (!valid26) {
|
|
1510
|
+
break;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1542
1515
|
}
|
|
1543
1516
|
}
|
|
1544
1517
|
else {
|
|
1545
|
-
const
|
|
1518
|
+
const err57 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1519
|
+
if (vErrors === null) {
|
|
1520
|
+
vErrors = [err57];
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
vErrors.push(err57);
|
|
1524
|
+
}
|
|
1525
|
+
errors++;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
var _valid4 = _errs65 === errors;
|
|
1529
|
+
valid20 = valid20 || _valid4;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
if (!valid20) {
|
|
1533
|
+
const err58 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1534
|
+
if (vErrors === null) {
|
|
1535
|
+
vErrors = [err58];
|
|
1536
|
+
}
|
|
1537
|
+
else {
|
|
1538
|
+
vErrors.push(err58);
|
|
1539
|
+
}
|
|
1540
|
+
errors++;
|
|
1541
|
+
validate10.errors = vErrors;
|
|
1542
|
+
return false;
|
|
1543
|
+
}
|
|
1544
|
+
else {
|
|
1545
|
+
errors = _errs56;
|
|
1546
|
+
if (vErrors !== null) {
|
|
1547
|
+
if (_errs56) {
|
|
1548
|
+
vErrors.length = _errs56;
|
|
1549
|
+
}
|
|
1550
|
+
else {
|
|
1551
|
+
vErrors = null;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
var valid19 = _errs55 === errors;
|
|
1556
|
+
if (!valid19) {
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (valid19) {
|
|
1562
|
+
var valid19 = true;
|
|
1563
|
+
for (const key6 in data) {
|
|
1564
|
+
if (pattern2.test(key6)) {
|
|
1565
|
+
let data17 = data[key6];
|
|
1566
|
+
const _errs73 = errors;
|
|
1567
|
+
const _errs74 = errors;
|
|
1568
|
+
let valid27 = false;
|
|
1569
|
+
const _errs75 = errors;
|
|
1570
|
+
const _errs76 = errors;
|
|
1571
|
+
if (errors === _errs76) {
|
|
1572
|
+
if (typeof data17 === "string") {
|
|
1573
|
+
if (!pattern17.test(data17)) {
|
|
1574
|
+
const err59 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
|
|
1546
1575
|
if (vErrors === null) {
|
|
1547
|
-
vErrors = [
|
|
1576
|
+
vErrors = [err59];
|
|
1548
1577
|
}
|
|
1549
1578
|
else {
|
|
1550
|
-
vErrors.push(
|
|
1579
|
+
vErrors.push(err59);
|
|
1551
1580
|
}
|
|
1552
1581
|
errors++;
|
|
1553
1582
|
}
|
|
1554
1583
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1584
|
+
else {
|
|
1585
|
+
const err60 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1586
|
+
if (vErrors === null) {
|
|
1587
|
+
vErrors = [err60];
|
|
1588
|
+
}
|
|
1589
|
+
else {
|
|
1590
|
+
vErrors.push(err60);
|
|
1591
|
+
}
|
|
1592
|
+
errors++;
|
|
1559
1593
|
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1594
|
+
}
|
|
1595
|
+
var _valid5 = _errs75 === errors;
|
|
1596
|
+
valid27 = valid27 || _valid5;
|
|
1597
|
+
if (!valid27) {
|
|
1598
|
+
const _errs78 = errors;
|
|
1599
|
+
if (errors === _errs78) {
|
|
1600
|
+
if (Array.isArray(data17)) {
|
|
1601
|
+
if (data17.length > 128) {
|
|
1602
|
+
const err61 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
1565
1603
|
if (vErrors === null) {
|
|
1566
|
-
vErrors = [
|
|
1604
|
+
vErrors = [err61];
|
|
1567
1605
|
}
|
|
1568
1606
|
else {
|
|
1569
|
-
vErrors.push(
|
|
1607
|
+
vErrors.push(err61);
|
|
1570
1608
|
}
|
|
1571
|
-
errors++;
|
|
1572
|
-
}
|
|
1573
|
-
else {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
if (
|
|
1594
|
-
const
|
|
1609
|
+
errors++;
|
|
1610
|
+
}
|
|
1611
|
+
else {
|
|
1612
|
+
if (data17.length < 0) {
|
|
1613
|
+
const err62 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
1614
|
+
if (vErrors === null) {
|
|
1615
|
+
vErrors = [err62];
|
|
1616
|
+
}
|
|
1617
|
+
else {
|
|
1618
|
+
vErrors.push(err62);
|
|
1619
|
+
}
|
|
1620
|
+
errors++;
|
|
1621
|
+
}
|
|
1622
|
+
else {
|
|
1623
|
+
var valid29 = true;
|
|
1624
|
+
const len5 = data17.length;
|
|
1625
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
1626
|
+
let data18 = data17[i5];
|
|
1627
|
+
const _errs80 = errors;
|
|
1628
|
+
const _errs81 = errors;
|
|
1629
|
+
if (errors === _errs81) {
|
|
1630
|
+
if (typeof data18 === "string") {
|
|
1631
|
+
if (!pattern17.test(data18)) {
|
|
1632
|
+
const err63 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
|
|
1595
1633
|
if (vErrors === null) {
|
|
1596
|
-
vErrors = [
|
|
1634
|
+
vErrors = [err63];
|
|
1597
1635
|
}
|
|
1598
1636
|
else {
|
|
1599
|
-
vErrors.push(
|
|
1637
|
+
vErrors.push(err63);
|
|
1600
1638
|
}
|
|
1601
1639
|
errors++;
|
|
1602
1640
|
}
|
|
1603
1641
|
}
|
|
1604
|
-
}
|
|
1605
|
-
else {
|
|
1606
|
-
const err77 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i9, schemaPath: "#/$defs/rotate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1607
|
-
if (vErrors === null) {
|
|
1608
|
-
vErrors = [err77];
|
|
1609
|
-
}
|
|
1610
1642
|
else {
|
|
1611
|
-
|
|
1643
|
+
const err64 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1644
|
+
if (vErrors === null) {
|
|
1645
|
+
vErrors = [err64];
|
|
1646
|
+
}
|
|
1647
|
+
else {
|
|
1648
|
+
vErrors.push(err64);
|
|
1649
|
+
}
|
|
1650
|
+
errors++;
|
|
1612
1651
|
}
|
|
1613
|
-
errors++;
|
|
1614
1652
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1653
|
+
var valid29 = _errs80 === errors;
|
|
1654
|
+
if (!valid29) {
|
|
1655
|
+
break;
|
|
1656
|
+
}
|
|
1619
1657
|
}
|
|
1620
1658
|
}
|
|
1621
1659
|
}
|
|
1622
1660
|
}
|
|
1623
1661
|
else {
|
|
1624
|
-
const
|
|
1662
|
+
const err65 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1625
1663
|
if (vErrors === null) {
|
|
1626
|
-
vErrors = [
|
|
1664
|
+
vErrors = [err65];
|
|
1627
1665
|
}
|
|
1628
1666
|
else {
|
|
1629
|
-
vErrors.push(
|
|
1667
|
+
vErrors.push(err65);
|
|
1630
1668
|
}
|
|
1631
1669
|
errors++;
|
|
1632
1670
|
}
|
|
1633
1671
|
}
|
|
1634
|
-
var
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1672
|
+
var _valid5 = _errs78 === errors;
|
|
1673
|
+
valid27 = valid27 || _valid5;
|
|
1674
|
+
}
|
|
1675
|
+
if (!valid27) {
|
|
1676
|
+
const err66 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1677
|
+
if (vErrors === null) {
|
|
1678
|
+
vErrors = [err66];
|
|
1638
1679
|
}
|
|
1639
1680
|
else {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1681
|
+
vErrors.push(err66);
|
|
1682
|
+
}
|
|
1683
|
+
errors++;
|
|
1684
|
+
validate10.errors = vErrors;
|
|
1685
|
+
return false;
|
|
1686
|
+
}
|
|
1687
|
+
else {
|
|
1688
|
+
errors = _errs74;
|
|
1689
|
+
if (vErrors !== null) {
|
|
1690
|
+
if (_errs74) {
|
|
1691
|
+
vErrors.length = _errs74;
|
|
1692
|
+
}
|
|
1693
|
+
else {
|
|
1694
|
+
vErrors = null;
|
|
1643
1695
|
}
|
|
1644
1696
|
}
|
|
1645
|
-
|
|
1646
|
-
|
|
1697
|
+
}
|
|
1698
|
+
var valid19 = _errs73 === errors;
|
|
1699
|
+
if (!valid19) {
|
|
1700
|
+
break;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
if (valid19) {
|
|
1705
|
+
var valid19 = true;
|
|
1706
|
+
for (const key7 in data) {
|
|
1707
|
+
if (pattern3.test(key7)) {
|
|
1708
|
+
let data19 = data[key7];
|
|
1709
|
+
const _errs83 = errors;
|
|
1710
|
+
const _errs84 = errors;
|
|
1711
|
+
let valid31 = false;
|
|
1712
|
+
const _errs85 = errors;
|
|
1713
|
+
if (typeof data19 !== "string") {
|
|
1714
|
+
const err67 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1647
1715
|
if (vErrors === null) {
|
|
1648
|
-
vErrors = [
|
|
1716
|
+
vErrors = [err67];
|
|
1649
1717
|
}
|
|
1650
1718
|
else {
|
|
1651
|
-
vErrors.push(
|
|
1719
|
+
vErrors.push(err67);
|
|
1652
1720
|
}
|
|
1653
1721
|
errors++;
|
|
1654
|
-
validate20.errors = vErrors;
|
|
1655
|
-
return false;
|
|
1656
1722
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
if (vErrors
|
|
1660
|
-
|
|
1661
|
-
vErrors.length = _errs107;
|
|
1662
|
-
}
|
|
1663
|
-
else {
|
|
1664
|
-
vErrors = null;
|
|
1665
|
-
}
|
|
1723
|
+
if (!(((data19 === "solid") || (data19 === "linear")) || (data19 === "radial"))) {
|
|
1724
|
+
const err68 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema28.enum }, message: "must be equal to one of the allowed values" };
|
|
1725
|
+
if (vErrors === null) {
|
|
1726
|
+
vErrors = [err68];
|
|
1666
1727
|
}
|
|
1728
|
+
else {
|
|
1729
|
+
vErrors.push(err68);
|
|
1730
|
+
}
|
|
1731
|
+
errors++;
|
|
1667
1732
|
}
|
|
1668
|
-
var
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
for (const key9 in data) {
|
|
1677
|
-
if (pattern10.test(key9)) {
|
|
1678
|
-
let data26 = data[key9];
|
|
1679
|
-
const _errs116 = errors;
|
|
1680
|
-
const _errs117 = errors;
|
|
1681
|
-
let valid42 = false;
|
|
1682
|
-
let passing10 = null;
|
|
1683
|
-
const _errs118 = errors;
|
|
1684
|
-
const _errs119 = errors;
|
|
1685
|
-
if (errors === _errs119) {
|
|
1686
|
-
if ((typeof data26 == "number") && (isFinite(data26))) {
|
|
1687
|
-
if (data26 > 360 || isNaN(data26)) {
|
|
1688
|
-
const err80 = { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/rotate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 360 }, message: "must be <= 360" };
|
|
1733
|
+
var _valid6 = _errs85 === errors;
|
|
1734
|
+
valid31 = valid31 || _valid6;
|
|
1735
|
+
if (!valid31) {
|
|
1736
|
+
const _errs88 = errors;
|
|
1737
|
+
if (errors === _errs88) {
|
|
1738
|
+
if (Array.isArray(data19)) {
|
|
1739
|
+
if (data19.length > 128) {
|
|
1740
|
+
const err69 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
|
|
1689
1741
|
if (vErrors === null) {
|
|
1690
|
-
vErrors = [
|
|
1742
|
+
vErrors = [err69];
|
|
1691
1743
|
}
|
|
1692
1744
|
else {
|
|
1693
|
-
vErrors.push(
|
|
1745
|
+
vErrors.push(err69);
|
|
1694
1746
|
}
|
|
1695
1747
|
errors++;
|
|
1696
1748
|
}
|
|
1697
1749
|
else {
|
|
1698
|
-
if (
|
|
1699
|
-
const
|
|
1750
|
+
if (data19.length < 0) {
|
|
1751
|
+
const err70 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
1700
1752
|
if (vErrors === null) {
|
|
1701
|
-
vErrors = [
|
|
1753
|
+
vErrors = [err70];
|
|
1702
1754
|
}
|
|
1703
1755
|
else {
|
|
1704
|
-
vErrors.push(
|
|
1756
|
+
vErrors.push(err70);
|
|
1705
1757
|
}
|
|
1706
1758
|
errors++;
|
|
1707
1759
|
}
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
else {
|
|
1711
|
-
const err82 = { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/rotate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1712
|
-
if (vErrors === null) {
|
|
1713
|
-
vErrors = [err82];
|
|
1714
|
-
}
|
|
1715
|
-
else {
|
|
1716
|
-
vErrors.push(err82);
|
|
1717
|
-
}
|
|
1718
|
-
errors++;
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
var _valid10 = _errs118 === errors;
|
|
1722
|
-
if (_valid10) {
|
|
1723
|
-
valid42 = true;
|
|
1724
|
-
passing10 = 0;
|
|
1725
|
-
}
|
|
1726
|
-
const _errs121 = errors;
|
|
1727
|
-
if (errors === _errs121) {
|
|
1728
|
-
if (Array.isArray(data26)) {
|
|
1729
|
-
if (data26.length > 2) {
|
|
1730
|
-
const err83 = { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E(r%7C%5Ba-z%5D%5Ba-zA-Z0-9%5D*R)otate%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
1731
|
-
if (vErrors === null) {
|
|
1732
|
-
vErrors = [err83];
|
|
1733
|
-
}
|
|
1734
1760
|
else {
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
const _errs123 = errors;
|
|
1745
|
-
const _errs124 = errors;
|
|
1746
|
-
if (errors === _errs124) {
|
|
1747
|
-
if ((typeof data27 == "number") && (isFinite(data27))) {
|
|
1748
|
-
if (data27 > 360 || isNaN(data27)) {
|
|
1749
|
-
const err84 = { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i10, schemaPath: "#/$defs/rotate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 360 }, message: "must be <= 360" };
|
|
1750
|
-
if (vErrors === null) {
|
|
1751
|
-
vErrors = [err84];
|
|
1752
|
-
}
|
|
1753
|
-
else {
|
|
1754
|
-
vErrors.push(err84);
|
|
1755
|
-
}
|
|
1756
|
-
errors++;
|
|
1761
|
+
var valid33 = true;
|
|
1762
|
+
const len6 = data19.length;
|
|
1763
|
+
for (let i6 = 0; i6 < len6; i6++) {
|
|
1764
|
+
let data20 = data19[i6];
|
|
1765
|
+
const _errs90 = errors;
|
|
1766
|
+
if (typeof data20 !== "string") {
|
|
1767
|
+
const err71 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1768
|
+
if (vErrors === null) {
|
|
1769
|
+
vErrors = [err71];
|
|
1757
1770
|
}
|
|
1758
1771
|
else {
|
|
1759
|
-
|
|
1760
|
-
const err85 = { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i10, schemaPath: "#/$defs/rotate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -360 }, message: "must be >= -360" };
|
|
1761
|
-
if (vErrors === null) {
|
|
1762
|
-
vErrors = [err85];
|
|
1763
|
-
}
|
|
1764
|
-
else {
|
|
1765
|
-
vErrors.push(err85);
|
|
1766
|
-
}
|
|
1767
|
-
errors++;
|
|
1768
|
-
}
|
|
1772
|
+
vErrors.push(err71);
|
|
1769
1773
|
}
|
|
1774
|
+
errors++;
|
|
1770
1775
|
}
|
|
1771
|
-
|
|
1772
|
-
const
|
|
1776
|
+
if (!(((data20 === "solid") || (data20 === "linear")) || (data20 === "radial"))) {
|
|
1777
|
+
const err72 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema28.enum }, message: "must be equal to one of the allowed values" };
|
|
1773
1778
|
if (vErrors === null) {
|
|
1774
|
-
vErrors = [
|
|
1779
|
+
vErrors = [err72];
|
|
1775
1780
|
}
|
|
1776
1781
|
else {
|
|
1777
|
-
vErrors.push(
|
|
1782
|
+
vErrors.push(err72);
|
|
1778
1783
|
}
|
|
1779
1784
|
errors++;
|
|
1780
1785
|
}
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1786
|
+
var valid33 = _errs90 === errors;
|
|
1787
|
+
if (!valid33) {
|
|
1788
|
+
break;
|
|
1789
|
+
}
|
|
1785
1790
|
}
|
|
1786
1791
|
}
|
|
1787
1792
|
}
|
|
1788
1793
|
}
|
|
1789
1794
|
else {
|
|
1790
|
-
const
|
|
1795
|
+
const err73 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1791
1796
|
if (vErrors === null) {
|
|
1792
|
-
vErrors = [
|
|
1797
|
+
vErrors = [err73];
|
|
1793
1798
|
}
|
|
1794
1799
|
else {
|
|
1795
|
-
vErrors.push(
|
|
1800
|
+
vErrors.push(err73);
|
|
1796
1801
|
}
|
|
1797
1802
|
errors++;
|
|
1798
1803
|
}
|
|
1799
1804
|
}
|
|
1800
|
-
var
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1805
|
+
var _valid6 = _errs88 === errors;
|
|
1806
|
+
valid31 = valid31 || _valid6;
|
|
1807
|
+
}
|
|
1808
|
+
if (!valid31) {
|
|
1809
|
+
const err74 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1810
|
+
if (vErrors === null) {
|
|
1811
|
+
vErrors = [err74];
|
|
1804
1812
|
}
|
|
1805
1813
|
else {
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1814
|
+
vErrors.push(err74);
|
|
1815
|
+
}
|
|
1816
|
+
errors++;
|
|
1817
|
+
validate10.errors = vErrors;
|
|
1818
|
+
return false;
|
|
1819
|
+
}
|
|
1820
|
+
else {
|
|
1821
|
+
errors = _errs84;
|
|
1822
|
+
if (vErrors !== null) {
|
|
1823
|
+
if (_errs84) {
|
|
1824
|
+
vErrors.length = _errs84;
|
|
1825
|
+
}
|
|
1826
|
+
else {
|
|
1827
|
+
vErrors = null;
|
|
1809
1828
|
}
|
|
1810
1829
|
}
|
|
1811
|
-
|
|
1812
|
-
|
|
1830
|
+
}
|
|
1831
|
+
var valid19 = _errs83 === errors;
|
|
1832
|
+
if (!valid19) {
|
|
1833
|
+
break;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
if (valid19) {
|
|
1838
|
+
var valid19 = true;
|
|
1839
|
+
for (const key8 in data) {
|
|
1840
|
+
if (pattern4.test(key8)) {
|
|
1841
|
+
let data21 = data[key8];
|
|
1842
|
+
const _errs93 = errors;
|
|
1843
|
+
const _errs94 = errors;
|
|
1844
|
+
let valid35 = false;
|
|
1845
|
+
const _errs95 = errors;
|
|
1846
|
+
const _errs96 = errors;
|
|
1847
|
+
if (!(((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21))) && (isFinite(data21)))) {
|
|
1848
|
+
const err75 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1813
1849
|
if (vErrors === null) {
|
|
1814
|
-
vErrors = [
|
|
1850
|
+
vErrors = [err75];
|
|
1815
1851
|
}
|
|
1816
1852
|
else {
|
|
1817
|
-
vErrors.push(
|
|
1853
|
+
vErrors.push(err75);
|
|
1818
1854
|
}
|
|
1819
1855
|
errors++;
|
|
1820
|
-
validate20.errors = vErrors;
|
|
1821
|
-
return false;
|
|
1822
1856
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
vErrors
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1857
|
+
if (errors === _errs96) {
|
|
1858
|
+
if ((typeof data21 == "number") && (isFinite(data21))) {
|
|
1859
|
+
if (data21 < 2 || isNaN(data21)) {
|
|
1860
|
+
const err76 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
|
|
1861
|
+
if (vErrors === null) {
|
|
1862
|
+
vErrors = [err76];
|
|
1863
|
+
}
|
|
1864
|
+
else {
|
|
1865
|
+
vErrors.push(err76);
|
|
1866
|
+
}
|
|
1867
|
+
errors++;
|
|
1831
1868
|
}
|
|
1832
1869
|
}
|
|
1833
1870
|
}
|
|
1834
|
-
var
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
for (const key10 in data) {
|
|
1843
|
-
if (pattern11.test(key10)) {
|
|
1844
|
-
let data28 = data[key10];
|
|
1845
|
-
const _errs126 = errors;
|
|
1846
|
-
const _errs127 = errors;
|
|
1847
|
-
let valid46 = false;
|
|
1848
|
-
let passing11 = null;
|
|
1849
|
-
const _errs128 = errors;
|
|
1850
|
-
const _errs129 = errors;
|
|
1851
|
-
if (errors === _errs129) {
|
|
1852
|
-
if ((typeof data28 == "number") && (isFinite(data28))) {
|
|
1853
|
-
if (data28 > 100 || isNaN(data28)) {
|
|
1854
|
-
const err89 = { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
|
|
1871
|
+
var _valid7 = _errs95 === errors;
|
|
1872
|
+
valid35 = valid35 || _valid7;
|
|
1873
|
+
if (!valid35) {
|
|
1874
|
+
const _errs98 = errors;
|
|
1875
|
+
if (errors === _errs98) {
|
|
1876
|
+
if (Array.isArray(data21)) {
|
|
1877
|
+
if (data21.length > 2) {
|
|
1878
|
+
const err77 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
1855
1879
|
if (vErrors === null) {
|
|
1856
|
-
vErrors = [
|
|
1880
|
+
vErrors = [err77];
|
|
1857
1881
|
}
|
|
1858
1882
|
else {
|
|
1859
|
-
vErrors.push(
|
|
1883
|
+
vErrors.push(err77);
|
|
1860
1884
|
}
|
|
1861
1885
|
errors++;
|
|
1862
1886
|
}
|
|
1863
1887
|
else {
|
|
1864
|
-
if (
|
|
1865
|
-
const
|
|
1888
|
+
if (data21.length < 0) {
|
|
1889
|
+
const err78 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
|
|
1866
1890
|
if (vErrors === null) {
|
|
1867
|
-
vErrors = [
|
|
1891
|
+
vErrors = [err78];
|
|
1868
1892
|
}
|
|
1869
1893
|
else {
|
|
1870
|
-
vErrors.push(
|
|
1894
|
+
vErrors.push(err78);
|
|
1871
1895
|
}
|
|
1872
1896
|
errors++;
|
|
1873
1897
|
}
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
else {
|
|
1877
|
-
const err91 = { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/translate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1878
|
-
if (vErrors === null) {
|
|
1879
|
-
vErrors = [err91];
|
|
1880
|
-
}
|
|
1881
|
-
else {
|
|
1882
|
-
vErrors.push(err91);
|
|
1883
|
-
}
|
|
1884
|
-
errors++;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
var _valid11 = _errs128 === errors;
|
|
1888
|
-
if (_valid11) {
|
|
1889
|
-
valid46 = true;
|
|
1890
|
-
passing11 = 0;
|
|
1891
|
-
}
|
|
1892
|
-
const _errs131 = errors;
|
|
1893
|
-
if (errors === _errs131) {
|
|
1894
|
-
if (Array.isArray(data28)) {
|
|
1895
|
-
if (data28.length > 2) {
|
|
1896
|
-
const err92 = { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E(t%7C%5Ba-z%5D%5Ba-zA-Z0-9%5D*T)ranslateY%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
1897
|
-
if (vErrors === null) {
|
|
1898
|
-
vErrors = [err92];
|
|
1899
|
-
}
|
|
1900
1898
|
else {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
const _errs134 = errors;
|
|
1912
|
-
if (errors === _errs134) {
|
|
1913
|
-
if ((typeof data29 == "number") && (isFinite(data29))) {
|
|
1914
|
-
if (data29 > 100 || isNaN(data29)) {
|
|
1915
|
-
const err93 = { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i11, schemaPath: "#/$defs/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
|
|
1916
|
-
if (vErrors === null) {
|
|
1917
|
-
vErrors = [err93];
|
|
1918
|
-
}
|
|
1919
|
-
else {
|
|
1920
|
-
vErrors.push(err93);
|
|
1921
|
-
}
|
|
1922
|
-
errors++;
|
|
1899
|
+
var valid37 = true;
|
|
1900
|
+
const len7 = data21.length;
|
|
1901
|
+
for (let i7 = 0; i7 < len7; i7++) {
|
|
1902
|
+
let data22 = data21[i7];
|
|
1903
|
+
const _errs100 = errors;
|
|
1904
|
+
const _errs101 = errors;
|
|
1905
|
+
if (!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) {
|
|
1906
|
+
const err79 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1907
|
+
if (vErrors === null) {
|
|
1908
|
+
vErrors = [err79];
|
|
1923
1909
|
}
|
|
1924
1910
|
else {
|
|
1925
|
-
|
|
1926
|
-
|
|
1911
|
+
vErrors.push(err79);
|
|
1912
|
+
}
|
|
1913
|
+
errors++;
|
|
1914
|
+
}
|
|
1915
|
+
if (errors === _errs101) {
|
|
1916
|
+
if ((typeof data22 == "number") && (isFinite(data22))) {
|
|
1917
|
+
if (data22 < 2 || isNaN(data22)) {
|
|
1918
|
+
const err80 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
|
|
1927
1919
|
if (vErrors === null) {
|
|
1928
|
-
vErrors = [
|
|
1920
|
+
vErrors = [err80];
|
|
1929
1921
|
}
|
|
1930
1922
|
else {
|
|
1931
|
-
vErrors.push(
|
|
1923
|
+
vErrors.push(err80);
|
|
1932
1924
|
}
|
|
1933
1925
|
errors++;
|
|
1934
1926
|
}
|
|
1935
1927
|
}
|
|
1936
1928
|
}
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
vErrors = [err95];
|
|
1941
|
-
}
|
|
1942
|
-
else {
|
|
1943
|
-
vErrors.push(err95);
|
|
1944
|
-
}
|
|
1945
|
-
errors++;
|
|
1929
|
+
var valid37 = _errs100 === errors;
|
|
1930
|
+
if (!valid37) {
|
|
1931
|
+
break;
|
|
1946
1932
|
}
|
|
1947
1933
|
}
|
|
1948
|
-
var valid48 = _errs133 === errors;
|
|
1949
|
-
if (!valid48) {
|
|
1950
|
-
break;
|
|
1951
|
-
}
|
|
1952
1934
|
}
|
|
1953
1935
|
}
|
|
1954
1936
|
}
|
|
1955
1937
|
else {
|
|
1956
|
-
const
|
|
1938
|
+
const err81 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1957
1939
|
if (vErrors === null) {
|
|
1958
|
-
vErrors = [
|
|
1940
|
+
vErrors = [err81];
|
|
1959
1941
|
}
|
|
1960
1942
|
else {
|
|
1961
|
-
vErrors.push(
|
|
1943
|
+
vErrors.push(err81);
|
|
1962
1944
|
}
|
|
1963
1945
|
errors++;
|
|
1964
1946
|
}
|
|
1965
1947
|
}
|
|
1966
|
-
var
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1948
|
+
var _valid7 = _errs98 === errors;
|
|
1949
|
+
valid35 = valid35 || _valid7;
|
|
1950
|
+
}
|
|
1951
|
+
if (!valid35) {
|
|
1952
|
+
const err82 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
1953
|
+
if (vErrors === null) {
|
|
1954
|
+
vErrors = [err82];
|
|
1970
1955
|
}
|
|
1971
1956
|
else {
|
|
1972
|
-
|
|
1973
|
-
valid46 = true;
|
|
1974
|
-
passing11 = 1;
|
|
1975
|
-
}
|
|
1957
|
+
vErrors.push(err82);
|
|
1976
1958
|
}
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1959
|
+
errors++;
|
|
1960
|
+
validate10.errors = vErrors;
|
|
1961
|
+
return false;
|
|
1962
|
+
}
|
|
1963
|
+
else {
|
|
1964
|
+
errors = _errs94;
|
|
1965
|
+
if (vErrors !== null) {
|
|
1966
|
+
if (_errs94) {
|
|
1967
|
+
vErrors.length = _errs94;
|
|
1981
1968
|
}
|
|
1982
1969
|
else {
|
|
1983
|
-
vErrors
|
|
1970
|
+
vErrors = null;
|
|
1984
1971
|
}
|
|
1985
|
-
errors++;
|
|
1986
|
-
validate20.errors = vErrors;
|
|
1987
|
-
return false;
|
|
1988
1972
|
}
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1973
|
+
}
|
|
1974
|
+
var valid19 = _errs93 === errors;
|
|
1975
|
+
if (!valid19) {
|
|
1976
|
+
break;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
if (valid19) {
|
|
1981
|
+
var valid19 = true;
|
|
1982
|
+
for (const key9 in data) {
|
|
1983
|
+
if (pattern5.test(key9)) {
|
|
1984
|
+
const _errs103 = errors;
|
|
1985
|
+
if (!(validate13(data[key9], { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key9, rootData }))) {
|
|
1986
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
1987
|
+
errors = vErrors.length;
|
|
1999
1988
|
}
|
|
2000
|
-
var
|
|
2001
|
-
if (!
|
|
1989
|
+
var valid19 = _errs103 === errors;
|
|
1990
|
+
if (!valid19) {
|
|
2002
1991
|
break;
|
|
2003
1992
|
}
|
|
2004
1993
|
}
|
|
2005
1994
|
}
|
|
2006
|
-
if (
|
|
2007
|
-
var
|
|
2008
|
-
for (const
|
|
2009
|
-
if (
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
let passing12 = null;
|
|
2015
|
-
const _errs138 = errors;
|
|
2016
|
-
const _errs139 = errors;
|
|
2017
|
-
if (errors === _errs139) {
|
|
2018
|
-
if ((typeof data30 == "number") && (isFinite(data30))) {
|
|
2019
|
-
if (data30 > 100 || isNaN(data30)) {
|
|
2020
|
-
const err98 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
|
|
2021
|
-
if (vErrors === null) {
|
|
2022
|
-
vErrors = [err98];
|
|
2023
|
-
}
|
|
2024
|
-
else {
|
|
2025
|
-
vErrors.push(err98);
|
|
2026
|
-
}
|
|
2027
|
-
errors++;
|
|
2028
|
-
}
|
|
2029
|
-
else {
|
|
2030
|
-
if (data30 < -100 || isNaN(data30)) {
|
|
2031
|
-
const err99 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/translate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -100 }, message: "must be >= -100" };
|
|
2032
|
-
if (vErrors === null) {
|
|
2033
|
-
vErrors = [err99];
|
|
2034
|
-
}
|
|
2035
|
-
else {
|
|
2036
|
-
vErrors.push(err99);
|
|
2037
|
-
}
|
|
2038
|
-
errors++;
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
else {
|
|
2043
|
-
const err100 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/translate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
2044
|
-
if (vErrors === null) {
|
|
2045
|
-
vErrors = [err100];
|
|
2046
|
-
}
|
|
2047
|
-
else {
|
|
2048
|
-
vErrors.push(err100);
|
|
2049
|
-
}
|
|
2050
|
-
errors++;
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
var _valid12 = _errs138 === errors;
|
|
2054
|
-
if (_valid12) {
|
|
2055
|
-
valid50 = true;
|
|
2056
|
-
passing12 = 0;
|
|
2057
|
-
}
|
|
2058
|
-
const _errs141 = errors;
|
|
2059
|
-
if (errors === _errs141) {
|
|
2060
|
-
if (Array.isArray(data30)) {
|
|
2061
|
-
if (data30.length > 2) {
|
|
2062
|
-
const err101 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E(t%7C%5Ba-z%5D%5Ba-zA-Z0-9%5D*T)ranslateX%24/oneOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
2063
|
-
if (vErrors === null) {
|
|
2064
|
-
vErrors = [err101];
|
|
2065
|
-
}
|
|
2066
|
-
else {
|
|
2067
|
-
vErrors.push(err101);
|
|
2068
|
-
}
|
|
2069
|
-
errors++;
|
|
2070
|
-
}
|
|
2071
|
-
else {
|
|
2072
|
-
var valid52 = true;
|
|
2073
|
-
const len12 = data30.length;
|
|
2074
|
-
for (let i12 = 0; i12 < len12; i12++) {
|
|
2075
|
-
let data31 = data30[i12];
|
|
2076
|
-
const _errs143 = errors;
|
|
2077
|
-
const _errs144 = errors;
|
|
2078
|
-
if (errors === _errs144) {
|
|
2079
|
-
if ((typeof data31 == "number") && (isFinite(data31))) {
|
|
2080
|
-
if (data31 > 100 || isNaN(data31)) {
|
|
2081
|
-
const err102 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i12, schemaPath: "#/$defs/translate/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
|
|
2082
|
-
if (vErrors === null) {
|
|
2083
|
-
vErrors = [err102];
|
|
2084
|
-
}
|
|
2085
|
-
else {
|
|
2086
|
-
vErrors.push(err102);
|
|
2087
|
-
}
|
|
2088
|
-
errors++;
|
|
2089
|
-
}
|
|
2090
|
-
else {
|
|
2091
|
-
if (data31 < -100 || isNaN(data31)) {
|
|
2092
|
-
const err103 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i12, schemaPath: "#/$defs/translate/minimum", keyword: "minimum", params: { comparison: ">=", limit: -100 }, message: "must be >= -100" };
|
|
2093
|
-
if (vErrors === null) {
|
|
2094
|
-
vErrors = [err103];
|
|
2095
|
-
}
|
|
2096
|
-
else {
|
|
2097
|
-
vErrors.push(err103);
|
|
2098
|
-
}
|
|
2099
|
-
errors++;
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
else {
|
|
2104
|
-
const err104 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i12, schemaPath: "#/$defs/translate/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
2105
|
-
if (vErrors === null) {
|
|
2106
|
-
vErrors = [err104];
|
|
2107
|
-
}
|
|
2108
|
-
else {
|
|
2109
|
-
vErrors.push(err104);
|
|
2110
|
-
}
|
|
2111
|
-
errors++;
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
var valid52 = _errs143 === errors;
|
|
2115
|
-
if (!valid52) {
|
|
2116
|
-
break;
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
else {
|
|
2122
|
-
const err105 = { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E(t%7C%5Ba-z%5D%5Ba-zA-Z0-9%5D*T)ranslateX%24/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2123
|
-
if (vErrors === null) {
|
|
2124
|
-
vErrors = [err105];
|
|
2125
|
-
}
|
|
2126
|
-
else {
|
|
2127
|
-
vErrors.push(err105);
|
|
2128
|
-
}
|
|
2129
|
-
errors++;
|
|
2130
|
-
}
|
|
1995
|
+
if (valid19) {
|
|
1996
|
+
var valid19 = true;
|
|
1997
|
+
for (const key10 in data) {
|
|
1998
|
+
if (pattern6.test(key10)) {
|
|
1999
|
+
const _errs105 = errors;
|
|
2000
|
+
if (!(validate13(data[key10], { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key10, rootData }))) {
|
|
2001
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
2002
|
+
errors = vErrors.length;
|
|
2131
2003
|
}
|
|
2132
|
-
var
|
|
2133
|
-
if (
|
|
2134
|
-
|
|
2135
|
-
passing12 = [passing12, 1];
|
|
2136
|
-
}
|
|
2137
|
-
else {
|
|
2138
|
-
if (_valid12) {
|
|
2139
|
-
valid50 = true;
|
|
2140
|
-
passing12 = 1;
|
|
2141
|
-
}
|
|
2004
|
+
var valid19 = _errs105 === errors;
|
|
2005
|
+
if (!valid19) {
|
|
2006
|
+
break;
|
|
2142
2007
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
if (valid19) {
|
|
2011
|
+
var valid19 = true;
|
|
2012
|
+
for (const key11 in data) {
|
|
2013
|
+
if (pattern7.test(key11)) {
|
|
2014
|
+
const _errs107 = errors;
|
|
2015
|
+
if (!(validate16(data[key11], { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key11, rootData }))) {
|
|
2016
|
+
vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
|
|
2017
|
+
errors = vErrors.length;
|
|
2147
2018
|
}
|
|
2148
|
-
|
|
2149
|
-
|
|
2019
|
+
var valid19 = _errs107 === errors;
|
|
2020
|
+
if (!valid19) {
|
|
2021
|
+
break;
|
|
2150
2022
|
}
|
|
2151
|
-
errors++;
|
|
2152
|
-
validate20.errors = vErrors;
|
|
2153
|
-
return false;
|
|
2154
2023
|
}
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2024
|
+
}
|
|
2025
|
+
if (valid19) {
|
|
2026
|
+
var valid19 = true;
|
|
2027
|
+
for (const key12 in data) {
|
|
2028
|
+
if (pattern8.test(key12)) {
|
|
2029
|
+
const _errs109 = errors;
|
|
2030
|
+
if (!(validate16(data[key12], { instancePath: instancePath + "/" + key12.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key12, rootData }))) {
|
|
2031
|
+
vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
|
|
2032
|
+
errors = vErrors.length;
|
|
2160
2033
|
}
|
|
2161
|
-
|
|
2162
|
-
|
|
2034
|
+
var valid19 = _errs109 === errors;
|
|
2035
|
+
if (!valid19) {
|
|
2036
|
+
break;
|
|
2163
2037
|
}
|
|
2164
2038
|
}
|
|
2165
2039
|
}
|
|
2166
|
-
var valid21 = _errs136 === errors;
|
|
2167
|
-
if (!valid21) {
|
|
2168
|
-
break;
|
|
2169
|
-
}
|
|
2170
2040
|
}
|
|
2171
2041
|
}
|
|
2172
2042
|
}
|
|
@@ -2189,15 +2059,14 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2189
2059
|
}
|
|
2190
2060
|
}
|
|
2191
2061
|
else {
|
|
2192
|
-
|
|
2062
|
+
validate10.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2193
2063
|
return false;
|
|
2194
2064
|
}
|
|
2195
|
-
}
|
|
2196
|
-
validate20.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2065
|
+
} validate10.errors = vErrors; return errors === 0; }
|
|
2197
2066
|
export class OptionsValidator {
|
|
2198
2067
|
static validate(data) {
|
|
2199
|
-
if (!
|
|
2200
|
-
throw new OptionsValidationError(
|
|
2068
|
+
if (!validate10(data)) {
|
|
2069
|
+
throw new OptionsValidationError(validate10.errors || []);
|
|
2201
2070
|
}
|
|
2202
2071
|
}
|
|
2203
2072
|
}
|