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