@keymanapp/common-types 18.0.41-alpha → 18.0.46-alpha
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/build/src/consts/virtual-key-constants.d.ts +191 -191
- package/build/src/consts/virtual-key-constants.js +221 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +5 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +72 -72
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +28 -28
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +120 -120
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +95 -95
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +52 -52
- package/build/src/kmx/element-string.d.ts +23 -23
- package/build/src/kmx/element-string.js +125 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +20 -20
- package/build/src/kmx/keyman-targets.js +79 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +32 -32
- package/build/src/kmx/kmx-builder.js +189 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +13 -13
- package/build/src/kmx/kmx-file-reader.js +134 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +18 -18
- package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +28 -28
- package/build/src/kmx/kmx-plus-builder/build-elem.js +89 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +56 -56
- package/build/src/kmx/kmx-plus-builder/build-keys.js +107 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +53 -53
- package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +35 -35
- package/build/src/kmx/kmx-plus-builder/build-list.js +66 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +11 -11
- package/build/src/kmx/kmx-plus-builder/build-loca.js +21 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +16 -16
- package/build/src/kmx/kmx-plus-builder/build-meta.js +20 -20
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +22 -22
- package/build/src/kmx/kmx-plus-builder/build-strs.js +46 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +32 -32
- package/build/src/kmx/kmx-plus-builder/build-tran.js +69 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +30 -30
- package/build/src/kmx/kmx-plus-builder/build-uset.js +60 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +21 -21
- package/build/src/kmx/kmx-plus-builder/build-vars.js +48 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +9 -9
- package/build/src/kmx/kmx-plus-builder/builder-section.js +2 -2
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +42 -42
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +137 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +322 -322
- package/build/src/kmx/kmx-plus.js +830 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +233 -233
- package/build/src/kmx/kmx.js +302 -302
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.d.ts +35 -35
- package/build/src/kmx/string-list.js +88 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +78 -78
- package/build/src/kpj/keyman-developer-project.js +195 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +18 -18
- package/build/src/kpj/kpj-file-reader.js +119 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +39 -39
- package/build/src/kpj/kpj-file.js +10 -10
- package/build/src/kvk/kvk-file-reader.d.ts +4 -4
- package/build/src/kvk/kvk-file-reader.js +37 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +19 -19
- package/build/src/kvk/kvk-file-writer.js +77 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +66 -66
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +90 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +23 -23
- package/build/src/kvk/kvks-file-reader.js +175 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +6 -6
- package/build/src/kvk/kvks-file-writer.js +106 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +43 -43
- package/build/src/kvk/kvks-file.js +9 -9
- package/build/src/kvk/visual-keyboard.d.ts +44 -44
- package/build/src/kvk/visual-keyboard.js +75 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +60 -60
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +19 -19
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +95 -95
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +409 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +170 -170
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +55 -55
- package/build/src/ldml-keyboard/pattern-parser.d.ts +201 -201
- package/build/src/ldml-keyboard/pattern-parser.js +490 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +37 -37
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +27 -27
- package/build/src/main.d.ts +33 -33
- package/build/src/main.js +32 -32
- package/build/src/package/kmp-json-file.d.ts +115 -115
- package/build/src/package/kmp-json-file.js +1 -1
- package/build/src/package/kps-file.d.ts +175 -175
- package/build/src/package/kps-file.js +15 -15
- package/build/src/schema-validators.d.ts +13 -13
- package/build/src/schema-validators.js +25 -25
- package/build/src/schemas/displaymap.schema.d.ts +57 -57
- package/build/src/schemas/displaymap.schema.js +35 -35
- package/build/src/schemas/displaymap.schema.validator.d.mts +2 -2
- package/build/src/schemas/displaymap.schema.validator.mjs +266 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +209 -209
- package/build/src/schemas/keyboard_info.schema.js +98 -98
- package/build/src/schemas/keyboard_info.schema.validator.d.mts +2 -2
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1160 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +227 -227
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +151 -151
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1094 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -229
- package/build/src/schemas/keyman-touch-layout.spec.js +140 -140
- package/build/src/schemas/keyman-touch-layout.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1436 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +324 -324
- package/build/src/schemas/kmp.schema.js +353 -353
- package/build/src/schemas/kmp.schema.validator.d.mts +2 -2
- package/build/src/schemas/kmp.schema.validator.mjs +1627 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +152 -152
- package/build/src/schemas/kpj-9.0.schema.js +131 -131
- package/build/src/schemas/kpj-9.0.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +655 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +122 -122
- package/build/src/schemas/kpj.schema.js +129 -129
- package/build/src/schemas/kpj.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj.schema.validator.mjs +515 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +160 -160
- package/build/src/schemas/kvks.schema.js +182 -182
- package/build/src/schemas/kvks.schema.validator.d.mts +2 -2
- package/build/src/schemas/kvks.schema.validator.mjs +625 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +635 -635
- package/build/src/schemas/ldml-keyboard3.schema.js +696 -696
- package/build/src/schemas/ldml-keyboard3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3117 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +192 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.js +225 -225
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +744 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +2300 -2300
- package/build/src/schemas.js +23 -23
- package/build/src/util/common-events.d.ts +44 -44
- package/build/src/util/common-events.js +26 -26
- package/build/src/util/compiler-interfaces.d.ts +371 -371
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.js +380 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.d.ts +5 -5
- package/build/src/util/errors.js +5 -5
- package/build/src/util/file-types.d.ts +93 -93
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +142 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +98 -98
- package/build/src/util/util.js +368 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,1629 +1,1629 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
-
};
|
|
7
|
-
// obj/schemas/kmp.schema.validator.cjs
|
|
8
|
-
var require_kmp_schema_validator = __commonJS({
|
|
9
|
-
"obj/schemas/kmp.schema.validator.cjs"(exports, module) {
|
|
10
|
-
module.exports = validate20;
|
|
11
|
-
module.exports.default = validate20;
|
|
12
|
-
var schema23 = { "type": "object", "properties": { "system": { "$ref": "#/definitions/system" }, "options": { "$ref": "#/definitions/options" }, "startMenu": { "$ref": "#/definitions/startMenu" }, "strings": { "$ref": "#/definitions/strings" }, "files": { "$ref": "#/definitions/files" }, "keyboards": { "$ref": "#/definitions/keyboards" }, "lexicalModels": { "$ref": "#/definitions/lexicalModels" }, "info": { "$ref": "#/definitions/info" }, "relatedPackages": { "type": "array", "items": { "$ref": "#/definitions/relatedPackage" } } }, "additionalProperties": false, "required": ["options", "system"] };
|
|
13
|
-
var schema45 = { "type": "object", "properties": { "id": { "type": "string" }, "relationship": { "type": "string", "enum": ["deprecates", "related"] } }, "additionalProperties": false, "required": ["id", "relationship"] };
|
|
14
|
-
var func4 = Object.prototype.hasOwnProperty;
|
|
15
|
-
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
16
|
-
let vErrors = null;
|
|
17
|
-
let errors = 0;
|
|
18
|
-
if (errors === 0) {
|
|
19
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
20
|
-
const _errs1 = errors;
|
|
21
|
-
for (const key0 in data) {
|
|
22
|
-
if (!(key0 === "folder" || key0 === "addUninstallEntry" || key0 === "items")) {
|
|
23
|
-
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
24
|
-
return false;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if (_errs1 === errors) {
|
|
29
|
-
if (data.folder !== void 0) {
|
|
30
|
-
const _errs2 = errors;
|
|
31
|
-
if (typeof data.folder !== "string") {
|
|
32
|
-
validate22.errors = [{ instancePath: instancePath + "/folder", schemaPath: "#/properties/folder/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
var valid0 = _errs2 === errors;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
var valid0 = true;
|
|
39
|
-
}
|
|
40
|
-
if (valid0) {
|
|
41
|
-
if (data.addUninstallEntry !== void 0) {
|
|
42
|
-
const _errs4 = errors;
|
|
43
|
-
if (typeof data.addUninstallEntry !== "boolean") {
|
|
44
|
-
validate22.errors = [{ instancePath: instancePath + "/addUninstallEntry", schemaPath: "#/properties/addUninstallEntry/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
var valid0 = _errs4 === errors;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
var valid0 = true;
|
|
51
|
-
}
|
|
52
|
-
if (valid0) {
|
|
53
|
-
if (data.items !== void 0) {
|
|
54
|
-
let data2 = data.items;
|
|
55
|
-
const _errs6 = errors;
|
|
56
|
-
if (errors === _errs6) {
|
|
57
|
-
if (Array.isArray(data2)) {
|
|
58
|
-
var valid1 = true;
|
|
59
|
-
const len0 = data2.length;
|
|
60
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
61
|
-
let data3 = data2[i0];
|
|
62
|
-
const _errs8 = errors;
|
|
63
|
-
const _errs9 = errors;
|
|
64
|
-
if (errors === _errs9) {
|
|
65
|
-
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
66
|
-
let missing0;
|
|
67
|
-
if (data3.name === void 0 && (missing0 = "name") || data3.filename === void 0 && (missing0 = "filename")) {
|
|
68
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
const _errs11 = errors;
|
|
73
|
-
for (const key1 in data3) {
|
|
74
|
-
if (!(key1 === "name" || key1 === "filename" || key1 === "arguments" || key1 === "icon" || key1 === "location")) {
|
|
75
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
76
|
-
return false;
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (_errs11 === errors) {
|
|
81
|
-
if (data3.name !== void 0) {
|
|
82
|
-
const _errs12 = errors;
|
|
83
|
-
if (typeof data3.name !== "string") {
|
|
84
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/name", schemaPath: "#/definitions/startMenuItem/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
var valid3 = _errs12 === errors;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
var valid3 = true;
|
|
91
|
-
}
|
|
92
|
-
if (valid3) {
|
|
93
|
-
if (data3.filename !== void 0) {
|
|
94
|
-
const _errs14 = errors;
|
|
95
|
-
if (typeof data3.filename !== "string") {
|
|
96
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/filename", schemaPath: "#/definitions/startMenuItem/properties/filename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
var valid3 = _errs14 === errors;
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
var valid3 = true;
|
|
103
|
-
}
|
|
104
|
-
if (valid3) {
|
|
105
|
-
if (data3.arguments !== void 0) {
|
|
106
|
-
const _errs16 = errors;
|
|
107
|
-
if (typeof data3.arguments !== "string") {
|
|
108
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/arguments", schemaPath: "#/definitions/startMenuItem/properties/arguments/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
var valid3 = _errs16 === errors;
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
var valid3 = true;
|
|
115
|
-
}
|
|
116
|
-
if (valid3) {
|
|
117
|
-
if (data3.icon !== void 0) {
|
|
118
|
-
const _errs18 = errors;
|
|
119
|
-
if (typeof data3.icon !== "string") {
|
|
120
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/icon", schemaPath: "#/definitions/startMenuItem/properties/icon/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
var valid3 = _errs18 === errors;
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
var valid3 = true;
|
|
127
|
-
}
|
|
128
|
-
if (valid3) {
|
|
129
|
-
if (data3.location !== void 0) {
|
|
130
|
-
let data8 = data3.location;
|
|
131
|
-
const _errs20 = errors;
|
|
132
|
-
if (!(typeof data8 == "number" && isFinite(data8))) {
|
|
133
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/location", schemaPath: "#/definitions/startMenuItem/properties/location/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
var valid3 = _errs20 === errors;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
var valid3 = true;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
150
|
-
return false;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
var valid1 = _errs8 === errors;
|
|
154
|
-
if (!valid1) {
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
validate22.errors = [{ instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
var valid0 = _errs6 === errors;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
var valid0 = true;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
validate22.errors = vErrors;
|
|
179
|
-
return errors === 0;
|
|
180
|
-
}
|
|
181
|
-
function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
182
|
-
let vErrors = null;
|
|
183
|
-
let errors = 0;
|
|
184
|
-
if (errors === 0) {
|
|
185
|
-
if (Array.isArray(data)) {
|
|
186
|
-
var valid0 = true;
|
|
187
|
-
const len0 = data.length;
|
|
188
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
189
|
-
let data0 = data[i0];
|
|
190
|
-
const _errs1 = errors;
|
|
191
|
-
const _errs2 = errors;
|
|
192
|
-
if (errors === _errs2) {
|
|
193
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
194
|
-
let missing0;
|
|
195
|
-
if (data0.name === void 0 && (missing0 = "name") || data0.description === void 0 && (missing0 = "description")) {
|
|
196
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
197
|
-
return false;
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
const _errs4 = errors;
|
|
201
|
-
for (const key0 in data0) {
|
|
202
|
-
if (!(key0 === "name" || key0 === "description" || key0 === "copyLocation")) {
|
|
203
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
204
|
-
return false;
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
if (_errs4 === errors) {
|
|
209
|
-
if (data0.name !== void 0) {
|
|
210
|
-
const _errs5 = errors;
|
|
211
|
-
if (typeof data0.name !== "string") {
|
|
212
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/name", schemaPath: "#/definitions/file/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
213
|
-
return false;
|
|
214
|
-
}
|
|
215
|
-
var valid2 = _errs5 === errors;
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
var valid2 = true;
|
|
219
|
-
}
|
|
220
|
-
if (valid2) {
|
|
221
|
-
if (data0.description !== void 0) {
|
|
222
|
-
const _errs7 = errors;
|
|
223
|
-
if (typeof data0.description !== "string") {
|
|
224
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/description", schemaPath: "#/definitions/file/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
225
|
-
return false;
|
|
226
|
-
}
|
|
227
|
-
var valid2 = _errs7 === errors;
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
var valid2 = true;
|
|
231
|
-
}
|
|
232
|
-
if (valid2) {
|
|
233
|
-
if (data0.copyLocation !== void 0) {
|
|
234
|
-
let data3 = data0.copyLocation;
|
|
235
|
-
const _errs9 = errors;
|
|
236
|
-
if (!(typeof data3 == "number" && isFinite(data3))) {
|
|
237
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/copyLocation", schemaPath: "#/definitions/file/properties/copyLocation/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
238
|
-
return false;
|
|
239
|
-
}
|
|
240
|
-
var valid2 = _errs9 === errors;
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
var valid2 = true;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
252
|
-
return false;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
var valid0 = _errs1 === errors;
|
|
256
|
-
if (!valid0) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
validate24.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
263
|
-
return false;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
validate24.errors = vErrors;
|
|
267
|
-
return errors === 0;
|
|
268
|
-
}
|
|
269
|
-
var schema32 = { "type": "object", "properties": { "name": { "type": "string" }, "id": { "type": "string" }, "version": { "type": "string" }, "oskFont": { "type": "string" }, "displayFont": { "type": "string" }, "rtl": { "type": "boolean" }, "languages": { "type": "array", "items": { "$ref": "#/definitions/keyboardLanguage" } }, "examples": { "type": "array", "items": { "$ref": "#/definitions/keyboardExample" } }, "webOskFonts": { "type": "array", "items": { "type": "string" } }, "webDisplayFonts": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false, "required": ["name", "id", "version"] };
|
|
270
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
271
|
-
let vErrors = null;
|
|
272
|
-
let errors = 0;
|
|
273
|
-
if (errors === 0) {
|
|
274
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
275
|
-
let missing0;
|
|
276
|
-
if (data.name === void 0 && (missing0 = "name") || data.id === void 0 && (missing0 = "id") || data.version === void 0 && (missing0 = "version")) {
|
|
277
|
-
validate27.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
278
|
-
return false;
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
const _errs1 = errors;
|
|
282
|
-
for (const key0 in data) {
|
|
283
|
-
if (!func4.call(schema32.properties, key0)) {
|
|
284
|
-
validate27.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
285
|
-
return false;
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
if (_errs1 === errors) {
|
|
290
|
-
if (data.name !== void 0) {
|
|
291
|
-
const _errs2 = errors;
|
|
292
|
-
if (typeof data.name !== "string") {
|
|
293
|
-
validate27.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
294
|
-
return false;
|
|
295
|
-
}
|
|
296
|
-
var valid0 = _errs2 === errors;
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
var valid0 = true;
|
|
300
|
-
}
|
|
301
|
-
if (valid0) {
|
|
302
|
-
if (data.id !== void 0) {
|
|
303
|
-
const _errs4 = errors;
|
|
304
|
-
if (typeof data.id !== "string") {
|
|
305
|
-
validate27.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
306
|
-
return false;
|
|
307
|
-
}
|
|
308
|
-
var valid0 = _errs4 === errors;
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
var valid0 = true;
|
|
312
|
-
}
|
|
313
|
-
if (valid0) {
|
|
314
|
-
if (data.version !== void 0) {
|
|
315
|
-
const _errs6 = errors;
|
|
316
|
-
if (typeof data.version !== "string") {
|
|
317
|
-
validate27.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
318
|
-
return false;
|
|
319
|
-
}
|
|
320
|
-
var valid0 = _errs6 === errors;
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
var valid0 = true;
|
|
324
|
-
}
|
|
325
|
-
if (valid0) {
|
|
326
|
-
if (data.oskFont !== void 0) {
|
|
327
|
-
const _errs8 = errors;
|
|
328
|
-
if (typeof data.oskFont !== "string") {
|
|
329
|
-
validate27.errors = [{ instancePath: instancePath + "/oskFont", schemaPath: "#/properties/oskFont/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
330
|
-
return false;
|
|
331
|
-
}
|
|
332
|
-
var valid0 = _errs8 === errors;
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
var valid0 = true;
|
|
336
|
-
}
|
|
337
|
-
if (valid0) {
|
|
338
|
-
if (data.displayFont !== void 0) {
|
|
339
|
-
const _errs10 = errors;
|
|
340
|
-
if (typeof data.displayFont !== "string") {
|
|
341
|
-
validate27.errors = [{ instancePath: instancePath + "/displayFont", schemaPath: "#/properties/displayFont/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
342
|
-
return false;
|
|
343
|
-
}
|
|
344
|
-
var valid0 = _errs10 === errors;
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
var valid0 = true;
|
|
348
|
-
}
|
|
349
|
-
if (valid0) {
|
|
350
|
-
if (data.rtl !== void 0) {
|
|
351
|
-
const _errs12 = errors;
|
|
352
|
-
if (typeof data.rtl !== "boolean") {
|
|
353
|
-
validate27.errors = [{ instancePath: instancePath + "/rtl", schemaPath: "#/properties/rtl/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
|
-
var valid0 = _errs12 === errors;
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
var valid0 = true;
|
|
360
|
-
}
|
|
361
|
-
if (valid0) {
|
|
362
|
-
if (data.languages !== void 0) {
|
|
363
|
-
let data6 = data.languages;
|
|
364
|
-
const _errs14 = errors;
|
|
365
|
-
if (errors === _errs14) {
|
|
366
|
-
if (Array.isArray(data6)) {
|
|
367
|
-
var valid1 = true;
|
|
368
|
-
const len0 = data6.length;
|
|
369
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
370
|
-
let data7 = data6[i0];
|
|
371
|
-
const _errs16 = errors;
|
|
372
|
-
const _errs17 = errors;
|
|
373
|
-
if (errors === _errs17) {
|
|
374
|
-
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
375
|
-
let missing1;
|
|
376
|
-
if (data7.id === void 0 && (missing1 = "id") || data7.name === void 0 && (missing1 = "name")) {
|
|
377
|
-
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
378
|
-
return false;
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
const _errs19 = errors;
|
|
382
|
-
for (const key1 in data7) {
|
|
383
|
-
if (!(key1 === "name" || key1 === "id")) {
|
|
384
|
-
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
385
|
-
return false;
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
if (_errs19 === errors) {
|
|
390
|
-
if (data7.name !== void 0) {
|
|
391
|
-
const _errs20 = errors;
|
|
392
|
-
if (typeof data7.name !== "string") {
|
|
393
|
-
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/name", schemaPath: "#/definitions/keyboardLanguage/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
394
|
-
return false;
|
|
395
|
-
}
|
|
396
|
-
var valid3 = _errs20 === errors;
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
var valid3 = true;
|
|
400
|
-
}
|
|
401
|
-
if (valid3) {
|
|
402
|
-
if (data7.id !== void 0) {
|
|
403
|
-
const _errs22 = errors;
|
|
404
|
-
if (typeof data7.id !== "string") {
|
|
405
|
-
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/id", schemaPath: "#/definitions/keyboardLanguage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
406
|
-
return false;
|
|
407
|
-
}
|
|
408
|
-
var valid3 = _errs22 === errors;
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
var valid3 = true;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
419
|
-
return false;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
var valid1 = _errs16 === errors;
|
|
423
|
-
if (!valid1) {
|
|
424
|
-
break;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
validate27.errors = [{ instancePath: instancePath + "/languages", schemaPath: "#/properties/languages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
var valid0 = _errs14 === errors;
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
var valid0 = true;
|
|
437
|
-
}
|
|
438
|
-
if (valid0) {
|
|
439
|
-
if (data.examples !== void 0) {
|
|
440
|
-
let data10 = data.examples;
|
|
441
|
-
const _errs24 = errors;
|
|
442
|
-
if (errors === _errs24) {
|
|
443
|
-
if (Array.isArray(data10)) {
|
|
444
|
-
var valid4 = true;
|
|
445
|
-
const len1 = data10.length;
|
|
446
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
447
|
-
let data11 = data10[i1];
|
|
448
|
-
const _errs26 = errors;
|
|
449
|
-
const _errs27 = errors;
|
|
450
|
-
if (errors === _errs27) {
|
|
451
|
-
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
452
|
-
let missing2;
|
|
453
|
-
if (data11.id === void 0 && (missing2 = "id") || data11.keys === void 0 && (missing2 = "keys")) {
|
|
454
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
455
|
-
return false;
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
const _errs29 = errors;
|
|
459
|
-
for (const key2 in data11) {
|
|
460
|
-
if (!(key2 === "id" || key2 === "keys" || key2 === "text" || key2 === "note")) {
|
|
461
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
462
|
-
return false;
|
|
463
|
-
break;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if (_errs29 === errors) {
|
|
467
|
-
if (data11.id !== void 0) {
|
|
468
|
-
const _errs30 = errors;
|
|
469
|
-
if (typeof data11.id !== "string") {
|
|
470
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/id", schemaPath: "#/definitions/keyboardExample/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
471
|
-
return false;
|
|
472
|
-
}
|
|
473
|
-
var valid6 = _errs30 === errors;
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
var valid6 = true;
|
|
477
|
-
}
|
|
478
|
-
if (valid6) {
|
|
479
|
-
if (data11.keys !== void 0) {
|
|
480
|
-
const _errs32 = errors;
|
|
481
|
-
if (typeof data11.keys !== "string") {
|
|
482
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/keys", schemaPath: "#/definitions/keyboardExample/properties/keys/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
483
|
-
return false;
|
|
484
|
-
}
|
|
485
|
-
var valid6 = _errs32 === errors;
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
var valid6 = true;
|
|
489
|
-
}
|
|
490
|
-
if (valid6) {
|
|
491
|
-
if (data11.text !== void 0) {
|
|
492
|
-
const _errs34 = errors;
|
|
493
|
-
if (typeof data11.text !== "string") {
|
|
494
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/text", schemaPath: "#/definitions/keyboardExample/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
495
|
-
return false;
|
|
496
|
-
}
|
|
497
|
-
var valid6 = _errs34 === errors;
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
var valid6 = true;
|
|
501
|
-
}
|
|
502
|
-
if (valid6) {
|
|
503
|
-
if (data11.note !== void 0) {
|
|
504
|
-
const _errs36 = errors;
|
|
505
|
-
if (typeof data11.note !== "string") {
|
|
506
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/note", schemaPath: "#/definitions/keyboardExample/properties/note/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
507
|
-
return false;
|
|
508
|
-
}
|
|
509
|
-
var valid6 = _errs36 === errors;
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
var valid6 = true;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
else {
|
|
521
|
-
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
522
|
-
return false;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
var valid4 = _errs26 === errors;
|
|
526
|
-
if (!valid4) {
|
|
527
|
-
break;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
else {
|
|
532
|
-
validate27.errors = [{ instancePath: instancePath + "/examples", schemaPath: "#/properties/examples/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
533
|
-
return false;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
var valid0 = _errs24 === errors;
|
|
537
|
-
}
|
|
538
|
-
else {
|
|
539
|
-
var valid0 = true;
|
|
540
|
-
}
|
|
541
|
-
if (valid0) {
|
|
542
|
-
if (data.webOskFonts !== void 0) {
|
|
543
|
-
let data16 = data.webOskFonts;
|
|
544
|
-
const _errs38 = errors;
|
|
545
|
-
if (errors === _errs38) {
|
|
546
|
-
if (Array.isArray(data16)) {
|
|
547
|
-
var valid7 = true;
|
|
548
|
-
const len2 = data16.length;
|
|
549
|
-
for (let i2 = 0; i2 < len2; i2++) {
|
|
550
|
-
const _errs40 = errors;
|
|
551
|
-
if (typeof data16[i2] !== "string") {
|
|
552
|
-
validate27.errors = [{ instancePath: instancePath + "/webOskFonts/" + i2, schemaPath: "#/properties/webOskFonts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
553
|
-
return false;
|
|
554
|
-
}
|
|
555
|
-
var valid7 = _errs40 === errors;
|
|
556
|
-
if (!valid7) {
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
validate27.errors = [{ instancePath: instancePath + "/webOskFonts", schemaPath: "#/properties/webOskFonts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
563
|
-
return false;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
var valid0 = _errs38 === errors;
|
|
567
|
-
}
|
|
568
|
-
else {
|
|
569
|
-
var valid0 = true;
|
|
570
|
-
}
|
|
571
|
-
if (valid0) {
|
|
572
|
-
if (data.webDisplayFonts !== void 0) {
|
|
573
|
-
let data18 = data.webDisplayFonts;
|
|
574
|
-
const _errs42 = errors;
|
|
575
|
-
if (errors === _errs42) {
|
|
576
|
-
if (Array.isArray(data18)) {
|
|
577
|
-
var valid8 = true;
|
|
578
|
-
const len3 = data18.length;
|
|
579
|
-
for (let i3 = 0; i3 < len3; i3++) {
|
|
580
|
-
const _errs44 = errors;
|
|
581
|
-
if (typeof data18[i3] !== "string") {
|
|
582
|
-
validate27.errors = [{ instancePath: instancePath + "/webDisplayFonts/" + i3, schemaPath: "#/properties/webDisplayFonts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
|
-
var valid8 = _errs44 === errors;
|
|
586
|
-
if (!valid8) {
|
|
587
|
-
break;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
validate27.errors = [{ instancePath: instancePath + "/webDisplayFonts", schemaPath: "#/properties/webDisplayFonts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
593
|
-
return false;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
var valid0 = _errs42 === errors;
|
|
597
|
-
}
|
|
598
|
-
else {
|
|
599
|
-
var valid0 = true;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
validate27.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
615
|
-
return false;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
validate27.errors = vErrors;
|
|
619
|
-
return errors === 0;
|
|
620
|
-
}
|
|
621
|
-
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
622
|
-
let vErrors = null;
|
|
623
|
-
let errors = 0;
|
|
624
|
-
if (errors === 0) {
|
|
625
|
-
if (Array.isArray(data)) {
|
|
626
|
-
var valid0 = true;
|
|
627
|
-
const len0 = data.length;
|
|
628
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
629
|
-
const _errs1 = errors;
|
|
630
|
-
if (!validate27(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData })) {
|
|
631
|
-
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
632
|
-
errors = vErrors.length;
|
|
633
|
-
}
|
|
634
|
-
var valid0 = _errs1 === errors;
|
|
635
|
-
if (!valid0) {
|
|
636
|
-
break;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
else {
|
|
641
|
-
validate26.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
validate26.errors = vErrors;
|
|
646
|
-
return errors === 0;
|
|
647
|
-
}
|
|
648
|
-
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
649
|
-
let vErrors = null;
|
|
650
|
-
let errors = 0;
|
|
651
|
-
if (errors === 0) {
|
|
652
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
653
|
-
let missing0;
|
|
654
|
-
if (data.name === void 0 && (missing0 = "name") || data.id === void 0 && (missing0 = "id") || data.languages === void 0 && (missing0 = "languages")) {
|
|
655
|
-
validate31.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
656
|
-
return false;
|
|
657
|
-
}
|
|
658
|
-
else {
|
|
659
|
-
const _errs1 = errors;
|
|
660
|
-
for (const key0 in data) {
|
|
661
|
-
if (!(key0 === "name" || key0 === "id" || key0 === "version" || key0 === "rtl" || key0 === "languages")) {
|
|
662
|
-
validate31.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
663
|
-
return false;
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
if (_errs1 === errors) {
|
|
668
|
-
if (data.name !== void 0) {
|
|
669
|
-
const _errs2 = errors;
|
|
670
|
-
if (typeof data.name !== "string") {
|
|
671
|
-
validate31.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
672
|
-
return false;
|
|
673
|
-
}
|
|
674
|
-
var valid0 = _errs2 === errors;
|
|
675
|
-
}
|
|
676
|
-
else {
|
|
677
|
-
var valid0 = true;
|
|
678
|
-
}
|
|
679
|
-
if (valid0) {
|
|
680
|
-
if (data.id !== void 0) {
|
|
681
|
-
const _errs4 = errors;
|
|
682
|
-
if (typeof data.id !== "string") {
|
|
683
|
-
validate31.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
684
|
-
return false;
|
|
685
|
-
}
|
|
686
|
-
var valid0 = _errs4 === errors;
|
|
687
|
-
}
|
|
688
|
-
else {
|
|
689
|
-
var valid0 = true;
|
|
690
|
-
}
|
|
691
|
-
if (valid0) {
|
|
692
|
-
if (data.version !== void 0) {
|
|
693
|
-
const _errs6 = errors;
|
|
694
|
-
if (typeof data.version !== "string") {
|
|
695
|
-
validate31.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
696
|
-
return false;
|
|
697
|
-
}
|
|
698
|
-
var valid0 = _errs6 === errors;
|
|
699
|
-
}
|
|
700
|
-
else {
|
|
701
|
-
var valid0 = true;
|
|
702
|
-
}
|
|
703
|
-
if (valid0) {
|
|
704
|
-
if (data.rtl !== void 0) {
|
|
705
|
-
const _errs8 = errors;
|
|
706
|
-
if (typeof data.rtl !== "boolean") {
|
|
707
|
-
validate31.errors = [{ instancePath: instancePath + "/rtl", schemaPath: "#/properties/rtl/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
708
|
-
return false;
|
|
709
|
-
}
|
|
710
|
-
var valid0 = _errs8 === errors;
|
|
711
|
-
}
|
|
712
|
-
else {
|
|
713
|
-
var valid0 = true;
|
|
714
|
-
}
|
|
715
|
-
if (valid0) {
|
|
716
|
-
if (data.languages !== void 0) {
|
|
717
|
-
let data4 = data.languages;
|
|
718
|
-
const _errs10 = errors;
|
|
719
|
-
if (errors === _errs10) {
|
|
720
|
-
if (Array.isArray(data4)) {
|
|
721
|
-
var valid1 = true;
|
|
722
|
-
const len0 = data4.length;
|
|
723
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
724
|
-
let data5 = data4[i0];
|
|
725
|
-
const _errs12 = errors;
|
|
726
|
-
const _errs13 = errors;
|
|
727
|
-
if (errors === _errs13) {
|
|
728
|
-
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
729
|
-
let missing1;
|
|
730
|
-
if (data5.id === void 0 && (missing1 = "id") || data5.name === void 0 && (missing1 = "name")) {
|
|
731
|
-
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
732
|
-
return false;
|
|
733
|
-
}
|
|
734
|
-
else {
|
|
735
|
-
const _errs15 = errors;
|
|
736
|
-
for (const key1 in data5) {
|
|
737
|
-
if (!(key1 === "name" || key1 === "id")) {
|
|
738
|
-
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
739
|
-
return false;
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
if (_errs15 === errors) {
|
|
744
|
-
if (data5.name !== void 0) {
|
|
745
|
-
const _errs16 = errors;
|
|
746
|
-
if (typeof data5.name !== "string") {
|
|
747
|
-
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/name", schemaPath: "#/definitions/keyboardLanguage/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
748
|
-
return false;
|
|
749
|
-
}
|
|
750
|
-
var valid3 = _errs16 === errors;
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
var valid3 = true;
|
|
754
|
-
}
|
|
755
|
-
if (valid3) {
|
|
756
|
-
if (data5.id !== void 0) {
|
|
757
|
-
const _errs18 = errors;
|
|
758
|
-
if (typeof data5.id !== "string") {
|
|
759
|
-
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/id", schemaPath: "#/definitions/keyboardLanguage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
760
|
-
return false;
|
|
761
|
-
}
|
|
762
|
-
var valid3 = _errs18 === errors;
|
|
763
|
-
}
|
|
764
|
-
else {
|
|
765
|
-
var valid3 = true;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
773
|
-
return false;
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
var valid1 = _errs12 === errors;
|
|
777
|
-
if (!valid1) {
|
|
778
|
-
break;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
else {
|
|
783
|
-
validate31.errors = [{ instancePath: instancePath + "/languages", schemaPath: "#/properties/languages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
784
|
-
return false;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
var valid0 = _errs10 === errors;
|
|
788
|
-
}
|
|
789
|
-
else {
|
|
790
|
-
var valid0 = true;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
validate31.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
801
|
-
return false;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
validate31.errors = vErrors;
|
|
805
|
-
return errors === 0;
|
|
806
|
-
}
|
|
807
|
-
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
808
|
-
let vErrors = null;
|
|
809
|
-
let errors = 0;
|
|
810
|
-
if (errors === 0) {
|
|
811
|
-
if (Array.isArray(data)) {
|
|
812
|
-
var valid0 = true;
|
|
813
|
-
const len0 = data.length;
|
|
814
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
815
|
-
const _errs1 = errors;
|
|
816
|
-
if (!validate31(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData })) {
|
|
817
|
-
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
818
|
-
errors = vErrors.length;
|
|
819
|
-
}
|
|
820
|
-
var valid0 = _errs1 === errors;
|
|
821
|
-
if (!valid0) {
|
|
822
|
-
break;
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
else {
|
|
827
|
-
validate30.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
828
|
-
return false;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
validate30.errors = vErrors;
|
|
832
|
-
return errors === 0;
|
|
833
|
-
}
|
|
834
|
-
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
835
|
-
let vErrors = null;
|
|
836
|
-
let errors = 0;
|
|
837
|
-
if (errors === 0) {
|
|
838
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
839
|
-
const _errs1 = errors;
|
|
840
|
-
for (const key0 in data) {
|
|
841
|
-
if (!(key0 === "website" || key0 === "version" || key0 === "name" || key0 === "copyright" || key0 === "author" || key0 === "description")) {
|
|
842
|
-
validate34.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
843
|
-
return false;
|
|
844
|
-
break;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
if (_errs1 === errors) {
|
|
848
|
-
if (data.website !== void 0) {
|
|
849
|
-
let data0 = data.website;
|
|
850
|
-
const _errs2 = errors;
|
|
851
|
-
const _errs3 = errors;
|
|
852
|
-
if (errors === _errs3) {
|
|
853
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
854
|
-
let missing0;
|
|
855
|
-
if (data0.description === void 0 && (missing0 = "description")) {
|
|
856
|
-
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
857
|
-
return false;
|
|
858
|
-
}
|
|
859
|
-
else {
|
|
860
|
-
const _errs5 = errors;
|
|
861
|
-
for (const key1 in data0) {
|
|
862
|
-
if (!(key1 === "description" || key1 === "url")) {
|
|
863
|
-
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
864
|
-
return false;
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
if (_errs5 === errors) {
|
|
869
|
-
if (data0.description !== void 0) {
|
|
870
|
-
const _errs6 = errors;
|
|
871
|
-
if (typeof data0.description !== "string") {
|
|
872
|
-
validate34.errors = [{ instancePath: instancePath + "/website/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
873
|
-
return false;
|
|
874
|
-
}
|
|
875
|
-
var valid2 = _errs6 === errors;
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
var valid2 = true;
|
|
879
|
-
}
|
|
880
|
-
if (valid2) {
|
|
881
|
-
if (data0.url !== void 0) {
|
|
882
|
-
const _errs8 = errors;
|
|
883
|
-
if (typeof data0.url !== "string") {
|
|
884
|
-
validate34.errors = [{ instancePath: instancePath + "/website/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
885
|
-
return false;
|
|
886
|
-
}
|
|
887
|
-
var valid2 = _errs8 === errors;
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
var valid2 = true;
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
898
|
-
return false;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
var valid0 = _errs2 === errors;
|
|
902
|
-
}
|
|
903
|
-
else {
|
|
904
|
-
var valid0 = true;
|
|
905
|
-
}
|
|
906
|
-
if (valid0) {
|
|
907
|
-
if (data.version !== void 0) {
|
|
908
|
-
let data3 = data.version;
|
|
909
|
-
const _errs10 = errors;
|
|
910
|
-
const _errs11 = errors;
|
|
911
|
-
if (errors === _errs11) {
|
|
912
|
-
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
913
|
-
let missing1;
|
|
914
|
-
if (data3.description === void 0 && (missing1 = "description")) {
|
|
915
|
-
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
916
|
-
return false;
|
|
917
|
-
}
|
|
918
|
-
else {
|
|
919
|
-
const _errs13 = errors;
|
|
920
|
-
for (const key2 in data3) {
|
|
921
|
-
if (!(key2 === "description" || key2 === "url")) {
|
|
922
|
-
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
923
|
-
return false;
|
|
924
|
-
break;
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
if (_errs13 === errors) {
|
|
928
|
-
if (data3.description !== void 0) {
|
|
929
|
-
const _errs14 = errors;
|
|
930
|
-
if (typeof data3.description !== "string") {
|
|
931
|
-
validate34.errors = [{ instancePath: instancePath + "/version/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
932
|
-
return false;
|
|
933
|
-
}
|
|
934
|
-
var valid4 = _errs14 === errors;
|
|
935
|
-
}
|
|
936
|
-
else {
|
|
937
|
-
var valid4 = true;
|
|
938
|
-
}
|
|
939
|
-
if (valid4) {
|
|
940
|
-
if (data3.url !== void 0) {
|
|
941
|
-
const _errs16 = errors;
|
|
942
|
-
if (typeof data3.url !== "string") {
|
|
943
|
-
validate34.errors = [{ instancePath: instancePath + "/version/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
944
|
-
return false;
|
|
945
|
-
}
|
|
946
|
-
var valid4 = _errs16 === errors;
|
|
947
|
-
}
|
|
948
|
-
else {
|
|
949
|
-
var valid4 = true;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
else {
|
|
956
|
-
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
957
|
-
return false;
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
var valid0 = _errs10 === errors;
|
|
961
|
-
}
|
|
962
|
-
else {
|
|
963
|
-
var valid0 = true;
|
|
964
|
-
}
|
|
965
|
-
if (valid0) {
|
|
966
|
-
if (data.name !== void 0) {
|
|
967
|
-
let data6 = data.name;
|
|
968
|
-
const _errs18 = errors;
|
|
969
|
-
const _errs19 = errors;
|
|
970
|
-
if (errors === _errs19) {
|
|
971
|
-
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
972
|
-
let missing2;
|
|
973
|
-
if (data6.description === void 0 && (missing2 = "description")) {
|
|
974
|
-
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
975
|
-
return false;
|
|
976
|
-
}
|
|
977
|
-
else {
|
|
978
|
-
const _errs21 = errors;
|
|
979
|
-
for (const key3 in data6) {
|
|
980
|
-
if (!(key3 === "description" || key3 === "url")) {
|
|
981
|
-
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
982
|
-
return false;
|
|
983
|
-
break;
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
if (_errs21 === errors) {
|
|
987
|
-
if (data6.description !== void 0) {
|
|
988
|
-
const _errs22 = errors;
|
|
989
|
-
if (typeof data6.description !== "string") {
|
|
990
|
-
validate34.errors = [{ instancePath: instancePath + "/name/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
991
|
-
return false;
|
|
992
|
-
}
|
|
993
|
-
var valid6 = _errs22 === errors;
|
|
994
|
-
}
|
|
995
|
-
else {
|
|
996
|
-
var valid6 = true;
|
|
997
|
-
}
|
|
998
|
-
if (valid6) {
|
|
999
|
-
if (data6.url !== void 0) {
|
|
1000
|
-
const _errs24 = errors;
|
|
1001
|
-
if (typeof data6.url !== "string") {
|
|
1002
|
-
validate34.errors = [{ instancePath: instancePath + "/name/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1003
|
-
return false;
|
|
1004
|
-
}
|
|
1005
|
-
var valid6 = _errs24 === errors;
|
|
1006
|
-
}
|
|
1007
|
-
else {
|
|
1008
|
-
var valid6 = true;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
else {
|
|
1015
|
-
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1016
|
-
return false;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
var valid0 = _errs18 === errors;
|
|
1020
|
-
}
|
|
1021
|
-
else {
|
|
1022
|
-
var valid0 = true;
|
|
1023
|
-
}
|
|
1024
|
-
if (valid0) {
|
|
1025
|
-
if (data.copyright !== void 0) {
|
|
1026
|
-
let data9 = data.copyright;
|
|
1027
|
-
const _errs26 = errors;
|
|
1028
|
-
const _errs27 = errors;
|
|
1029
|
-
if (errors === _errs27) {
|
|
1030
|
-
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
|
|
1031
|
-
let missing3;
|
|
1032
|
-
if (data9.description === void 0 && (missing3 = "description")) {
|
|
1033
|
-
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
1034
|
-
return false;
|
|
1035
|
-
}
|
|
1036
|
-
else {
|
|
1037
|
-
const _errs29 = errors;
|
|
1038
|
-
for (const key4 in data9) {
|
|
1039
|
-
if (!(key4 === "description" || key4 === "url")) {
|
|
1040
|
-
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
1041
|
-
return false;
|
|
1042
|
-
break;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
if (_errs29 === errors) {
|
|
1046
|
-
if (data9.description !== void 0) {
|
|
1047
|
-
const _errs30 = errors;
|
|
1048
|
-
if (typeof data9.description !== "string") {
|
|
1049
|
-
validate34.errors = [{ instancePath: instancePath + "/copyright/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1050
|
-
return false;
|
|
1051
|
-
}
|
|
1052
|
-
var valid8 = _errs30 === errors;
|
|
1053
|
-
}
|
|
1054
|
-
else {
|
|
1055
|
-
var valid8 = true;
|
|
1056
|
-
}
|
|
1057
|
-
if (valid8) {
|
|
1058
|
-
if (data9.url !== void 0) {
|
|
1059
|
-
const _errs32 = errors;
|
|
1060
|
-
if (typeof data9.url !== "string") {
|
|
1061
|
-
validate34.errors = [{ instancePath: instancePath + "/copyright/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1062
|
-
return false;
|
|
1063
|
-
}
|
|
1064
|
-
var valid8 = _errs32 === errors;
|
|
1065
|
-
}
|
|
1066
|
-
else {
|
|
1067
|
-
var valid8 = true;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
else {
|
|
1074
|
-
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1075
|
-
return false;
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
var valid0 = _errs26 === errors;
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
var valid0 = true;
|
|
1082
|
-
}
|
|
1083
|
-
if (valid0) {
|
|
1084
|
-
if (data.author !== void 0) {
|
|
1085
|
-
let data12 = data.author;
|
|
1086
|
-
const _errs34 = errors;
|
|
1087
|
-
const _errs35 = errors;
|
|
1088
|
-
if (errors === _errs35) {
|
|
1089
|
-
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
1090
|
-
let missing4;
|
|
1091
|
-
if (data12.description === void 0 && (missing4 = "description")) {
|
|
1092
|
-
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
1093
|
-
return false;
|
|
1094
|
-
}
|
|
1095
|
-
else {
|
|
1096
|
-
const _errs37 = errors;
|
|
1097
|
-
for (const key5 in data12) {
|
|
1098
|
-
if (!(key5 === "description" || key5 === "url")) {
|
|
1099
|
-
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
1100
|
-
return false;
|
|
1101
|
-
break;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
if (_errs37 === errors) {
|
|
1105
|
-
if (data12.description !== void 0) {
|
|
1106
|
-
const _errs38 = errors;
|
|
1107
|
-
if (typeof data12.description !== "string") {
|
|
1108
|
-
validate34.errors = [{ instancePath: instancePath + "/author/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1109
|
-
return false;
|
|
1110
|
-
}
|
|
1111
|
-
var valid10 = _errs38 === errors;
|
|
1112
|
-
}
|
|
1113
|
-
else {
|
|
1114
|
-
var valid10 = true;
|
|
1115
|
-
}
|
|
1116
|
-
if (valid10) {
|
|
1117
|
-
if (data12.url !== void 0) {
|
|
1118
|
-
const _errs40 = errors;
|
|
1119
|
-
if (typeof data12.url !== "string") {
|
|
1120
|
-
validate34.errors = [{ instancePath: instancePath + "/author/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1121
|
-
return false;
|
|
1122
|
-
}
|
|
1123
|
-
var valid10 = _errs40 === errors;
|
|
1124
|
-
}
|
|
1125
|
-
else {
|
|
1126
|
-
var valid10 = true;
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
else {
|
|
1133
|
-
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1134
|
-
return false;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
var valid0 = _errs34 === errors;
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1140
|
-
var valid0 = true;
|
|
1141
|
-
}
|
|
1142
|
-
if (valid0) {
|
|
1143
|
-
if (data.description !== void 0) {
|
|
1144
|
-
let data15 = data.description;
|
|
1145
|
-
const _errs42 = errors;
|
|
1146
|
-
const _errs43 = errors;
|
|
1147
|
-
if (errors === _errs43) {
|
|
1148
|
-
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
1149
|
-
let missing5;
|
|
1150
|
-
if (data15.description === void 0 && (missing5 = "description")) {
|
|
1151
|
-
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
|
|
1152
|
-
return false;
|
|
1153
|
-
}
|
|
1154
|
-
else {
|
|
1155
|
-
const _errs45 = errors;
|
|
1156
|
-
for (const key6 in data15) {
|
|
1157
|
-
if (!(key6 === "description" || key6 === "url")) {
|
|
1158
|
-
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
1159
|
-
return false;
|
|
1160
|
-
break;
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
if (_errs45 === errors) {
|
|
1164
|
-
if (data15.description !== void 0) {
|
|
1165
|
-
const _errs46 = errors;
|
|
1166
|
-
if (typeof data15.description !== "string") {
|
|
1167
|
-
validate34.errors = [{ instancePath: instancePath + "/description/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1168
|
-
return false;
|
|
1169
|
-
}
|
|
1170
|
-
var valid12 = _errs46 === errors;
|
|
1171
|
-
}
|
|
1172
|
-
else {
|
|
1173
|
-
var valid12 = true;
|
|
1174
|
-
}
|
|
1175
|
-
if (valid12) {
|
|
1176
|
-
if (data15.url !== void 0) {
|
|
1177
|
-
const _errs48 = errors;
|
|
1178
|
-
if (typeof data15.url !== "string") {
|
|
1179
|
-
validate34.errors = [{ instancePath: instancePath + "/description/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1180
|
-
return false;
|
|
1181
|
-
}
|
|
1182
|
-
var valid12 = _errs48 === errors;
|
|
1183
|
-
}
|
|
1184
|
-
else {
|
|
1185
|
-
var valid12 = true;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
else {
|
|
1192
|
-
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1193
|
-
return false;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
var valid0 = _errs42 === errors;
|
|
1197
|
-
}
|
|
1198
|
-
else {
|
|
1199
|
-
var valid0 = true;
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
else {
|
|
1209
|
-
validate34.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1210
|
-
return false;
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
validate34.errors = vErrors;
|
|
1214
|
-
return errors === 0;
|
|
1215
|
-
}
|
|
1216
|
-
var pattern0 = new RegExp(".", "u");
|
|
1217
|
-
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1218
|
-
let vErrors = null;
|
|
1219
|
-
let errors = 0;
|
|
1220
|
-
if (errors === 0) {
|
|
1221
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1222
|
-
let missing0;
|
|
1223
|
-
if (data.options === void 0 && (missing0 = "options") || data.system === void 0 && (missing0 = "system")) {
|
|
1224
|
-
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1225
|
-
return false;
|
|
1226
|
-
}
|
|
1227
|
-
else {
|
|
1228
|
-
const _errs1 = errors;
|
|
1229
|
-
for (const key0 in data) {
|
|
1230
|
-
if (!func4.call(schema23.properties, key0)) {
|
|
1231
|
-
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1232
|
-
return false;
|
|
1233
|
-
break;
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
if (_errs1 === errors) {
|
|
1237
|
-
if (data.system !== void 0) {
|
|
1238
|
-
let data0 = data.system;
|
|
1239
|
-
const _errs2 = errors;
|
|
1240
|
-
const _errs3 = errors;
|
|
1241
|
-
if (errors === _errs3) {
|
|
1242
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
1243
|
-
let missing1;
|
|
1244
|
-
if (data0.fileVersion === void 0 && (missing1 = "fileVersion")) {
|
|
1245
|
-
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1246
|
-
return false;
|
|
1247
|
-
}
|
|
1248
|
-
else {
|
|
1249
|
-
const _errs5 = errors;
|
|
1250
|
-
for (const key1 in data0) {
|
|
1251
|
-
if (!(key1 === "keymanDeveloperVersion" || key1 === "fileVersion")) {
|
|
1252
|
-
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1253
|
-
return false;
|
|
1254
|
-
break;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
if (_errs5 === errors) {
|
|
1258
|
-
if (data0.keymanDeveloperVersion !== void 0) {
|
|
1259
|
-
const _errs6 = errors;
|
|
1260
|
-
if (typeof data0.keymanDeveloperVersion !== "string") {
|
|
1261
|
-
validate21.errors = [{ instancePath: instancePath + "/system/keymanDeveloperVersion", schemaPath: "#/definitions/system/properties/keymanDeveloperVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1262
|
-
return false;
|
|
1263
|
-
}
|
|
1264
|
-
var valid2 = _errs6 === errors;
|
|
1265
|
-
}
|
|
1266
|
-
else {
|
|
1267
|
-
var valid2 = true;
|
|
1268
|
-
}
|
|
1269
|
-
if (valid2) {
|
|
1270
|
-
if (data0.fileVersion !== void 0) {
|
|
1271
|
-
const _errs8 = errors;
|
|
1272
|
-
if (typeof data0.fileVersion !== "string") {
|
|
1273
|
-
validate21.errors = [{ instancePath: instancePath + "/system/fileVersion", schemaPath: "#/definitions/system/properties/fileVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1274
|
-
return false;
|
|
1275
|
-
}
|
|
1276
|
-
var valid2 = _errs8 === errors;
|
|
1277
|
-
}
|
|
1278
|
-
else {
|
|
1279
|
-
var valid2 = true;
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
else {
|
|
1286
|
-
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1287
|
-
return false;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
var valid0 = _errs2 === errors;
|
|
1291
|
-
}
|
|
1292
|
-
else {
|
|
1293
|
-
var valid0 = true;
|
|
1294
|
-
}
|
|
1295
|
-
if (valid0) {
|
|
1296
|
-
if (data.options !== void 0) {
|
|
1297
|
-
let data3 = data.options;
|
|
1298
|
-
const _errs10 = errors;
|
|
1299
|
-
const _errs11 = errors;
|
|
1300
|
-
if (errors === _errs11) {
|
|
1301
|
-
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
1302
|
-
const _errs13 = errors;
|
|
1303
|
-
for (const key2 in data3) {
|
|
1304
|
-
if (!(key2 === "readmeFile" || key2 === "graphicFile" || key2 === "licenseFile" || key2 === "welcomeFile" || key2 === "executeProgram" || key2 === "msiFilename" || key2 === "msiOptions")) {
|
|
1305
|
-
validate21.errors = [{ instancePath: instancePath + "/options", schemaPath: "#/definitions/options/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
1306
|
-
return false;
|
|
1307
|
-
break;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
if (_errs13 === errors) {
|
|
1311
|
-
if (data3.readmeFile !== void 0) {
|
|
1312
|
-
const _errs14 = errors;
|
|
1313
|
-
if (typeof data3.readmeFile !== "string") {
|
|
1314
|
-
validate21.errors = [{ instancePath: instancePath + "/options/readmeFile", schemaPath: "#/definitions/options/properties/readmeFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1315
|
-
return false;
|
|
1316
|
-
}
|
|
1317
|
-
var valid4 = _errs14 === errors;
|
|
1318
|
-
}
|
|
1319
|
-
else {
|
|
1320
|
-
var valid4 = true;
|
|
1321
|
-
}
|
|
1322
|
-
if (valid4) {
|
|
1323
|
-
if (data3.graphicFile !== void 0) {
|
|
1324
|
-
const _errs16 = errors;
|
|
1325
|
-
if (typeof data3.graphicFile !== "string") {
|
|
1326
|
-
validate21.errors = [{ instancePath: instancePath + "/options/graphicFile", schemaPath: "#/definitions/options/properties/graphicFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1327
|
-
return false;
|
|
1328
|
-
}
|
|
1329
|
-
var valid4 = _errs16 === errors;
|
|
1330
|
-
}
|
|
1331
|
-
else {
|
|
1332
|
-
var valid4 = true;
|
|
1333
|
-
}
|
|
1334
|
-
if (valid4) {
|
|
1335
|
-
if (data3.licenseFile !== void 0) {
|
|
1336
|
-
const _errs18 = errors;
|
|
1337
|
-
if (typeof data3.licenseFile !== "string") {
|
|
1338
|
-
validate21.errors = [{ instancePath: instancePath + "/options/licenseFile", schemaPath: "#/definitions/options/properties/licenseFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1339
|
-
return false;
|
|
1340
|
-
}
|
|
1341
|
-
var valid4 = _errs18 === errors;
|
|
1342
|
-
}
|
|
1343
|
-
else {
|
|
1344
|
-
var valid4 = true;
|
|
1345
|
-
}
|
|
1346
|
-
if (valid4) {
|
|
1347
|
-
if (data3.welcomeFile !== void 0) {
|
|
1348
|
-
const _errs20 = errors;
|
|
1349
|
-
if (typeof data3.welcomeFile !== "string") {
|
|
1350
|
-
validate21.errors = [{ instancePath: instancePath + "/options/welcomeFile", schemaPath: "#/definitions/options/properties/welcomeFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1351
|
-
return false;
|
|
1352
|
-
}
|
|
1353
|
-
var valid4 = _errs20 === errors;
|
|
1354
|
-
}
|
|
1355
|
-
else {
|
|
1356
|
-
var valid4 = true;
|
|
1357
|
-
}
|
|
1358
|
-
if (valid4) {
|
|
1359
|
-
if (data3.executeProgram !== void 0) {
|
|
1360
|
-
const _errs22 = errors;
|
|
1361
|
-
if (typeof data3.executeProgram !== "string") {
|
|
1362
|
-
validate21.errors = [{ instancePath: instancePath + "/options/executeProgram", schemaPath: "#/definitions/options/properties/executeProgram/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1363
|
-
return false;
|
|
1364
|
-
}
|
|
1365
|
-
var valid4 = _errs22 === errors;
|
|
1366
|
-
}
|
|
1367
|
-
else {
|
|
1368
|
-
var valid4 = true;
|
|
1369
|
-
}
|
|
1370
|
-
if (valid4) {
|
|
1371
|
-
if (data3.msiFilename !== void 0) {
|
|
1372
|
-
const _errs24 = errors;
|
|
1373
|
-
if (typeof data3.msiFilename !== "string") {
|
|
1374
|
-
validate21.errors = [{ instancePath: instancePath + "/options/msiFilename", schemaPath: "#/definitions/options/properties/msiFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1375
|
-
return false;
|
|
1376
|
-
}
|
|
1377
|
-
var valid4 = _errs24 === errors;
|
|
1378
|
-
}
|
|
1379
|
-
else {
|
|
1380
|
-
var valid4 = true;
|
|
1381
|
-
}
|
|
1382
|
-
if (valid4) {
|
|
1383
|
-
if (data3.msiOptions !== void 0) {
|
|
1384
|
-
const _errs26 = errors;
|
|
1385
|
-
if (typeof data3.msiOptions !== "string") {
|
|
1386
|
-
validate21.errors = [{ instancePath: instancePath + "/options/msiOptions", schemaPath: "#/definitions/options/properties/msiOptions/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1387
|
-
return false;
|
|
1388
|
-
}
|
|
1389
|
-
var valid4 = _errs26 === errors;
|
|
1390
|
-
}
|
|
1391
|
-
else {
|
|
1392
|
-
var valid4 = true;
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
else {
|
|
1403
|
-
validate21.errors = [{ instancePath: instancePath + "/options", schemaPath: "#/definitions/options/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1404
|
-
return false;
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
var valid0 = _errs10 === errors;
|
|
1408
|
-
}
|
|
1409
|
-
else {
|
|
1410
|
-
var valid0 = true;
|
|
1411
|
-
}
|
|
1412
|
-
if (valid0) {
|
|
1413
|
-
if (data.startMenu !== void 0) {
|
|
1414
|
-
const _errs28 = errors;
|
|
1415
|
-
if (!validate22(data.startMenu, { instancePath: instancePath + "/startMenu", parentData: data, parentDataProperty: "startMenu", rootData })) {
|
|
1416
|
-
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1417
|
-
errors = vErrors.length;
|
|
1418
|
-
}
|
|
1419
|
-
var valid0 = _errs28 === errors;
|
|
1420
|
-
}
|
|
1421
|
-
else {
|
|
1422
|
-
var valid0 = true;
|
|
1423
|
-
}
|
|
1424
|
-
if (valid0) {
|
|
1425
|
-
if (data.strings !== void 0) {
|
|
1426
|
-
let data12 = data.strings;
|
|
1427
|
-
const _errs29 = errors;
|
|
1428
|
-
const _errs30 = errors;
|
|
1429
|
-
if (errors === _errs30) {
|
|
1430
|
-
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
1431
|
-
const _errs32 = errors;
|
|
1432
|
-
for (const key3 in data12) {
|
|
1433
|
-
if (!pattern0.test(key3)) {
|
|
1434
|
-
validate21.errors = [{ instancePath: instancePath + "/strings", schemaPath: "#/definitions/strings/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
1435
|
-
return false;
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
if (_errs32 === errors) {
|
|
1440
|
-
var valid6 = true;
|
|
1441
|
-
for (const key4 in data12) {
|
|
1442
|
-
if (pattern0.test(key4)) {
|
|
1443
|
-
const _errs33 = errors;
|
|
1444
|
-
if (typeof data12[key4] !== "string") {
|
|
1445
|
-
validate21.errors = [{ instancePath: instancePath + "/strings/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/strings/patternProperties/./type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1446
|
-
return false;
|
|
1447
|
-
}
|
|
1448
|
-
var valid6 = _errs33 === errors;
|
|
1449
|
-
if (!valid6) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
else {
|
|
1457
|
-
validate21.errors = [{ instancePath: instancePath + "/strings", schemaPath: "#/definitions/strings/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1458
|
-
return false;
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
var valid0 = _errs29 === errors;
|
|
1462
|
-
}
|
|
1463
|
-
else {
|
|
1464
|
-
var valid0 = true;
|
|
1465
|
-
}
|
|
1466
|
-
if (valid0) {
|
|
1467
|
-
if (data.files !== void 0) {
|
|
1468
|
-
const _errs35 = errors;
|
|
1469
|
-
if (!validate24(data.files, { instancePath: instancePath + "/files", parentData: data, parentDataProperty: "files", rootData })) {
|
|
1470
|
-
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1471
|
-
errors = vErrors.length;
|
|
1472
|
-
}
|
|
1473
|
-
var valid0 = _errs35 === errors;
|
|
1474
|
-
}
|
|
1475
|
-
else {
|
|
1476
|
-
var valid0 = true;
|
|
1477
|
-
}
|
|
1478
|
-
if (valid0) {
|
|
1479
|
-
if (data.keyboards !== void 0) {
|
|
1480
|
-
const _errs36 = errors;
|
|
1481
|
-
if (!validate26(data.keyboards, { instancePath: instancePath + "/keyboards", parentData: data, parentDataProperty: "keyboards", rootData })) {
|
|
1482
|
-
vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
|
|
1483
|
-
errors = vErrors.length;
|
|
1484
|
-
}
|
|
1485
|
-
var valid0 = _errs36 === errors;
|
|
1486
|
-
}
|
|
1487
|
-
else {
|
|
1488
|
-
var valid0 = true;
|
|
1489
|
-
}
|
|
1490
|
-
if (valid0) {
|
|
1491
|
-
if (data.lexicalModels !== void 0) {
|
|
1492
|
-
const _errs37 = errors;
|
|
1493
|
-
if (!validate30(data.lexicalModels, { instancePath: instancePath + "/lexicalModels", parentData: data, parentDataProperty: "lexicalModels", rootData })) {
|
|
1494
|
-
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
1495
|
-
errors = vErrors.length;
|
|
1496
|
-
}
|
|
1497
|
-
var valid0 = _errs37 === errors;
|
|
1498
|
-
}
|
|
1499
|
-
else {
|
|
1500
|
-
var valid0 = true;
|
|
1501
|
-
}
|
|
1502
|
-
if (valid0) {
|
|
1503
|
-
if (data.info !== void 0) {
|
|
1504
|
-
const _errs38 = errors;
|
|
1505
|
-
if (!validate34(data.info, { instancePath: instancePath + "/info", parentData: data, parentDataProperty: "info", rootData })) {
|
|
1506
|
-
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
1507
|
-
errors = vErrors.length;
|
|
1508
|
-
}
|
|
1509
|
-
var valid0 = _errs38 === errors;
|
|
1510
|
-
}
|
|
1511
|
-
else {
|
|
1512
|
-
var valid0 = true;
|
|
1513
|
-
}
|
|
1514
|
-
if (valid0) {
|
|
1515
|
-
if (data.relatedPackages !== void 0) {
|
|
1516
|
-
let data18 = data.relatedPackages;
|
|
1517
|
-
const _errs39 = errors;
|
|
1518
|
-
if (errors === _errs39) {
|
|
1519
|
-
if (Array.isArray(data18)) {
|
|
1520
|
-
var valid7 = true;
|
|
1521
|
-
const len0 = data18.length;
|
|
1522
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
1523
|
-
let data19 = data18[i0];
|
|
1524
|
-
const _errs41 = errors;
|
|
1525
|
-
const _errs42 = errors;
|
|
1526
|
-
if (errors === _errs42) {
|
|
1527
|
-
if (data19 && typeof data19 == "object" && !Array.isArray(data19)) {
|
|
1528
|
-
let missing2;
|
|
1529
|
-
if (data19.id === void 0 && (missing2 = "id") || data19.relationship === void 0 && (missing2 = "relationship")) {
|
|
1530
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
1531
|
-
return false;
|
|
1532
|
-
}
|
|
1533
|
-
else {
|
|
1534
|
-
const _errs44 = errors;
|
|
1535
|
-
for (const key5 in data19) {
|
|
1536
|
-
if (!(key5 === "id" || key5 === "relationship")) {
|
|
1537
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
1538
|
-
return false;
|
|
1539
|
-
break;
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
if (_errs44 === errors) {
|
|
1543
|
-
if (data19.id !== void 0) {
|
|
1544
|
-
const _errs45 = errors;
|
|
1545
|
-
if (typeof data19.id !== "string") {
|
|
1546
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/id", schemaPath: "#/definitions/relatedPackage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1547
|
-
return false;
|
|
1548
|
-
}
|
|
1549
|
-
var valid9 = _errs45 === errors;
|
|
1550
|
-
}
|
|
1551
|
-
else {
|
|
1552
|
-
var valid9 = true;
|
|
1553
|
-
}
|
|
1554
|
-
if (valid9) {
|
|
1555
|
-
if (data19.relationship !== void 0) {
|
|
1556
|
-
let data21 = data19.relationship;
|
|
1557
|
-
const _errs47 = errors;
|
|
1558
|
-
if (typeof data21 !== "string") {
|
|
1559
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/relationship", schemaPath: "#/definitions/relatedPackage/properties/relationship/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1560
|
-
return false;
|
|
1561
|
-
}
|
|
1562
|
-
if (!(data21 === "deprecates" || data21 === "related")) {
|
|
1563
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/relationship", schemaPath: "#/definitions/relatedPackage/properties/relationship/enum", keyword: "enum", params: { allowedValues: schema45.properties.relationship.enum }, message: "must be equal to one of the allowed values" }];
|
|
1564
|
-
return false;
|
|
1565
|
-
}
|
|
1566
|
-
var valid9 = _errs47 === errors;
|
|
1567
|
-
}
|
|
1568
|
-
else {
|
|
1569
|
-
var valid9 = true;
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
else {
|
|
1576
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1577
|
-
return false;
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
var valid7 = _errs41 === errors;
|
|
1581
|
-
if (!valid7) {
|
|
1582
|
-
break;
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
else {
|
|
1587
|
-
validate21.errors = [{ instancePath: instancePath + "/relatedPackages", schemaPath: "#/properties/relatedPackages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1588
|
-
return false;
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
var valid0 = _errs39 === errors;
|
|
1592
|
-
}
|
|
1593
|
-
else {
|
|
1594
|
-
var valid0 = true;
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
else {
|
|
1608
|
-
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1609
|
-
return false;
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
validate21.errors = vErrors;
|
|
1613
|
-
return errors === 0;
|
|
1614
|
-
}
|
|
1615
|
-
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1616
|
-
let vErrors = null;
|
|
1617
|
-
let errors = 0;
|
|
1618
|
-
if (!validate21(data, { instancePath, parentData, parentDataProperty, rootData })) {
|
|
1619
|
-
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
1620
|
-
errors = vErrors.length;
|
|
1621
|
-
}
|
|
1622
|
-
validate20.errors = vErrors;
|
|
1623
|
-
return errors === 0;
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
});
|
|
1627
|
-
export default require_kmp_schema_validator();
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f14785aa-752a-56d4-92eb-5bd9f4af215d")}catch(e){}}();
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
+
};
|
|
7
|
+
// obj/schemas/kmp.schema.validator.cjs
|
|
8
|
+
var require_kmp_schema_validator = __commonJS({
|
|
9
|
+
"obj/schemas/kmp.schema.validator.cjs"(exports, module) {
|
|
10
|
+
module.exports = validate20;
|
|
11
|
+
module.exports.default = validate20;
|
|
12
|
+
var schema23 = { "type": "object", "properties": { "system": { "$ref": "#/definitions/system" }, "options": { "$ref": "#/definitions/options" }, "startMenu": { "$ref": "#/definitions/startMenu" }, "strings": { "$ref": "#/definitions/strings" }, "files": { "$ref": "#/definitions/files" }, "keyboards": { "$ref": "#/definitions/keyboards" }, "lexicalModels": { "$ref": "#/definitions/lexicalModels" }, "info": { "$ref": "#/definitions/info" }, "relatedPackages": { "type": "array", "items": { "$ref": "#/definitions/relatedPackage" } } }, "additionalProperties": false, "required": ["options", "system"] };
|
|
13
|
+
var schema45 = { "type": "object", "properties": { "id": { "type": "string" }, "relationship": { "type": "string", "enum": ["deprecates", "related"] } }, "additionalProperties": false, "required": ["id", "relationship"] };
|
|
14
|
+
var func4 = Object.prototype.hasOwnProperty;
|
|
15
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
16
|
+
let vErrors = null;
|
|
17
|
+
let errors = 0;
|
|
18
|
+
if (errors === 0) {
|
|
19
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
20
|
+
const _errs1 = errors;
|
|
21
|
+
for (const key0 in data) {
|
|
22
|
+
if (!(key0 === "folder" || key0 === "addUninstallEntry" || key0 === "items")) {
|
|
23
|
+
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
24
|
+
return false;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (_errs1 === errors) {
|
|
29
|
+
if (data.folder !== void 0) {
|
|
30
|
+
const _errs2 = errors;
|
|
31
|
+
if (typeof data.folder !== "string") {
|
|
32
|
+
validate22.errors = [{ instancePath: instancePath + "/folder", schemaPath: "#/properties/folder/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
var valid0 = _errs2 === errors;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
var valid0 = true;
|
|
39
|
+
}
|
|
40
|
+
if (valid0) {
|
|
41
|
+
if (data.addUninstallEntry !== void 0) {
|
|
42
|
+
const _errs4 = errors;
|
|
43
|
+
if (typeof data.addUninstallEntry !== "boolean") {
|
|
44
|
+
validate22.errors = [{ instancePath: instancePath + "/addUninstallEntry", schemaPath: "#/properties/addUninstallEntry/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
var valid0 = _errs4 === errors;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
var valid0 = true;
|
|
51
|
+
}
|
|
52
|
+
if (valid0) {
|
|
53
|
+
if (data.items !== void 0) {
|
|
54
|
+
let data2 = data.items;
|
|
55
|
+
const _errs6 = errors;
|
|
56
|
+
if (errors === _errs6) {
|
|
57
|
+
if (Array.isArray(data2)) {
|
|
58
|
+
var valid1 = true;
|
|
59
|
+
const len0 = data2.length;
|
|
60
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
61
|
+
let data3 = data2[i0];
|
|
62
|
+
const _errs8 = errors;
|
|
63
|
+
const _errs9 = errors;
|
|
64
|
+
if (errors === _errs9) {
|
|
65
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
66
|
+
let missing0;
|
|
67
|
+
if (data3.name === void 0 && (missing0 = "name") || data3.filename === void 0 && (missing0 = "filename")) {
|
|
68
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const _errs11 = errors;
|
|
73
|
+
for (const key1 in data3) {
|
|
74
|
+
if (!(key1 === "name" || key1 === "filename" || key1 === "arguments" || key1 === "icon" || key1 === "location")) {
|
|
75
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
76
|
+
return false;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (_errs11 === errors) {
|
|
81
|
+
if (data3.name !== void 0) {
|
|
82
|
+
const _errs12 = errors;
|
|
83
|
+
if (typeof data3.name !== "string") {
|
|
84
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/name", schemaPath: "#/definitions/startMenuItem/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
var valid3 = _errs12 === errors;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
var valid3 = true;
|
|
91
|
+
}
|
|
92
|
+
if (valid3) {
|
|
93
|
+
if (data3.filename !== void 0) {
|
|
94
|
+
const _errs14 = errors;
|
|
95
|
+
if (typeof data3.filename !== "string") {
|
|
96
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/filename", schemaPath: "#/definitions/startMenuItem/properties/filename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
var valid3 = _errs14 === errors;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
var valid3 = true;
|
|
103
|
+
}
|
|
104
|
+
if (valid3) {
|
|
105
|
+
if (data3.arguments !== void 0) {
|
|
106
|
+
const _errs16 = errors;
|
|
107
|
+
if (typeof data3.arguments !== "string") {
|
|
108
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/arguments", schemaPath: "#/definitions/startMenuItem/properties/arguments/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
var valid3 = _errs16 === errors;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
var valid3 = true;
|
|
115
|
+
}
|
|
116
|
+
if (valid3) {
|
|
117
|
+
if (data3.icon !== void 0) {
|
|
118
|
+
const _errs18 = errors;
|
|
119
|
+
if (typeof data3.icon !== "string") {
|
|
120
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/icon", schemaPath: "#/definitions/startMenuItem/properties/icon/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
var valid3 = _errs18 === errors;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
var valid3 = true;
|
|
127
|
+
}
|
|
128
|
+
if (valid3) {
|
|
129
|
+
if (data3.location !== void 0) {
|
|
130
|
+
let data8 = data3.location;
|
|
131
|
+
const _errs20 = errors;
|
|
132
|
+
if (!(typeof data8 == "number" && isFinite(data8))) {
|
|
133
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0 + "/location", schemaPath: "#/definitions/startMenuItem/properties/location/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
var valid3 = _errs20 === errors;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
var valid3 = true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
validate22.errors = [{ instancePath: instancePath + "/items/" + i0, schemaPath: "#/definitions/startMenuItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
var valid1 = _errs8 === errors;
|
|
154
|
+
if (!valid1) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
validate22.errors = [{ instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
var valid0 = _errs6 === errors;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
var valid0 = true;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
validate22.errors = vErrors;
|
|
179
|
+
return errors === 0;
|
|
180
|
+
}
|
|
181
|
+
function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
182
|
+
let vErrors = null;
|
|
183
|
+
let errors = 0;
|
|
184
|
+
if (errors === 0) {
|
|
185
|
+
if (Array.isArray(data)) {
|
|
186
|
+
var valid0 = true;
|
|
187
|
+
const len0 = data.length;
|
|
188
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
189
|
+
let data0 = data[i0];
|
|
190
|
+
const _errs1 = errors;
|
|
191
|
+
const _errs2 = errors;
|
|
192
|
+
if (errors === _errs2) {
|
|
193
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
194
|
+
let missing0;
|
|
195
|
+
if (data0.name === void 0 && (missing0 = "name") || data0.description === void 0 && (missing0 = "description")) {
|
|
196
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
const _errs4 = errors;
|
|
201
|
+
for (const key0 in data0) {
|
|
202
|
+
if (!(key0 === "name" || key0 === "description" || key0 === "copyLocation")) {
|
|
203
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
204
|
+
return false;
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (_errs4 === errors) {
|
|
209
|
+
if (data0.name !== void 0) {
|
|
210
|
+
const _errs5 = errors;
|
|
211
|
+
if (typeof data0.name !== "string") {
|
|
212
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/name", schemaPath: "#/definitions/file/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
var valid2 = _errs5 === errors;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
var valid2 = true;
|
|
219
|
+
}
|
|
220
|
+
if (valid2) {
|
|
221
|
+
if (data0.description !== void 0) {
|
|
222
|
+
const _errs7 = errors;
|
|
223
|
+
if (typeof data0.description !== "string") {
|
|
224
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/description", schemaPath: "#/definitions/file/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
var valid2 = _errs7 === errors;
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
var valid2 = true;
|
|
231
|
+
}
|
|
232
|
+
if (valid2) {
|
|
233
|
+
if (data0.copyLocation !== void 0) {
|
|
234
|
+
let data3 = data0.copyLocation;
|
|
235
|
+
const _errs9 = errors;
|
|
236
|
+
if (!(typeof data3 == "number" && isFinite(data3))) {
|
|
237
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0 + "/copyLocation", schemaPath: "#/definitions/file/properties/copyLocation/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
var valid2 = _errs9 === errors;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
var valid2 = true;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
validate24.errors = [{ instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/file/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
var valid0 = _errs1 === errors;
|
|
256
|
+
if (!valid0) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
validate24.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
validate24.errors = vErrors;
|
|
267
|
+
return errors === 0;
|
|
268
|
+
}
|
|
269
|
+
var schema32 = { "type": "object", "properties": { "name": { "type": "string" }, "id": { "type": "string" }, "version": { "type": "string" }, "oskFont": { "type": "string" }, "displayFont": { "type": "string" }, "rtl": { "type": "boolean" }, "languages": { "type": "array", "items": { "$ref": "#/definitions/keyboardLanguage" } }, "examples": { "type": "array", "items": { "$ref": "#/definitions/keyboardExample" } }, "webOskFonts": { "type": "array", "items": { "type": "string" } }, "webDisplayFonts": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false, "required": ["name", "id", "version"] };
|
|
270
|
+
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
271
|
+
let vErrors = null;
|
|
272
|
+
let errors = 0;
|
|
273
|
+
if (errors === 0) {
|
|
274
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
275
|
+
let missing0;
|
|
276
|
+
if (data.name === void 0 && (missing0 = "name") || data.id === void 0 && (missing0 = "id") || data.version === void 0 && (missing0 = "version")) {
|
|
277
|
+
validate27.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
const _errs1 = errors;
|
|
282
|
+
for (const key0 in data) {
|
|
283
|
+
if (!func4.call(schema32.properties, key0)) {
|
|
284
|
+
validate27.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
285
|
+
return false;
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (_errs1 === errors) {
|
|
290
|
+
if (data.name !== void 0) {
|
|
291
|
+
const _errs2 = errors;
|
|
292
|
+
if (typeof data.name !== "string") {
|
|
293
|
+
validate27.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
var valid0 = _errs2 === errors;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
var valid0 = true;
|
|
300
|
+
}
|
|
301
|
+
if (valid0) {
|
|
302
|
+
if (data.id !== void 0) {
|
|
303
|
+
const _errs4 = errors;
|
|
304
|
+
if (typeof data.id !== "string") {
|
|
305
|
+
validate27.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
var valid0 = _errs4 === errors;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
var valid0 = true;
|
|
312
|
+
}
|
|
313
|
+
if (valid0) {
|
|
314
|
+
if (data.version !== void 0) {
|
|
315
|
+
const _errs6 = errors;
|
|
316
|
+
if (typeof data.version !== "string") {
|
|
317
|
+
validate27.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
var valid0 = _errs6 === errors;
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
var valid0 = true;
|
|
324
|
+
}
|
|
325
|
+
if (valid0) {
|
|
326
|
+
if (data.oskFont !== void 0) {
|
|
327
|
+
const _errs8 = errors;
|
|
328
|
+
if (typeof data.oskFont !== "string") {
|
|
329
|
+
validate27.errors = [{ instancePath: instancePath + "/oskFont", schemaPath: "#/properties/oskFont/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
332
|
+
var valid0 = _errs8 === errors;
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
var valid0 = true;
|
|
336
|
+
}
|
|
337
|
+
if (valid0) {
|
|
338
|
+
if (data.displayFont !== void 0) {
|
|
339
|
+
const _errs10 = errors;
|
|
340
|
+
if (typeof data.displayFont !== "string") {
|
|
341
|
+
validate27.errors = [{ instancePath: instancePath + "/displayFont", schemaPath: "#/properties/displayFont/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
342
|
+
return false;
|
|
343
|
+
}
|
|
344
|
+
var valid0 = _errs10 === errors;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
var valid0 = true;
|
|
348
|
+
}
|
|
349
|
+
if (valid0) {
|
|
350
|
+
if (data.rtl !== void 0) {
|
|
351
|
+
const _errs12 = errors;
|
|
352
|
+
if (typeof data.rtl !== "boolean") {
|
|
353
|
+
validate27.errors = [{ instancePath: instancePath + "/rtl", schemaPath: "#/properties/rtl/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
354
|
+
return false;
|
|
355
|
+
}
|
|
356
|
+
var valid0 = _errs12 === errors;
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
var valid0 = true;
|
|
360
|
+
}
|
|
361
|
+
if (valid0) {
|
|
362
|
+
if (data.languages !== void 0) {
|
|
363
|
+
let data6 = data.languages;
|
|
364
|
+
const _errs14 = errors;
|
|
365
|
+
if (errors === _errs14) {
|
|
366
|
+
if (Array.isArray(data6)) {
|
|
367
|
+
var valid1 = true;
|
|
368
|
+
const len0 = data6.length;
|
|
369
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
370
|
+
let data7 = data6[i0];
|
|
371
|
+
const _errs16 = errors;
|
|
372
|
+
const _errs17 = errors;
|
|
373
|
+
if (errors === _errs17) {
|
|
374
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
375
|
+
let missing1;
|
|
376
|
+
if (data7.id === void 0 && (missing1 = "id") || data7.name === void 0 && (missing1 = "name")) {
|
|
377
|
+
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
const _errs19 = errors;
|
|
382
|
+
for (const key1 in data7) {
|
|
383
|
+
if (!(key1 === "name" || key1 === "id")) {
|
|
384
|
+
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
385
|
+
return false;
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
if (_errs19 === errors) {
|
|
390
|
+
if (data7.name !== void 0) {
|
|
391
|
+
const _errs20 = errors;
|
|
392
|
+
if (typeof data7.name !== "string") {
|
|
393
|
+
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/name", schemaPath: "#/definitions/keyboardLanguage/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
396
|
+
var valid3 = _errs20 === errors;
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
var valid3 = true;
|
|
400
|
+
}
|
|
401
|
+
if (valid3) {
|
|
402
|
+
if (data7.id !== void 0) {
|
|
403
|
+
const _errs22 = errors;
|
|
404
|
+
if (typeof data7.id !== "string") {
|
|
405
|
+
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/id", schemaPath: "#/definitions/keyboardLanguage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
var valid3 = _errs22 === errors;
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
var valid3 = true;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
validate27.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var valid1 = _errs16 === errors;
|
|
423
|
+
if (!valid1) {
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
validate27.errors = [{ instancePath: instancePath + "/languages", schemaPath: "#/properties/languages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
var valid0 = _errs14 === errors;
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
var valid0 = true;
|
|
437
|
+
}
|
|
438
|
+
if (valid0) {
|
|
439
|
+
if (data.examples !== void 0) {
|
|
440
|
+
let data10 = data.examples;
|
|
441
|
+
const _errs24 = errors;
|
|
442
|
+
if (errors === _errs24) {
|
|
443
|
+
if (Array.isArray(data10)) {
|
|
444
|
+
var valid4 = true;
|
|
445
|
+
const len1 = data10.length;
|
|
446
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
447
|
+
let data11 = data10[i1];
|
|
448
|
+
const _errs26 = errors;
|
|
449
|
+
const _errs27 = errors;
|
|
450
|
+
if (errors === _errs27) {
|
|
451
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
452
|
+
let missing2;
|
|
453
|
+
if (data11.id === void 0 && (missing2 = "id") || data11.keys === void 0 && (missing2 = "keys")) {
|
|
454
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
const _errs29 = errors;
|
|
459
|
+
for (const key2 in data11) {
|
|
460
|
+
if (!(key2 === "id" || key2 === "keys" || key2 === "text" || key2 === "note")) {
|
|
461
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
462
|
+
return false;
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (_errs29 === errors) {
|
|
467
|
+
if (data11.id !== void 0) {
|
|
468
|
+
const _errs30 = errors;
|
|
469
|
+
if (typeof data11.id !== "string") {
|
|
470
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/id", schemaPath: "#/definitions/keyboardExample/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
var valid6 = _errs30 === errors;
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
var valid6 = true;
|
|
477
|
+
}
|
|
478
|
+
if (valid6) {
|
|
479
|
+
if (data11.keys !== void 0) {
|
|
480
|
+
const _errs32 = errors;
|
|
481
|
+
if (typeof data11.keys !== "string") {
|
|
482
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/keys", schemaPath: "#/definitions/keyboardExample/properties/keys/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
var valid6 = _errs32 === errors;
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
var valid6 = true;
|
|
489
|
+
}
|
|
490
|
+
if (valid6) {
|
|
491
|
+
if (data11.text !== void 0) {
|
|
492
|
+
const _errs34 = errors;
|
|
493
|
+
if (typeof data11.text !== "string") {
|
|
494
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/text", schemaPath: "#/definitions/keyboardExample/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
495
|
+
return false;
|
|
496
|
+
}
|
|
497
|
+
var valid6 = _errs34 === errors;
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
var valid6 = true;
|
|
501
|
+
}
|
|
502
|
+
if (valid6) {
|
|
503
|
+
if (data11.note !== void 0) {
|
|
504
|
+
const _errs36 = errors;
|
|
505
|
+
if (typeof data11.note !== "string") {
|
|
506
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1 + "/note", schemaPath: "#/definitions/keyboardExample/properties/note/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
509
|
+
var valid6 = _errs36 === errors;
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
var valid6 = true;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
validate27.errors = [{ instancePath: instancePath + "/examples/" + i1, schemaPath: "#/definitions/keyboardExample/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
522
|
+
return false;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
var valid4 = _errs26 === errors;
|
|
526
|
+
if (!valid4) {
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
validate27.errors = [{ instancePath: instancePath + "/examples", schemaPath: "#/properties/examples/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
var valid0 = _errs24 === errors;
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
var valid0 = true;
|
|
540
|
+
}
|
|
541
|
+
if (valid0) {
|
|
542
|
+
if (data.webOskFonts !== void 0) {
|
|
543
|
+
let data16 = data.webOskFonts;
|
|
544
|
+
const _errs38 = errors;
|
|
545
|
+
if (errors === _errs38) {
|
|
546
|
+
if (Array.isArray(data16)) {
|
|
547
|
+
var valid7 = true;
|
|
548
|
+
const len2 = data16.length;
|
|
549
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
550
|
+
const _errs40 = errors;
|
|
551
|
+
if (typeof data16[i2] !== "string") {
|
|
552
|
+
validate27.errors = [{ instancePath: instancePath + "/webOskFonts/" + i2, schemaPath: "#/properties/webOskFonts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
var valid7 = _errs40 === errors;
|
|
556
|
+
if (!valid7) {
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
validate27.errors = [{ instancePath: instancePath + "/webOskFonts", schemaPath: "#/properties/webOskFonts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
var valid0 = _errs38 === errors;
|
|
567
|
+
}
|
|
568
|
+
else {
|
|
569
|
+
var valid0 = true;
|
|
570
|
+
}
|
|
571
|
+
if (valid0) {
|
|
572
|
+
if (data.webDisplayFonts !== void 0) {
|
|
573
|
+
let data18 = data.webDisplayFonts;
|
|
574
|
+
const _errs42 = errors;
|
|
575
|
+
if (errors === _errs42) {
|
|
576
|
+
if (Array.isArray(data18)) {
|
|
577
|
+
var valid8 = true;
|
|
578
|
+
const len3 = data18.length;
|
|
579
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
580
|
+
const _errs44 = errors;
|
|
581
|
+
if (typeof data18[i3] !== "string") {
|
|
582
|
+
validate27.errors = [{ instancePath: instancePath + "/webDisplayFonts/" + i3, schemaPath: "#/properties/webDisplayFonts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
583
|
+
return false;
|
|
584
|
+
}
|
|
585
|
+
var valid8 = _errs44 === errors;
|
|
586
|
+
if (!valid8) {
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
validate27.errors = [{ instancePath: instancePath + "/webDisplayFonts", schemaPath: "#/properties/webDisplayFonts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
593
|
+
return false;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
var valid0 = _errs42 === errors;
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
var valid0 = true;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
validate27.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
615
|
+
return false;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
validate27.errors = vErrors;
|
|
619
|
+
return errors === 0;
|
|
620
|
+
}
|
|
621
|
+
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
622
|
+
let vErrors = null;
|
|
623
|
+
let errors = 0;
|
|
624
|
+
if (errors === 0) {
|
|
625
|
+
if (Array.isArray(data)) {
|
|
626
|
+
var valid0 = true;
|
|
627
|
+
const len0 = data.length;
|
|
628
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
629
|
+
const _errs1 = errors;
|
|
630
|
+
if (!validate27(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData })) {
|
|
631
|
+
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
632
|
+
errors = vErrors.length;
|
|
633
|
+
}
|
|
634
|
+
var valid0 = _errs1 === errors;
|
|
635
|
+
if (!valid0) {
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
validate26.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
642
|
+
return false;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
validate26.errors = vErrors;
|
|
646
|
+
return errors === 0;
|
|
647
|
+
}
|
|
648
|
+
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
649
|
+
let vErrors = null;
|
|
650
|
+
let errors = 0;
|
|
651
|
+
if (errors === 0) {
|
|
652
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
653
|
+
let missing0;
|
|
654
|
+
if (data.name === void 0 && (missing0 = "name") || data.id === void 0 && (missing0 = "id") || data.languages === void 0 && (missing0 = "languages")) {
|
|
655
|
+
validate31.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
else {
|
|
659
|
+
const _errs1 = errors;
|
|
660
|
+
for (const key0 in data) {
|
|
661
|
+
if (!(key0 === "name" || key0 === "id" || key0 === "version" || key0 === "rtl" || key0 === "languages")) {
|
|
662
|
+
validate31.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
663
|
+
return false;
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if (_errs1 === errors) {
|
|
668
|
+
if (data.name !== void 0) {
|
|
669
|
+
const _errs2 = errors;
|
|
670
|
+
if (typeof data.name !== "string") {
|
|
671
|
+
validate31.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
672
|
+
return false;
|
|
673
|
+
}
|
|
674
|
+
var valid0 = _errs2 === errors;
|
|
675
|
+
}
|
|
676
|
+
else {
|
|
677
|
+
var valid0 = true;
|
|
678
|
+
}
|
|
679
|
+
if (valid0) {
|
|
680
|
+
if (data.id !== void 0) {
|
|
681
|
+
const _errs4 = errors;
|
|
682
|
+
if (typeof data.id !== "string") {
|
|
683
|
+
validate31.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
684
|
+
return false;
|
|
685
|
+
}
|
|
686
|
+
var valid0 = _errs4 === errors;
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
var valid0 = true;
|
|
690
|
+
}
|
|
691
|
+
if (valid0) {
|
|
692
|
+
if (data.version !== void 0) {
|
|
693
|
+
const _errs6 = errors;
|
|
694
|
+
if (typeof data.version !== "string") {
|
|
695
|
+
validate31.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
696
|
+
return false;
|
|
697
|
+
}
|
|
698
|
+
var valid0 = _errs6 === errors;
|
|
699
|
+
}
|
|
700
|
+
else {
|
|
701
|
+
var valid0 = true;
|
|
702
|
+
}
|
|
703
|
+
if (valid0) {
|
|
704
|
+
if (data.rtl !== void 0) {
|
|
705
|
+
const _errs8 = errors;
|
|
706
|
+
if (typeof data.rtl !== "boolean") {
|
|
707
|
+
validate31.errors = [{ instancePath: instancePath + "/rtl", schemaPath: "#/properties/rtl/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
708
|
+
return false;
|
|
709
|
+
}
|
|
710
|
+
var valid0 = _errs8 === errors;
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
var valid0 = true;
|
|
714
|
+
}
|
|
715
|
+
if (valid0) {
|
|
716
|
+
if (data.languages !== void 0) {
|
|
717
|
+
let data4 = data.languages;
|
|
718
|
+
const _errs10 = errors;
|
|
719
|
+
if (errors === _errs10) {
|
|
720
|
+
if (Array.isArray(data4)) {
|
|
721
|
+
var valid1 = true;
|
|
722
|
+
const len0 = data4.length;
|
|
723
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
724
|
+
let data5 = data4[i0];
|
|
725
|
+
const _errs12 = errors;
|
|
726
|
+
const _errs13 = errors;
|
|
727
|
+
if (errors === _errs13) {
|
|
728
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
729
|
+
let missing1;
|
|
730
|
+
if (data5.id === void 0 && (missing1 = "id") || data5.name === void 0 && (missing1 = "name")) {
|
|
731
|
+
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
732
|
+
return false;
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
const _errs15 = errors;
|
|
736
|
+
for (const key1 in data5) {
|
|
737
|
+
if (!(key1 === "name" || key1 === "id")) {
|
|
738
|
+
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
739
|
+
return false;
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
if (_errs15 === errors) {
|
|
744
|
+
if (data5.name !== void 0) {
|
|
745
|
+
const _errs16 = errors;
|
|
746
|
+
if (typeof data5.name !== "string") {
|
|
747
|
+
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/name", schemaPath: "#/definitions/keyboardLanguage/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
748
|
+
return false;
|
|
749
|
+
}
|
|
750
|
+
var valid3 = _errs16 === errors;
|
|
751
|
+
}
|
|
752
|
+
else {
|
|
753
|
+
var valid3 = true;
|
|
754
|
+
}
|
|
755
|
+
if (valid3) {
|
|
756
|
+
if (data5.id !== void 0) {
|
|
757
|
+
const _errs18 = errors;
|
|
758
|
+
if (typeof data5.id !== "string") {
|
|
759
|
+
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0 + "/id", schemaPath: "#/definitions/keyboardLanguage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
760
|
+
return false;
|
|
761
|
+
}
|
|
762
|
+
var valid3 = _errs18 === errors;
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
var valid3 = true;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
else {
|
|
772
|
+
validate31.errors = [{ instancePath: instancePath + "/languages/" + i0, schemaPath: "#/definitions/keyboardLanguage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
773
|
+
return false;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
var valid1 = _errs12 === errors;
|
|
777
|
+
if (!valid1) {
|
|
778
|
+
break;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
validate31.errors = [{ instancePath: instancePath + "/languages", schemaPath: "#/properties/languages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
784
|
+
return false;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
var valid0 = _errs10 === errors;
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
var valid0 = true;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
validate31.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
801
|
+
return false;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
validate31.errors = vErrors;
|
|
805
|
+
return errors === 0;
|
|
806
|
+
}
|
|
807
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
808
|
+
let vErrors = null;
|
|
809
|
+
let errors = 0;
|
|
810
|
+
if (errors === 0) {
|
|
811
|
+
if (Array.isArray(data)) {
|
|
812
|
+
var valid0 = true;
|
|
813
|
+
const len0 = data.length;
|
|
814
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
815
|
+
const _errs1 = errors;
|
|
816
|
+
if (!validate31(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData })) {
|
|
817
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
818
|
+
errors = vErrors.length;
|
|
819
|
+
}
|
|
820
|
+
var valid0 = _errs1 === errors;
|
|
821
|
+
if (!valid0) {
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
validate30.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
828
|
+
return false;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
validate30.errors = vErrors;
|
|
832
|
+
return errors === 0;
|
|
833
|
+
}
|
|
834
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
835
|
+
let vErrors = null;
|
|
836
|
+
let errors = 0;
|
|
837
|
+
if (errors === 0) {
|
|
838
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
839
|
+
const _errs1 = errors;
|
|
840
|
+
for (const key0 in data) {
|
|
841
|
+
if (!(key0 === "website" || key0 === "version" || key0 === "name" || key0 === "copyright" || key0 === "author" || key0 === "description")) {
|
|
842
|
+
validate34.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
843
|
+
return false;
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
if (_errs1 === errors) {
|
|
848
|
+
if (data.website !== void 0) {
|
|
849
|
+
let data0 = data.website;
|
|
850
|
+
const _errs2 = errors;
|
|
851
|
+
const _errs3 = errors;
|
|
852
|
+
if (errors === _errs3) {
|
|
853
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
854
|
+
let missing0;
|
|
855
|
+
if (data0.description === void 0 && (missing0 = "description")) {
|
|
856
|
+
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
857
|
+
return false;
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
const _errs5 = errors;
|
|
861
|
+
for (const key1 in data0) {
|
|
862
|
+
if (!(key1 === "description" || key1 === "url")) {
|
|
863
|
+
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
864
|
+
return false;
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (_errs5 === errors) {
|
|
869
|
+
if (data0.description !== void 0) {
|
|
870
|
+
const _errs6 = errors;
|
|
871
|
+
if (typeof data0.description !== "string") {
|
|
872
|
+
validate34.errors = [{ instancePath: instancePath + "/website/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
873
|
+
return false;
|
|
874
|
+
}
|
|
875
|
+
var valid2 = _errs6 === errors;
|
|
876
|
+
}
|
|
877
|
+
else {
|
|
878
|
+
var valid2 = true;
|
|
879
|
+
}
|
|
880
|
+
if (valid2) {
|
|
881
|
+
if (data0.url !== void 0) {
|
|
882
|
+
const _errs8 = errors;
|
|
883
|
+
if (typeof data0.url !== "string") {
|
|
884
|
+
validate34.errors = [{ instancePath: instancePath + "/website/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
885
|
+
return false;
|
|
886
|
+
}
|
|
887
|
+
var valid2 = _errs8 === errors;
|
|
888
|
+
}
|
|
889
|
+
else {
|
|
890
|
+
var valid2 = true;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
else {
|
|
897
|
+
validate34.errors = [{ instancePath: instancePath + "/website", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
898
|
+
return false;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
var valid0 = _errs2 === errors;
|
|
902
|
+
}
|
|
903
|
+
else {
|
|
904
|
+
var valid0 = true;
|
|
905
|
+
}
|
|
906
|
+
if (valid0) {
|
|
907
|
+
if (data.version !== void 0) {
|
|
908
|
+
let data3 = data.version;
|
|
909
|
+
const _errs10 = errors;
|
|
910
|
+
const _errs11 = errors;
|
|
911
|
+
if (errors === _errs11) {
|
|
912
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
913
|
+
let missing1;
|
|
914
|
+
if (data3.description === void 0 && (missing1 = "description")) {
|
|
915
|
+
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
916
|
+
return false;
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
const _errs13 = errors;
|
|
920
|
+
for (const key2 in data3) {
|
|
921
|
+
if (!(key2 === "description" || key2 === "url")) {
|
|
922
|
+
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
923
|
+
return false;
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
if (_errs13 === errors) {
|
|
928
|
+
if (data3.description !== void 0) {
|
|
929
|
+
const _errs14 = errors;
|
|
930
|
+
if (typeof data3.description !== "string") {
|
|
931
|
+
validate34.errors = [{ instancePath: instancePath + "/version/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
932
|
+
return false;
|
|
933
|
+
}
|
|
934
|
+
var valid4 = _errs14 === errors;
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
var valid4 = true;
|
|
938
|
+
}
|
|
939
|
+
if (valid4) {
|
|
940
|
+
if (data3.url !== void 0) {
|
|
941
|
+
const _errs16 = errors;
|
|
942
|
+
if (typeof data3.url !== "string") {
|
|
943
|
+
validate34.errors = [{ instancePath: instancePath + "/version/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
944
|
+
return false;
|
|
945
|
+
}
|
|
946
|
+
var valid4 = _errs16 === errors;
|
|
947
|
+
}
|
|
948
|
+
else {
|
|
949
|
+
var valid4 = true;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
validate34.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
957
|
+
return false;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
var valid0 = _errs10 === errors;
|
|
961
|
+
}
|
|
962
|
+
else {
|
|
963
|
+
var valid0 = true;
|
|
964
|
+
}
|
|
965
|
+
if (valid0) {
|
|
966
|
+
if (data.name !== void 0) {
|
|
967
|
+
let data6 = data.name;
|
|
968
|
+
const _errs18 = errors;
|
|
969
|
+
const _errs19 = errors;
|
|
970
|
+
if (errors === _errs19) {
|
|
971
|
+
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
972
|
+
let missing2;
|
|
973
|
+
if (data6.description === void 0 && (missing2 = "description")) {
|
|
974
|
+
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
975
|
+
return false;
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
const _errs21 = errors;
|
|
979
|
+
for (const key3 in data6) {
|
|
980
|
+
if (!(key3 === "description" || key3 === "url")) {
|
|
981
|
+
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
982
|
+
return false;
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
if (_errs21 === errors) {
|
|
987
|
+
if (data6.description !== void 0) {
|
|
988
|
+
const _errs22 = errors;
|
|
989
|
+
if (typeof data6.description !== "string") {
|
|
990
|
+
validate34.errors = [{ instancePath: instancePath + "/name/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
991
|
+
return false;
|
|
992
|
+
}
|
|
993
|
+
var valid6 = _errs22 === errors;
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
var valid6 = true;
|
|
997
|
+
}
|
|
998
|
+
if (valid6) {
|
|
999
|
+
if (data6.url !== void 0) {
|
|
1000
|
+
const _errs24 = errors;
|
|
1001
|
+
if (typeof data6.url !== "string") {
|
|
1002
|
+
validate34.errors = [{ instancePath: instancePath + "/name/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
var valid6 = _errs24 === errors;
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
var valid6 = true;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
validate34.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1016
|
+
return false;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
var valid0 = _errs18 === errors;
|
|
1020
|
+
}
|
|
1021
|
+
else {
|
|
1022
|
+
var valid0 = true;
|
|
1023
|
+
}
|
|
1024
|
+
if (valid0) {
|
|
1025
|
+
if (data.copyright !== void 0) {
|
|
1026
|
+
let data9 = data.copyright;
|
|
1027
|
+
const _errs26 = errors;
|
|
1028
|
+
const _errs27 = errors;
|
|
1029
|
+
if (errors === _errs27) {
|
|
1030
|
+
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
|
|
1031
|
+
let missing3;
|
|
1032
|
+
if (data9.description === void 0 && (missing3 = "description")) {
|
|
1033
|
+
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
1034
|
+
return false;
|
|
1035
|
+
}
|
|
1036
|
+
else {
|
|
1037
|
+
const _errs29 = errors;
|
|
1038
|
+
for (const key4 in data9) {
|
|
1039
|
+
if (!(key4 === "description" || key4 === "url")) {
|
|
1040
|
+
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
1041
|
+
return false;
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
if (_errs29 === errors) {
|
|
1046
|
+
if (data9.description !== void 0) {
|
|
1047
|
+
const _errs30 = errors;
|
|
1048
|
+
if (typeof data9.description !== "string") {
|
|
1049
|
+
validate34.errors = [{ instancePath: instancePath + "/copyright/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1050
|
+
return false;
|
|
1051
|
+
}
|
|
1052
|
+
var valid8 = _errs30 === errors;
|
|
1053
|
+
}
|
|
1054
|
+
else {
|
|
1055
|
+
var valid8 = true;
|
|
1056
|
+
}
|
|
1057
|
+
if (valid8) {
|
|
1058
|
+
if (data9.url !== void 0) {
|
|
1059
|
+
const _errs32 = errors;
|
|
1060
|
+
if (typeof data9.url !== "string") {
|
|
1061
|
+
validate34.errors = [{ instancePath: instancePath + "/copyright/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1062
|
+
return false;
|
|
1063
|
+
}
|
|
1064
|
+
var valid8 = _errs32 === errors;
|
|
1065
|
+
}
|
|
1066
|
+
else {
|
|
1067
|
+
var valid8 = true;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
else {
|
|
1074
|
+
validate34.errors = [{ instancePath: instancePath + "/copyright", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1075
|
+
return false;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
var valid0 = _errs26 === errors;
|
|
1079
|
+
}
|
|
1080
|
+
else {
|
|
1081
|
+
var valid0 = true;
|
|
1082
|
+
}
|
|
1083
|
+
if (valid0) {
|
|
1084
|
+
if (data.author !== void 0) {
|
|
1085
|
+
let data12 = data.author;
|
|
1086
|
+
const _errs34 = errors;
|
|
1087
|
+
const _errs35 = errors;
|
|
1088
|
+
if (errors === _errs35) {
|
|
1089
|
+
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
1090
|
+
let missing4;
|
|
1091
|
+
if (data12.description === void 0 && (missing4 = "description")) {
|
|
1092
|
+
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
1093
|
+
return false;
|
|
1094
|
+
}
|
|
1095
|
+
else {
|
|
1096
|
+
const _errs37 = errors;
|
|
1097
|
+
for (const key5 in data12) {
|
|
1098
|
+
if (!(key5 === "description" || key5 === "url")) {
|
|
1099
|
+
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
1100
|
+
return false;
|
|
1101
|
+
break;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
if (_errs37 === errors) {
|
|
1105
|
+
if (data12.description !== void 0) {
|
|
1106
|
+
const _errs38 = errors;
|
|
1107
|
+
if (typeof data12.description !== "string") {
|
|
1108
|
+
validate34.errors = [{ instancePath: instancePath + "/author/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1109
|
+
return false;
|
|
1110
|
+
}
|
|
1111
|
+
var valid10 = _errs38 === errors;
|
|
1112
|
+
}
|
|
1113
|
+
else {
|
|
1114
|
+
var valid10 = true;
|
|
1115
|
+
}
|
|
1116
|
+
if (valid10) {
|
|
1117
|
+
if (data12.url !== void 0) {
|
|
1118
|
+
const _errs40 = errors;
|
|
1119
|
+
if (typeof data12.url !== "string") {
|
|
1120
|
+
validate34.errors = [{ instancePath: instancePath + "/author/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1121
|
+
return false;
|
|
1122
|
+
}
|
|
1123
|
+
var valid10 = _errs40 === errors;
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
var valid10 = true;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
else {
|
|
1133
|
+
validate34.errors = [{ instancePath: instancePath + "/author", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1134
|
+
return false;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
var valid0 = _errs34 === errors;
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
var valid0 = true;
|
|
1141
|
+
}
|
|
1142
|
+
if (valid0) {
|
|
1143
|
+
if (data.description !== void 0) {
|
|
1144
|
+
let data15 = data.description;
|
|
1145
|
+
const _errs42 = errors;
|
|
1146
|
+
const _errs43 = errors;
|
|
1147
|
+
if (errors === _errs43) {
|
|
1148
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
1149
|
+
let missing5;
|
|
1150
|
+
if (data15.description === void 0 && (missing5 = "description")) {
|
|
1151
|
+
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
|
|
1152
|
+
return false;
|
|
1153
|
+
}
|
|
1154
|
+
else {
|
|
1155
|
+
const _errs45 = errors;
|
|
1156
|
+
for (const key6 in data15) {
|
|
1157
|
+
if (!(key6 === "description" || key6 === "url")) {
|
|
1158
|
+
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
1159
|
+
return false;
|
|
1160
|
+
break;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
if (_errs45 === errors) {
|
|
1164
|
+
if (data15.description !== void 0) {
|
|
1165
|
+
const _errs46 = errors;
|
|
1166
|
+
if (typeof data15.description !== "string") {
|
|
1167
|
+
validate34.errors = [{ instancePath: instancePath + "/description/description", schemaPath: "#/definitions/infoItem/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1168
|
+
return false;
|
|
1169
|
+
}
|
|
1170
|
+
var valid12 = _errs46 === errors;
|
|
1171
|
+
}
|
|
1172
|
+
else {
|
|
1173
|
+
var valid12 = true;
|
|
1174
|
+
}
|
|
1175
|
+
if (valid12) {
|
|
1176
|
+
if (data15.url !== void 0) {
|
|
1177
|
+
const _errs48 = errors;
|
|
1178
|
+
if (typeof data15.url !== "string") {
|
|
1179
|
+
validate34.errors = [{ instancePath: instancePath + "/description/url", schemaPath: "#/definitions/infoItem/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1180
|
+
return false;
|
|
1181
|
+
}
|
|
1182
|
+
var valid12 = _errs48 === errors;
|
|
1183
|
+
}
|
|
1184
|
+
else {
|
|
1185
|
+
var valid12 = true;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
else {
|
|
1192
|
+
validate34.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/definitions/infoItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1193
|
+
return false;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
var valid0 = _errs42 === errors;
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
var valid0 = true;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
else {
|
|
1209
|
+
validate34.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1210
|
+
return false;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
validate34.errors = vErrors;
|
|
1214
|
+
return errors === 0;
|
|
1215
|
+
}
|
|
1216
|
+
var pattern0 = new RegExp(".", "u");
|
|
1217
|
+
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1218
|
+
let vErrors = null;
|
|
1219
|
+
let errors = 0;
|
|
1220
|
+
if (errors === 0) {
|
|
1221
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1222
|
+
let missing0;
|
|
1223
|
+
if (data.options === void 0 && (missing0 = "options") || data.system === void 0 && (missing0 = "system")) {
|
|
1224
|
+
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1225
|
+
return false;
|
|
1226
|
+
}
|
|
1227
|
+
else {
|
|
1228
|
+
const _errs1 = errors;
|
|
1229
|
+
for (const key0 in data) {
|
|
1230
|
+
if (!func4.call(schema23.properties, key0)) {
|
|
1231
|
+
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1232
|
+
return false;
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
if (_errs1 === errors) {
|
|
1237
|
+
if (data.system !== void 0) {
|
|
1238
|
+
let data0 = data.system;
|
|
1239
|
+
const _errs2 = errors;
|
|
1240
|
+
const _errs3 = errors;
|
|
1241
|
+
if (errors === _errs3) {
|
|
1242
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
1243
|
+
let missing1;
|
|
1244
|
+
if (data0.fileVersion === void 0 && (missing1 = "fileVersion")) {
|
|
1245
|
+
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1246
|
+
return false;
|
|
1247
|
+
}
|
|
1248
|
+
else {
|
|
1249
|
+
const _errs5 = errors;
|
|
1250
|
+
for (const key1 in data0) {
|
|
1251
|
+
if (!(key1 === "keymanDeveloperVersion" || key1 === "fileVersion")) {
|
|
1252
|
+
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1253
|
+
return false;
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
if (_errs5 === errors) {
|
|
1258
|
+
if (data0.keymanDeveloperVersion !== void 0) {
|
|
1259
|
+
const _errs6 = errors;
|
|
1260
|
+
if (typeof data0.keymanDeveloperVersion !== "string") {
|
|
1261
|
+
validate21.errors = [{ instancePath: instancePath + "/system/keymanDeveloperVersion", schemaPath: "#/definitions/system/properties/keymanDeveloperVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1262
|
+
return false;
|
|
1263
|
+
}
|
|
1264
|
+
var valid2 = _errs6 === errors;
|
|
1265
|
+
}
|
|
1266
|
+
else {
|
|
1267
|
+
var valid2 = true;
|
|
1268
|
+
}
|
|
1269
|
+
if (valid2) {
|
|
1270
|
+
if (data0.fileVersion !== void 0) {
|
|
1271
|
+
const _errs8 = errors;
|
|
1272
|
+
if (typeof data0.fileVersion !== "string") {
|
|
1273
|
+
validate21.errors = [{ instancePath: instancePath + "/system/fileVersion", schemaPath: "#/definitions/system/properties/fileVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1274
|
+
return false;
|
|
1275
|
+
}
|
|
1276
|
+
var valid2 = _errs8 === errors;
|
|
1277
|
+
}
|
|
1278
|
+
else {
|
|
1279
|
+
var valid2 = true;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
validate21.errors = [{ instancePath: instancePath + "/system", schemaPath: "#/definitions/system/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1287
|
+
return false;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
var valid0 = _errs2 === errors;
|
|
1291
|
+
}
|
|
1292
|
+
else {
|
|
1293
|
+
var valid0 = true;
|
|
1294
|
+
}
|
|
1295
|
+
if (valid0) {
|
|
1296
|
+
if (data.options !== void 0) {
|
|
1297
|
+
let data3 = data.options;
|
|
1298
|
+
const _errs10 = errors;
|
|
1299
|
+
const _errs11 = errors;
|
|
1300
|
+
if (errors === _errs11) {
|
|
1301
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
1302
|
+
const _errs13 = errors;
|
|
1303
|
+
for (const key2 in data3) {
|
|
1304
|
+
if (!(key2 === "readmeFile" || key2 === "graphicFile" || key2 === "licenseFile" || key2 === "welcomeFile" || key2 === "executeProgram" || key2 === "msiFilename" || key2 === "msiOptions")) {
|
|
1305
|
+
validate21.errors = [{ instancePath: instancePath + "/options", schemaPath: "#/definitions/options/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
1306
|
+
return false;
|
|
1307
|
+
break;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
if (_errs13 === errors) {
|
|
1311
|
+
if (data3.readmeFile !== void 0) {
|
|
1312
|
+
const _errs14 = errors;
|
|
1313
|
+
if (typeof data3.readmeFile !== "string") {
|
|
1314
|
+
validate21.errors = [{ instancePath: instancePath + "/options/readmeFile", schemaPath: "#/definitions/options/properties/readmeFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1315
|
+
return false;
|
|
1316
|
+
}
|
|
1317
|
+
var valid4 = _errs14 === errors;
|
|
1318
|
+
}
|
|
1319
|
+
else {
|
|
1320
|
+
var valid4 = true;
|
|
1321
|
+
}
|
|
1322
|
+
if (valid4) {
|
|
1323
|
+
if (data3.graphicFile !== void 0) {
|
|
1324
|
+
const _errs16 = errors;
|
|
1325
|
+
if (typeof data3.graphicFile !== "string") {
|
|
1326
|
+
validate21.errors = [{ instancePath: instancePath + "/options/graphicFile", schemaPath: "#/definitions/options/properties/graphicFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1327
|
+
return false;
|
|
1328
|
+
}
|
|
1329
|
+
var valid4 = _errs16 === errors;
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
var valid4 = true;
|
|
1333
|
+
}
|
|
1334
|
+
if (valid4) {
|
|
1335
|
+
if (data3.licenseFile !== void 0) {
|
|
1336
|
+
const _errs18 = errors;
|
|
1337
|
+
if (typeof data3.licenseFile !== "string") {
|
|
1338
|
+
validate21.errors = [{ instancePath: instancePath + "/options/licenseFile", schemaPath: "#/definitions/options/properties/licenseFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1339
|
+
return false;
|
|
1340
|
+
}
|
|
1341
|
+
var valid4 = _errs18 === errors;
|
|
1342
|
+
}
|
|
1343
|
+
else {
|
|
1344
|
+
var valid4 = true;
|
|
1345
|
+
}
|
|
1346
|
+
if (valid4) {
|
|
1347
|
+
if (data3.welcomeFile !== void 0) {
|
|
1348
|
+
const _errs20 = errors;
|
|
1349
|
+
if (typeof data3.welcomeFile !== "string") {
|
|
1350
|
+
validate21.errors = [{ instancePath: instancePath + "/options/welcomeFile", schemaPath: "#/definitions/options/properties/welcomeFile/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1351
|
+
return false;
|
|
1352
|
+
}
|
|
1353
|
+
var valid4 = _errs20 === errors;
|
|
1354
|
+
}
|
|
1355
|
+
else {
|
|
1356
|
+
var valid4 = true;
|
|
1357
|
+
}
|
|
1358
|
+
if (valid4) {
|
|
1359
|
+
if (data3.executeProgram !== void 0) {
|
|
1360
|
+
const _errs22 = errors;
|
|
1361
|
+
if (typeof data3.executeProgram !== "string") {
|
|
1362
|
+
validate21.errors = [{ instancePath: instancePath + "/options/executeProgram", schemaPath: "#/definitions/options/properties/executeProgram/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1363
|
+
return false;
|
|
1364
|
+
}
|
|
1365
|
+
var valid4 = _errs22 === errors;
|
|
1366
|
+
}
|
|
1367
|
+
else {
|
|
1368
|
+
var valid4 = true;
|
|
1369
|
+
}
|
|
1370
|
+
if (valid4) {
|
|
1371
|
+
if (data3.msiFilename !== void 0) {
|
|
1372
|
+
const _errs24 = errors;
|
|
1373
|
+
if (typeof data3.msiFilename !== "string") {
|
|
1374
|
+
validate21.errors = [{ instancePath: instancePath + "/options/msiFilename", schemaPath: "#/definitions/options/properties/msiFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1375
|
+
return false;
|
|
1376
|
+
}
|
|
1377
|
+
var valid4 = _errs24 === errors;
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
var valid4 = true;
|
|
1381
|
+
}
|
|
1382
|
+
if (valid4) {
|
|
1383
|
+
if (data3.msiOptions !== void 0) {
|
|
1384
|
+
const _errs26 = errors;
|
|
1385
|
+
if (typeof data3.msiOptions !== "string") {
|
|
1386
|
+
validate21.errors = [{ instancePath: instancePath + "/options/msiOptions", schemaPath: "#/definitions/options/properties/msiOptions/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1387
|
+
return false;
|
|
1388
|
+
}
|
|
1389
|
+
var valid4 = _errs26 === errors;
|
|
1390
|
+
}
|
|
1391
|
+
else {
|
|
1392
|
+
var valid4 = true;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
else {
|
|
1403
|
+
validate21.errors = [{ instancePath: instancePath + "/options", schemaPath: "#/definitions/options/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1404
|
+
return false;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
var valid0 = _errs10 === errors;
|
|
1408
|
+
}
|
|
1409
|
+
else {
|
|
1410
|
+
var valid0 = true;
|
|
1411
|
+
}
|
|
1412
|
+
if (valid0) {
|
|
1413
|
+
if (data.startMenu !== void 0) {
|
|
1414
|
+
const _errs28 = errors;
|
|
1415
|
+
if (!validate22(data.startMenu, { instancePath: instancePath + "/startMenu", parentData: data, parentDataProperty: "startMenu", rootData })) {
|
|
1416
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
1417
|
+
errors = vErrors.length;
|
|
1418
|
+
}
|
|
1419
|
+
var valid0 = _errs28 === errors;
|
|
1420
|
+
}
|
|
1421
|
+
else {
|
|
1422
|
+
var valid0 = true;
|
|
1423
|
+
}
|
|
1424
|
+
if (valid0) {
|
|
1425
|
+
if (data.strings !== void 0) {
|
|
1426
|
+
let data12 = data.strings;
|
|
1427
|
+
const _errs29 = errors;
|
|
1428
|
+
const _errs30 = errors;
|
|
1429
|
+
if (errors === _errs30) {
|
|
1430
|
+
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
1431
|
+
const _errs32 = errors;
|
|
1432
|
+
for (const key3 in data12) {
|
|
1433
|
+
if (!pattern0.test(key3)) {
|
|
1434
|
+
validate21.errors = [{ instancePath: instancePath + "/strings", schemaPath: "#/definitions/strings/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
1435
|
+
return false;
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
if (_errs32 === errors) {
|
|
1440
|
+
var valid6 = true;
|
|
1441
|
+
for (const key4 in data12) {
|
|
1442
|
+
if (pattern0.test(key4)) {
|
|
1443
|
+
const _errs33 = errors;
|
|
1444
|
+
if (typeof data12[key4] !== "string") {
|
|
1445
|
+
validate21.errors = [{ instancePath: instancePath + "/strings/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/strings/patternProperties/./type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1446
|
+
return false;
|
|
1447
|
+
}
|
|
1448
|
+
var valid6 = _errs33 === errors;
|
|
1449
|
+
if (!valid6) {
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
validate21.errors = [{ instancePath: instancePath + "/strings", schemaPath: "#/definitions/strings/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1458
|
+
return false;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
var valid0 = _errs29 === errors;
|
|
1462
|
+
}
|
|
1463
|
+
else {
|
|
1464
|
+
var valid0 = true;
|
|
1465
|
+
}
|
|
1466
|
+
if (valid0) {
|
|
1467
|
+
if (data.files !== void 0) {
|
|
1468
|
+
const _errs35 = errors;
|
|
1469
|
+
if (!validate24(data.files, { instancePath: instancePath + "/files", parentData: data, parentDataProperty: "files", rootData })) {
|
|
1470
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
1471
|
+
errors = vErrors.length;
|
|
1472
|
+
}
|
|
1473
|
+
var valid0 = _errs35 === errors;
|
|
1474
|
+
}
|
|
1475
|
+
else {
|
|
1476
|
+
var valid0 = true;
|
|
1477
|
+
}
|
|
1478
|
+
if (valid0) {
|
|
1479
|
+
if (data.keyboards !== void 0) {
|
|
1480
|
+
const _errs36 = errors;
|
|
1481
|
+
if (!validate26(data.keyboards, { instancePath: instancePath + "/keyboards", parentData: data, parentDataProperty: "keyboards", rootData })) {
|
|
1482
|
+
vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
|
|
1483
|
+
errors = vErrors.length;
|
|
1484
|
+
}
|
|
1485
|
+
var valid0 = _errs36 === errors;
|
|
1486
|
+
}
|
|
1487
|
+
else {
|
|
1488
|
+
var valid0 = true;
|
|
1489
|
+
}
|
|
1490
|
+
if (valid0) {
|
|
1491
|
+
if (data.lexicalModels !== void 0) {
|
|
1492
|
+
const _errs37 = errors;
|
|
1493
|
+
if (!validate30(data.lexicalModels, { instancePath: instancePath + "/lexicalModels", parentData: data, parentDataProperty: "lexicalModels", rootData })) {
|
|
1494
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
1495
|
+
errors = vErrors.length;
|
|
1496
|
+
}
|
|
1497
|
+
var valid0 = _errs37 === errors;
|
|
1498
|
+
}
|
|
1499
|
+
else {
|
|
1500
|
+
var valid0 = true;
|
|
1501
|
+
}
|
|
1502
|
+
if (valid0) {
|
|
1503
|
+
if (data.info !== void 0) {
|
|
1504
|
+
const _errs38 = errors;
|
|
1505
|
+
if (!validate34(data.info, { instancePath: instancePath + "/info", parentData: data, parentDataProperty: "info", rootData })) {
|
|
1506
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
1507
|
+
errors = vErrors.length;
|
|
1508
|
+
}
|
|
1509
|
+
var valid0 = _errs38 === errors;
|
|
1510
|
+
}
|
|
1511
|
+
else {
|
|
1512
|
+
var valid0 = true;
|
|
1513
|
+
}
|
|
1514
|
+
if (valid0) {
|
|
1515
|
+
if (data.relatedPackages !== void 0) {
|
|
1516
|
+
let data18 = data.relatedPackages;
|
|
1517
|
+
const _errs39 = errors;
|
|
1518
|
+
if (errors === _errs39) {
|
|
1519
|
+
if (Array.isArray(data18)) {
|
|
1520
|
+
var valid7 = true;
|
|
1521
|
+
const len0 = data18.length;
|
|
1522
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1523
|
+
let data19 = data18[i0];
|
|
1524
|
+
const _errs41 = errors;
|
|
1525
|
+
const _errs42 = errors;
|
|
1526
|
+
if (errors === _errs42) {
|
|
1527
|
+
if (data19 && typeof data19 == "object" && !Array.isArray(data19)) {
|
|
1528
|
+
let missing2;
|
|
1529
|
+
if (data19.id === void 0 && (missing2 = "id") || data19.relationship === void 0 && (missing2 = "relationship")) {
|
|
1530
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
1531
|
+
return false;
|
|
1532
|
+
}
|
|
1533
|
+
else {
|
|
1534
|
+
const _errs44 = errors;
|
|
1535
|
+
for (const key5 in data19) {
|
|
1536
|
+
if (!(key5 === "id" || key5 === "relationship")) {
|
|
1537
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
1538
|
+
return false;
|
|
1539
|
+
break;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
if (_errs44 === errors) {
|
|
1543
|
+
if (data19.id !== void 0) {
|
|
1544
|
+
const _errs45 = errors;
|
|
1545
|
+
if (typeof data19.id !== "string") {
|
|
1546
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/id", schemaPath: "#/definitions/relatedPackage/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1547
|
+
return false;
|
|
1548
|
+
}
|
|
1549
|
+
var valid9 = _errs45 === errors;
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
var valid9 = true;
|
|
1553
|
+
}
|
|
1554
|
+
if (valid9) {
|
|
1555
|
+
if (data19.relationship !== void 0) {
|
|
1556
|
+
let data21 = data19.relationship;
|
|
1557
|
+
const _errs47 = errors;
|
|
1558
|
+
if (typeof data21 !== "string") {
|
|
1559
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/relationship", schemaPath: "#/definitions/relatedPackage/properties/relationship/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1560
|
+
return false;
|
|
1561
|
+
}
|
|
1562
|
+
if (!(data21 === "deprecates" || data21 === "related")) {
|
|
1563
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0 + "/relationship", schemaPath: "#/definitions/relatedPackage/properties/relationship/enum", keyword: "enum", params: { allowedValues: schema45.properties.relationship.enum }, message: "must be equal to one of the allowed values" }];
|
|
1564
|
+
return false;
|
|
1565
|
+
}
|
|
1566
|
+
var valid9 = _errs47 === errors;
|
|
1567
|
+
}
|
|
1568
|
+
else {
|
|
1569
|
+
var valid9 = true;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
else {
|
|
1576
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages/" + i0, schemaPath: "#/definitions/relatedPackage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1577
|
+
return false;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
var valid7 = _errs41 === errors;
|
|
1581
|
+
if (!valid7) {
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
else {
|
|
1587
|
+
validate21.errors = [{ instancePath: instancePath + "/relatedPackages", schemaPath: "#/properties/relatedPackages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1588
|
+
return false;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
var valid0 = _errs39 === errors;
|
|
1592
|
+
}
|
|
1593
|
+
else {
|
|
1594
|
+
var valid0 = true;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
else {
|
|
1608
|
+
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1609
|
+
return false;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
validate21.errors = vErrors;
|
|
1613
|
+
return errors === 0;
|
|
1614
|
+
}
|
|
1615
|
+
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1616
|
+
let vErrors = null;
|
|
1617
|
+
let errors = 0;
|
|
1618
|
+
if (!validate21(data, { instancePath, parentData, parentDataProperty, rootData })) {
|
|
1619
|
+
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
1620
|
+
errors = vErrors.length;
|
|
1621
|
+
}
|
|
1622
|
+
validate20.errors = vErrors;
|
|
1623
|
+
return errors === 0;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
export default require_kmp_schema_validator();
|
|
1628
1628
|
//# sourceMappingURL=kmp.schema.validator.mjs.map
|
|
1629
|
-
//# debugId=
|
|
1629
|
+
//# debugId=f14785aa-752a-56d4-92eb-5bd9f4af215d
|