@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,746 +1,746 @@
|
|
|
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/ldml-keyboardtest3.schema.validator.cjs
|
|
8
|
-
var require_ldml_keyboardtest3_schema_validator = __commonJS({
|
|
9
|
-
"obj/schemas/ldml-keyboardtest3.schema.validator.cjs"(exports, module) {
|
|
10
|
-
module.exports = validate20;
|
|
11
|
-
module.exports.default = validate20;
|
|
12
|
-
var schema22 = { "$schema": "http://json-schema.org/schema#", "additionalProperties": false, "definitions": { "any": { "type": "string" }, "backspace": { "type": "string" }, "check": { "additionalProperties": false, "properties": { "result": { "type": "string" } }, "required": ["result"], "type": "object" }, "emit": { "additionalProperties": false, "properties": { "to": { "type": "string" } }, "required": ["to"], "type": "object" }, "info": { "additionalProperties": false, "properties": { "author": { "type": "string" }, "keyboard": { "type": "string" }, "name": { "type": "string" } }, "required": ["keyboard", "name"], "type": "object" }, "keystroke": { "additionalProperties": false, "properties": { "flick": { "type": "string" }, "key": { "type": "string" }, "longPress": { "type": "string" }, "tapCount": { "type": "string" } }, "required": ["key"], "type": "object" }, "repertoire": { "additionalProperties": false, "properties": { "chars": { "type": "string" }, "name": { "type": "string" }, "type": { "enum": ["default", "simple", "gesture", "flick", "longPress", "multiTap", "hardware"], "type": "string" } }, "required": ["chars", "name"], "type": "object" }, "special": { "$ref": "#/definitions/any" }, "startContext": { "additionalProperties": false, "properties": { "to": { "type": "string" } }, "required": ["to"], "type": "object" }, "test": { "additionalProperties": false, "properties": { "backspace": { "$ref": "#/definitions/backspace" }, "check": { "$ref": "#/definitions/check" }, "emit": { "$ref": "#/definitions/emit" }, "keystroke": { "$ref": "#/definitions/keystroke" }, "name": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "startContext": { "$ref": "#/definitions/startContext" } }, "required": ["name"], "type": "object" }, "tests": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "test": { "items": { "$ref": "#/definitions/test" }, "minItems": 1, "type": "array" } }, "required": ["test", "name"], "type": "object" } }, "properties": { "keyboardTest3": { "additionalProperties": false, "properties": { "conformsTo": { "enum": ["techpreview"], "type": "string" }, "info": { "$ref": "#/definitions/info" }, "repertoire": { "items": { "$ref": "#/definitions/repertoire" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "tests": { "items": { "$ref": "#/definitions/tests" }, "type": "array" }, "xmlns": { "type": "string" } }, "required": ["info", "conformsTo"], "type": "object" } }, "required": ["keyboardTest3"], "title": "45/dtd/ldmlKeyboardTest3.xsd", "type": "object" };
|
|
13
|
-
var schema24 = { "additionalProperties": false, "properties": { "chars": { "type": "string" }, "name": { "type": "string" }, "type": { "enum": ["default", "simple", "gesture", "flick", "longPress", "multiTap", "hardware"], "type": "string" } }, "required": ["chars", "name"], "type": "object" };
|
|
14
|
-
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
15
|
-
let vErrors = null;
|
|
16
|
-
let errors = 0;
|
|
17
|
-
if (errors === 0) {
|
|
18
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19
|
-
let missing0;
|
|
20
|
-
if (data.name === void 0 && (missing0 = "name")) {
|
|
21
|
-
validate22.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
const _errs1 = errors;
|
|
26
|
-
for (const key0 in data) {
|
|
27
|
-
if (!(key0 === "backspace" || key0 === "check" || key0 === "emit" || key0 === "keystroke" || key0 === "name" || key0 === "special" || key0 === "startContext")) {
|
|
28
|
-
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
29
|
-
return false;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (_errs1 === errors) {
|
|
34
|
-
if (data.backspace !== void 0) {
|
|
35
|
-
const _errs2 = errors;
|
|
36
|
-
if (typeof data.backspace !== "string") {
|
|
37
|
-
validate22.errors = [{ instancePath: instancePath + "/backspace", schemaPath: "#/definitions/backspace/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
var valid0 = _errs2 === errors;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
var valid0 = true;
|
|
44
|
-
}
|
|
45
|
-
if (valid0) {
|
|
46
|
-
if (data.check !== void 0) {
|
|
47
|
-
let data1 = data.check;
|
|
48
|
-
const _errs5 = errors;
|
|
49
|
-
const _errs6 = errors;
|
|
50
|
-
if (errors === _errs6) {
|
|
51
|
-
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
52
|
-
let missing1;
|
|
53
|
-
if (data1.result === void 0 && (missing1 = "result")) {
|
|
54
|
-
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
const _errs8 = errors;
|
|
59
|
-
for (const key1 in data1) {
|
|
60
|
-
if (!(key1 === "result")) {
|
|
61
|
-
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
62
|
-
return false;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
if (_errs8 === errors) {
|
|
67
|
-
if (data1.result !== void 0) {
|
|
68
|
-
if (typeof data1.result !== "string") {
|
|
69
|
-
validate22.errors = [{ instancePath: instancePath + "/check/result", schemaPath: "#/definitions/check/properties/result/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
var valid0 = _errs5 === errors;
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
var valid0 = true;
|
|
85
|
-
}
|
|
86
|
-
if (valid0) {
|
|
87
|
-
if (data.emit !== void 0) {
|
|
88
|
-
let data3 = data.emit;
|
|
89
|
-
const _errs11 = errors;
|
|
90
|
-
const _errs12 = errors;
|
|
91
|
-
if (errors === _errs12) {
|
|
92
|
-
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
93
|
-
let missing2;
|
|
94
|
-
if (data3.to === void 0 && (missing2 = "to")) {
|
|
95
|
-
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
const _errs14 = errors;
|
|
100
|
-
for (const key2 in data3) {
|
|
101
|
-
if (!(key2 === "to")) {
|
|
102
|
-
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
103
|
-
return false;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (_errs14 === errors) {
|
|
108
|
-
if (data3.to !== void 0) {
|
|
109
|
-
if (typeof data3.to !== "string") {
|
|
110
|
-
validate22.errors = [{ instancePath: instancePath + "/emit/to", schemaPath: "#/definitions/emit/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
var valid0 = _errs11 === errors;
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
var valid0 = true;
|
|
126
|
-
}
|
|
127
|
-
if (valid0) {
|
|
128
|
-
if (data.keystroke !== void 0) {
|
|
129
|
-
let data5 = data.keystroke;
|
|
130
|
-
const _errs17 = errors;
|
|
131
|
-
const _errs18 = errors;
|
|
132
|
-
if (errors === _errs18) {
|
|
133
|
-
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
134
|
-
let missing3;
|
|
135
|
-
if (data5.key === void 0 && (missing3 = "key")) {
|
|
136
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
const _errs20 = errors;
|
|
141
|
-
for (const key3 in data5) {
|
|
142
|
-
if (!(key3 === "flick" || key3 === "key" || key3 === "longPress" || key3 === "tapCount")) {
|
|
143
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
144
|
-
return false;
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
if (_errs20 === errors) {
|
|
149
|
-
if (data5.flick !== void 0) {
|
|
150
|
-
const _errs21 = errors;
|
|
151
|
-
if (typeof data5.flick !== "string") {
|
|
152
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke/flick", schemaPath: "#/definitions/keystroke/properties/flick/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
var valid7 = _errs21 === errors;
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
var valid7 = true;
|
|
159
|
-
}
|
|
160
|
-
if (valid7) {
|
|
161
|
-
if (data5.key !== void 0) {
|
|
162
|
-
const _errs23 = errors;
|
|
163
|
-
if (typeof data5.key !== "string") {
|
|
164
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke/key", schemaPath: "#/definitions/keystroke/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
var valid7 = _errs23 === errors;
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
var valid7 = true;
|
|
171
|
-
}
|
|
172
|
-
if (valid7) {
|
|
173
|
-
if (data5.longPress !== void 0) {
|
|
174
|
-
const _errs25 = errors;
|
|
175
|
-
if (typeof data5.longPress !== "string") {
|
|
176
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke/longPress", schemaPath: "#/definitions/keystroke/properties/longPress/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
var valid7 = _errs25 === errors;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
var valid7 = true;
|
|
183
|
-
}
|
|
184
|
-
if (valid7) {
|
|
185
|
-
if (data5.tapCount !== void 0) {
|
|
186
|
-
const _errs27 = errors;
|
|
187
|
-
if (typeof data5.tapCount !== "string") {
|
|
188
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke/tapCount", schemaPath: "#/definitions/keystroke/properties/tapCount/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
var valid7 = _errs27 === errors;
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
var valid7 = true;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
var valid0 = _errs17 === errors;
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
var valid0 = true;
|
|
211
|
-
}
|
|
212
|
-
if (valid0) {
|
|
213
|
-
if (data.name !== void 0) {
|
|
214
|
-
const _errs29 = errors;
|
|
215
|
-
if (typeof data.name !== "string") {
|
|
216
|
-
validate22.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
217
|
-
return false;
|
|
218
|
-
}
|
|
219
|
-
var valid0 = _errs29 === errors;
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
var valid0 = true;
|
|
223
|
-
}
|
|
224
|
-
if (valid0) {
|
|
225
|
-
if (data.special !== void 0) {
|
|
226
|
-
let data11 = data.special;
|
|
227
|
-
const _errs31 = errors;
|
|
228
|
-
if (errors === _errs31) {
|
|
229
|
-
if (Array.isArray(data11)) {
|
|
230
|
-
var valid8 = true;
|
|
231
|
-
const len0 = data11.length;
|
|
232
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
233
|
-
const _errs33 = errors;
|
|
234
|
-
if (typeof data11[i0] !== "string") {
|
|
235
|
-
validate22.errors = [{ instancePath: instancePath + "/special/" + i0, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
236
|
-
return false;
|
|
237
|
-
}
|
|
238
|
-
var valid8 = _errs33 === errors;
|
|
239
|
-
if (!valid8) {
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
validate22.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
246
|
-
return false;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
var valid0 = _errs31 === errors;
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
var valid0 = true;
|
|
253
|
-
}
|
|
254
|
-
if (valid0) {
|
|
255
|
-
if (data.startContext !== void 0) {
|
|
256
|
-
let data13 = data.startContext;
|
|
257
|
-
const _errs36 = errors;
|
|
258
|
-
const _errs37 = errors;
|
|
259
|
-
if (errors === _errs37) {
|
|
260
|
-
if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
|
|
261
|
-
let missing4;
|
|
262
|
-
if (data13.to === void 0 && (missing4 = "to")) {
|
|
263
|
-
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
264
|
-
return false;
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
const _errs39 = errors;
|
|
268
|
-
for (const key4 in data13) {
|
|
269
|
-
if (!(key4 === "to")) {
|
|
270
|
-
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
271
|
-
return false;
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
if (_errs39 === errors) {
|
|
276
|
-
if (data13.to !== void 0) {
|
|
277
|
-
if (typeof data13.to !== "string") {
|
|
278
|
-
validate22.errors = [{ instancePath: instancePath + "/startContext/to", schemaPath: "#/definitions/startContext/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
279
|
-
return false;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
287
|
-
return false;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
var valid0 = _errs36 === errors;
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
var valid0 = true;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
306
|
-
return false;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
validate22.errors = vErrors;
|
|
310
|
-
return errors === 0;
|
|
311
|
-
}
|
|
312
|
-
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
313
|
-
let vErrors = null;
|
|
314
|
-
let errors = 0;
|
|
315
|
-
if (errors === 0) {
|
|
316
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
317
|
-
let missing0;
|
|
318
|
-
if (data.test === void 0 && (missing0 = "test") || data.name === void 0 && (missing0 = "name")) {
|
|
319
|
-
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
320
|
-
return false;
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
const _errs1 = errors;
|
|
324
|
-
for (const key0 in data) {
|
|
325
|
-
if (!(key0 === "name" || key0 === "special" || key0 === "test")) {
|
|
326
|
-
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
327
|
-
return false;
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
if (_errs1 === errors) {
|
|
332
|
-
if (data.name !== void 0) {
|
|
333
|
-
const _errs2 = errors;
|
|
334
|
-
if (typeof data.name !== "string") {
|
|
335
|
-
validate21.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
var valid0 = _errs2 === errors;
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
var valid0 = true;
|
|
342
|
-
}
|
|
343
|
-
if (valid0) {
|
|
344
|
-
if (data.special !== void 0) {
|
|
345
|
-
let data1 = data.special;
|
|
346
|
-
const _errs4 = errors;
|
|
347
|
-
if (errors === _errs4) {
|
|
348
|
-
if (Array.isArray(data1)) {
|
|
349
|
-
var valid1 = true;
|
|
350
|
-
const len0 = data1.length;
|
|
351
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
352
|
-
const _errs6 = errors;
|
|
353
|
-
if (typeof data1[i0] !== "string") {
|
|
354
|
-
validate21.errors = [{ instancePath: instancePath + "/special/" + i0, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
355
|
-
return false;
|
|
356
|
-
}
|
|
357
|
-
var valid1 = _errs6 === errors;
|
|
358
|
-
if (!valid1) {
|
|
359
|
-
break;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
validate21.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
365
|
-
return false;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
var valid0 = _errs4 === errors;
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
var valid0 = true;
|
|
372
|
-
}
|
|
373
|
-
if (valid0) {
|
|
374
|
-
if (data.test !== void 0) {
|
|
375
|
-
let data3 = data.test;
|
|
376
|
-
const _errs9 = errors;
|
|
377
|
-
if (errors === _errs9) {
|
|
378
|
-
if (Array.isArray(data3)) {
|
|
379
|
-
if (data3.length < 1) {
|
|
380
|
-
validate21.errors = [{ instancePath: instancePath + "/test", schemaPath: "#/properties/test/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
var valid3 = true;
|
|
385
|
-
const len1 = data3.length;
|
|
386
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
387
|
-
const _errs11 = errors;
|
|
388
|
-
if (!validate22(data3[i1], { instancePath: instancePath + "/test/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
389
|
-
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
390
|
-
errors = vErrors.length;
|
|
391
|
-
}
|
|
392
|
-
var valid3 = _errs11 === errors;
|
|
393
|
-
if (!valid3) {
|
|
394
|
-
break;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
validate21.errors = [{ instancePath: instancePath + "/test", schemaPath: "#/properties/test/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
401
|
-
return false;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
var valid0 = _errs9 === errors;
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
var valid0 = true;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
416
|
-
return false;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
validate21.errors = vErrors;
|
|
420
|
-
return errors === 0;
|
|
421
|
-
}
|
|
422
|
-
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
423
|
-
let vErrors = null;
|
|
424
|
-
let errors = 0;
|
|
425
|
-
if (errors === 0) {
|
|
426
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
427
|
-
let missing0;
|
|
428
|
-
if (data.keyboardTest3 === void 0 && (missing0 = "keyboardTest3")) {
|
|
429
|
-
validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
const _errs1 = errors;
|
|
434
|
-
for (const key0 in data) {
|
|
435
|
-
if (!(key0 === "keyboardTest3")) {
|
|
436
|
-
validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
437
|
-
return false;
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
if (_errs1 === errors) {
|
|
442
|
-
if (data.keyboardTest3 !== void 0) {
|
|
443
|
-
let data0 = data.keyboardTest3;
|
|
444
|
-
const _errs2 = errors;
|
|
445
|
-
if (errors === _errs2) {
|
|
446
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
447
|
-
let missing1;
|
|
448
|
-
if (data0.info === void 0 && (missing1 = "info") || data0.conformsTo === void 0 && (missing1 = "conformsTo")) {
|
|
449
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
450
|
-
return false;
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
const _errs4 = errors;
|
|
454
|
-
for (const key1 in data0) {
|
|
455
|
-
if (!(key1 === "conformsTo" || key1 === "info" || key1 === "repertoire" || key1 === "special" || key1 === "tests" || key1 === "xmlns")) {
|
|
456
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
457
|
-
return false;
|
|
458
|
-
break;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
if (_errs4 === errors) {
|
|
462
|
-
if (data0.conformsTo !== void 0) {
|
|
463
|
-
let data1 = data0.conformsTo;
|
|
464
|
-
const _errs5 = errors;
|
|
465
|
-
if (typeof data1 !== "string") {
|
|
466
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/conformsTo", schemaPath: "#/properties/keyboardTest3/properties/conformsTo/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
467
|
-
return false;
|
|
468
|
-
}
|
|
469
|
-
if (!(data1 === "techpreview")) {
|
|
470
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/conformsTo", schemaPath: "#/properties/keyboardTest3/properties/conformsTo/enum", keyword: "enum", params: { allowedValues: schema22.properties.keyboardTest3.properties.conformsTo.enum }, message: "must be equal to one of the allowed values" }];
|
|
471
|
-
return false;
|
|
472
|
-
}
|
|
473
|
-
var valid1 = _errs5 === errors;
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
var valid1 = true;
|
|
477
|
-
}
|
|
478
|
-
if (valid1) {
|
|
479
|
-
if (data0.info !== void 0) {
|
|
480
|
-
let data2 = data0.info;
|
|
481
|
-
const _errs7 = errors;
|
|
482
|
-
const _errs8 = errors;
|
|
483
|
-
if (errors === _errs8) {
|
|
484
|
-
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
485
|
-
let missing2;
|
|
486
|
-
if (data2.keyboard === void 0 && (missing2 = "keyboard") || data2.name === void 0 && (missing2 = "name")) {
|
|
487
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
const _errs10 = errors;
|
|
492
|
-
for (const key2 in data2) {
|
|
493
|
-
if (!(key2 === "author" || key2 === "keyboard" || key2 === "name")) {
|
|
494
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
495
|
-
return false;
|
|
496
|
-
break;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
if (_errs10 === errors) {
|
|
500
|
-
if (data2.author !== void 0) {
|
|
501
|
-
const _errs11 = errors;
|
|
502
|
-
if (typeof data2.author !== "string") {
|
|
503
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/author", schemaPath: "#/definitions/info/properties/author/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
504
|
-
return false;
|
|
505
|
-
}
|
|
506
|
-
var valid3 = _errs11 === errors;
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
var valid3 = true;
|
|
510
|
-
}
|
|
511
|
-
if (valid3) {
|
|
512
|
-
if (data2.keyboard !== void 0) {
|
|
513
|
-
const _errs13 = errors;
|
|
514
|
-
if (typeof data2.keyboard !== "string") {
|
|
515
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/keyboard", schemaPath: "#/definitions/info/properties/keyboard/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
516
|
-
return false;
|
|
517
|
-
}
|
|
518
|
-
var valid3 = _errs13 === errors;
|
|
519
|
-
}
|
|
520
|
-
else {
|
|
521
|
-
var valid3 = true;
|
|
522
|
-
}
|
|
523
|
-
if (valid3) {
|
|
524
|
-
if (data2.name !== void 0) {
|
|
525
|
-
const _errs15 = errors;
|
|
526
|
-
if (typeof data2.name !== "string") {
|
|
527
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/name", schemaPath: "#/definitions/info/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
var valid3 = _errs15 === errors;
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
var valid3 = true;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
542
|
-
return false;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
var valid1 = _errs7 === errors;
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
var valid1 = true;
|
|
549
|
-
}
|
|
550
|
-
if (valid1) {
|
|
551
|
-
if (data0.repertoire !== void 0) {
|
|
552
|
-
let data6 = data0.repertoire;
|
|
553
|
-
const _errs17 = errors;
|
|
554
|
-
if (errors === _errs17) {
|
|
555
|
-
if (Array.isArray(data6)) {
|
|
556
|
-
var valid4 = true;
|
|
557
|
-
const len0 = data6.length;
|
|
558
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
559
|
-
let data7 = data6[i0];
|
|
560
|
-
const _errs19 = errors;
|
|
561
|
-
const _errs20 = errors;
|
|
562
|
-
if (errors === _errs20) {
|
|
563
|
-
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
564
|
-
let missing3;
|
|
565
|
-
if (data7.chars === void 0 && (missing3 = "chars") || data7.name === void 0 && (missing3 = "name")) {
|
|
566
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
567
|
-
return false;
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
const _errs22 = errors;
|
|
571
|
-
for (const key3 in data7) {
|
|
572
|
-
if (!(key3 === "chars" || key3 === "name" || key3 === "type")) {
|
|
573
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
574
|
-
return false;
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
if (_errs22 === errors) {
|
|
579
|
-
if (data7.chars !== void 0) {
|
|
580
|
-
const _errs23 = errors;
|
|
581
|
-
if (typeof data7.chars !== "string") {
|
|
582
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/chars", schemaPath: "#/definitions/repertoire/properties/chars/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
|
-
var valid6 = _errs23 === errors;
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
var valid6 = true;
|
|
589
|
-
}
|
|
590
|
-
if (valid6) {
|
|
591
|
-
if (data7.name !== void 0) {
|
|
592
|
-
const _errs25 = errors;
|
|
593
|
-
if (typeof data7.name !== "string") {
|
|
594
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/name", schemaPath: "#/definitions/repertoire/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
595
|
-
return false;
|
|
596
|
-
}
|
|
597
|
-
var valid6 = _errs25 === errors;
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
var valid6 = true;
|
|
601
|
-
}
|
|
602
|
-
if (valid6) {
|
|
603
|
-
if (data7.type !== void 0) {
|
|
604
|
-
let data10 = data7.type;
|
|
605
|
-
const _errs27 = errors;
|
|
606
|
-
if (typeof data10 !== "string") {
|
|
607
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/type", schemaPath: "#/definitions/repertoire/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
if (!(data10 === "default" || data10 === "simple" || data10 === "gesture" || data10 === "flick" || data10 === "longPress" || data10 === "multiTap" || data10 === "hardware")) {
|
|
611
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/type", schemaPath: "#/definitions/repertoire/properties/type/enum", keyword: "enum", params: { allowedValues: schema24.properties.type.enum }, message: "must be equal to one of the allowed values" }];
|
|
612
|
-
return false;
|
|
613
|
-
}
|
|
614
|
-
var valid6 = _errs27 === errors;
|
|
615
|
-
}
|
|
616
|
-
else {
|
|
617
|
-
var valid6 = true;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
626
|
-
return false;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
var valid4 = _errs19 === errors;
|
|
630
|
-
if (!valid4) {
|
|
631
|
-
break;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire", schemaPath: "#/properties/keyboardTest3/properties/repertoire/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
637
|
-
return false;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
var valid1 = _errs17 === errors;
|
|
641
|
-
}
|
|
642
|
-
else {
|
|
643
|
-
var valid1 = true;
|
|
644
|
-
}
|
|
645
|
-
if (valid1) {
|
|
646
|
-
if (data0.special !== void 0) {
|
|
647
|
-
let data11 = data0.special;
|
|
648
|
-
const _errs29 = errors;
|
|
649
|
-
if (errors === _errs29) {
|
|
650
|
-
if (Array.isArray(data11)) {
|
|
651
|
-
var valid7 = true;
|
|
652
|
-
const len1 = data11.length;
|
|
653
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
654
|
-
const _errs31 = errors;
|
|
655
|
-
if (typeof data11[i1] !== "string") {
|
|
656
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
657
|
-
return false;
|
|
658
|
-
}
|
|
659
|
-
var valid7 = _errs31 === errors;
|
|
660
|
-
if (!valid7) {
|
|
661
|
-
break;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
else {
|
|
666
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/special", schemaPath: "#/properties/keyboardTest3/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
667
|
-
return false;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
var valid1 = _errs29 === errors;
|
|
671
|
-
}
|
|
672
|
-
else {
|
|
673
|
-
var valid1 = true;
|
|
674
|
-
}
|
|
675
|
-
if (valid1) {
|
|
676
|
-
if (data0.tests !== void 0) {
|
|
677
|
-
let data13 = data0.tests;
|
|
678
|
-
const _errs34 = errors;
|
|
679
|
-
if (errors === _errs34) {
|
|
680
|
-
if (Array.isArray(data13)) {
|
|
681
|
-
var valid9 = true;
|
|
682
|
-
const len2 = data13.length;
|
|
683
|
-
for (let i2 = 0; i2 < len2; i2++) {
|
|
684
|
-
const _errs36 = errors;
|
|
685
|
-
if (!validate21(data13[i2], { instancePath: instancePath + "/keyboardTest3/tests/" + i2, parentData: data13, parentDataProperty: i2, rootData })) {
|
|
686
|
-
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
687
|
-
errors = vErrors.length;
|
|
688
|
-
}
|
|
689
|
-
var valid9 = _errs36 === errors;
|
|
690
|
-
if (!valid9) {
|
|
691
|
-
break;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
else {
|
|
696
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/tests", schemaPath: "#/properties/keyboardTest3/properties/tests/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
697
|
-
return false;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
var valid1 = _errs34 === errors;
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
var valid1 = true;
|
|
704
|
-
}
|
|
705
|
-
if (valid1) {
|
|
706
|
-
if (data0.xmlns !== void 0) {
|
|
707
|
-
const _errs37 = errors;
|
|
708
|
-
if (typeof data0.xmlns !== "string") {
|
|
709
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/xmlns", schemaPath: "#/properties/keyboardTest3/properties/xmlns/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
710
|
-
return false;
|
|
711
|
-
}
|
|
712
|
-
var valid1 = _errs37 === errors;
|
|
713
|
-
}
|
|
714
|
-
else {
|
|
715
|
-
var valid1 = true;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
727
|
-
return false;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
else {
|
|
735
|
-
validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
736
|
-
return false;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
validate20.errors = vErrors;
|
|
740
|
-
return errors === 0;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
export default require_ldml_keyboardtest3_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]="e1d7c7da-0235-5cb1-a271-6472ed54713a")}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/ldml-keyboardtest3.schema.validator.cjs
|
|
8
|
+
var require_ldml_keyboardtest3_schema_validator = __commonJS({
|
|
9
|
+
"obj/schemas/ldml-keyboardtest3.schema.validator.cjs"(exports, module) {
|
|
10
|
+
module.exports = validate20;
|
|
11
|
+
module.exports.default = validate20;
|
|
12
|
+
var schema22 = { "$schema": "http://json-schema.org/schema#", "additionalProperties": false, "definitions": { "any": { "type": "string" }, "backspace": { "type": "string" }, "check": { "additionalProperties": false, "properties": { "result": { "type": "string" } }, "required": ["result"], "type": "object" }, "emit": { "additionalProperties": false, "properties": { "to": { "type": "string" } }, "required": ["to"], "type": "object" }, "info": { "additionalProperties": false, "properties": { "author": { "type": "string" }, "keyboard": { "type": "string" }, "name": { "type": "string" } }, "required": ["keyboard", "name"], "type": "object" }, "keystroke": { "additionalProperties": false, "properties": { "flick": { "type": "string" }, "key": { "type": "string" }, "longPress": { "type": "string" }, "tapCount": { "type": "string" } }, "required": ["key"], "type": "object" }, "repertoire": { "additionalProperties": false, "properties": { "chars": { "type": "string" }, "name": { "type": "string" }, "type": { "enum": ["default", "simple", "gesture", "flick", "longPress", "multiTap", "hardware"], "type": "string" } }, "required": ["chars", "name"], "type": "object" }, "special": { "$ref": "#/definitions/any" }, "startContext": { "additionalProperties": false, "properties": { "to": { "type": "string" } }, "required": ["to"], "type": "object" }, "test": { "additionalProperties": false, "properties": { "backspace": { "$ref": "#/definitions/backspace" }, "check": { "$ref": "#/definitions/check" }, "emit": { "$ref": "#/definitions/emit" }, "keystroke": { "$ref": "#/definitions/keystroke" }, "name": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "startContext": { "$ref": "#/definitions/startContext" } }, "required": ["name"], "type": "object" }, "tests": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "test": { "items": { "$ref": "#/definitions/test" }, "minItems": 1, "type": "array" } }, "required": ["test", "name"], "type": "object" } }, "properties": { "keyboardTest3": { "additionalProperties": false, "properties": { "conformsTo": { "enum": ["techpreview"], "type": "string" }, "info": { "$ref": "#/definitions/info" }, "repertoire": { "items": { "$ref": "#/definitions/repertoire" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "tests": { "items": { "$ref": "#/definitions/tests" }, "type": "array" }, "xmlns": { "type": "string" } }, "required": ["info", "conformsTo"], "type": "object" } }, "required": ["keyboardTest3"], "title": "45/dtd/ldmlKeyboardTest3.xsd", "type": "object" };
|
|
13
|
+
var schema24 = { "additionalProperties": false, "properties": { "chars": { "type": "string" }, "name": { "type": "string" }, "type": { "enum": ["default", "simple", "gesture", "flick", "longPress", "multiTap", "hardware"], "type": "string" } }, "required": ["chars", "name"], "type": "object" };
|
|
14
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
15
|
+
let vErrors = null;
|
|
16
|
+
let errors = 0;
|
|
17
|
+
if (errors === 0) {
|
|
18
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19
|
+
let missing0;
|
|
20
|
+
if (data.name === void 0 && (missing0 = "name")) {
|
|
21
|
+
validate22.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
const _errs1 = errors;
|
|
26
|
+
for (const key0 in data) {
|
|
27
|
+
if (!(key0 === "backspace" || key0 === "check" || key0 === "emit" || key0 === "keystroke" || key0 === "name" || key0 === "special" || key0 === "startContext")) {
|
|
28
|
+
validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
29
|
+
return false;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (_errs1 === errors) {
|
|
34
|
+
if (data.backspace !== void 0) {
|
|
35
|
+
const _errs2 = errors;
|
|
36
|
+
if (typeof data.backspace !== "string") {
|
|
37
|
+
validate22.errors = [{ instancePath: instancePath + "/backspace", schemaPath: "#/definitions/backspace/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
var valid0 = _errs2 === errors;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
var valid0 = true;
|
|
44
|
+
}
|
|
45
|
+
if (valid0) {
|
|
46
|
+
if (data.check !== void 0) {
|
|
47
|
+
let data1 = data.check;
|
|
48
|
+
const _errs5 = errors;
|
|
49
|
+
const _errs6 = errors;
|
|
50
|
+
if (errors === _errs6) {
|
|
51
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
52
|
+
let missing1;
|
|
53
|
+
if (data1.result === void 0 && (missing1 = "result")) {
|
|
54
|
+
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const _errs8 = errors;
|
|
59
|
+
for (const key1 in data1) {
|
|
60
|
+
if (!(key1 === "result")) {
|
|
61
|
+
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
62
|
+
return false;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (_errs8 === errors) {
|
|
67
|
+
if (data1.result !== void 0) {
|
|
68
|
+
if (typeof data1.result !== "string") {
|
|
69
|
+
validate22.errors = [{ instancePath: instancePath + "/check/result", schemaPath: "#/definitions/check/properties/result/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
validate22.errors = [{ instancePath: instancePath + "/check", schemaPath: "#/definitions/check/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
var valid0 = _errs5 === errors;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
var valid0 = true;
|
|
85
|
+
}
|
|
86
|
+
if (valid0) {
|
|
87
|
+
if (data.emit !== void 0) {
|
|
88
|
+
let data3 = data.emit;
|
|
89
|
+
const _errs11 = errors;
|
|
90
|
+
const _errs12 = errors;
|
|
91
|
+
if (errors === _errs12) {
|
|
92
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
93
|
+
let missing2;
|
|
94
|
+
if (data3.to === void 0 && (missing2 = "to")) {
|
|
95
|
+
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const _errs14 = errors;
|
|
100
|
+
for (const key2 in data3) {
|
|
101
|
+
if (!(key2 === "to")) {
|
|
102
|
+
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
103
|
+
return false;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (_errs14 === errors) {
|
|
108
|
+
if (data3.to !== void 0) {
|
|
109
|
+
if (typeof data3.to !== "string") {
|
|
110
|
+
validate22.errors = [{ instancePath: instancePath + "/emit/to", schemaPath: "#/definitions/emit/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
validate22.errors = [{ instancePath: instancePath + "/emit", schemaPath: "#/definitions/emit/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
var valid0 = _errs11 === errors;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
var valid0 = true;
|
|
126
|
+
}
|
|
127
|
+
if (valid0) {
|
|
128
|
+
if (data.keystroke !== void 0) {
|
|
129
|
+
let data5 = data.keystroke;
|
|
130
|
+
const _errs17 = errors;
|
|
131
|
+
const _errs18 = errors;
|
|
132
|
+
if (errors === _errs18) {
|
|
133
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
134
|
+
let missing3;
|
|
135
|
+
if (data5.key === void 0 && (missing3 = "key")) {
|
|
136
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
const _errs20 = errors;
|
|
141
|
+
for (const key3 in data5) {
|
|
142
|
+
if (!(key3 === "flick" || key3 === "key" || key3 === "longPress" || key3 === "tapCount")) {
|
|
143
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
144
|
+
return false;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (_errs20 === errors) {
|
|
149
|
+
if (data5.flick !== void 0) {
|
|
150
|
+
const _errs21 = errors;
|
|
151
|
+
if (typeof data5.flick !== "string") {
|
|
152
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke/flick", schemaPath: "#/definitions/keystroke/properties/flick/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
var valid7 = _errs21 === errors;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
var valid7 = true;
|
|
159
|
+
}
|
|
160
|
+
if (valid7) {
|
|
161
|
+
if (data5.key !== void 0) {
|
|
162
|
+
const _errs23 = errors;
|
|
163
|
+
if (typeof data5.key !== "string") {
|
|
164
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke/key", schemaPath: "#/definitions/keystroke/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
var valid7 = _errs23 === errors;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
var valid7 = true;
|
|
171
|
+
}
|
|
172
|
+
if (valid7) {
|
|
173
|
+
if (data5.longPress !== void 0) {
|
|
174
|
+
const _errs25 = errors;
|
|
175
|
+
if (typeof data5.longPress !== "string") {
|
|
176
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke/longPress", schemaPath: "#/definitions/keystroke/properties/longPress/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
var valid7 = _errs25 === errors;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
var valid7 = true;
|
|
183
|
+
}
|
|
184
|
+
if (valid7) {
|
|
185
|
+
if (data5.tapCount !== void 0) {
|
|
186
|
+
const _errs27 = errors;
|
|
187
|
+
if (typeof data5.tapCount !== "string") {
|
|
188
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke/tapCount", schemaPath: "#/definitions/keystroke/properties/tapCount/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
var valid7 = _errs27 === errors;
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
var valid7 = true;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
validate22.errors = [{ instancePath: instancePath + "/keystroke", schemaPath: "#/definitions/keystroke/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
var valid0 = _errs17 === errors;
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
var valid0 = true;
|
|
211
|
+
}
|
|
212
|
+
if (valid0) {
|
|
213
|
+
if (data.name !== void 0) {
|
|
214
|
+
const _errs29 = errors;
|
|
215
|
+
if (typeof data.name !== "string") {
|
|
216
|
+
validate22.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
var valid0 = _errs29 === errors;
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
var valid0 = true;
|
|
223
|
+
}
|
|
224
|
+
if (valid0) {
|
|
225
|
+
if (data.special !== void 0) {
|
|
226
|
+
let data11 = data.special;
|
|
227
|
+
const _errs31 = errors;
|
|
228
|
+
if (errors === _errs31) {
|
|
229
|
+
if (Array.isArray(data11)) {
|
|
230
|
+
var valid8 = true;
|
|
231
|
+
const len0 = data11.length;
|
|
232
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
233
|
+
const _errs33 = errors;
|
|
234
|
+
if (typeof data11[i0] !== "string") {
|
|
235
|
+
validate22.errors = [{ instancePath: instancePath + "/special/" + i0, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
var valid8 = _errs33 === errors;
|
|
239
|
+
if (!valid8) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
validate22.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
var valid0 = _errs31 === errors;
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
var valid0 = true;
|
|
253
|
+
}
|
|
254
|
+
if (valid0) {
|
|
255
|
+
if (data.startContext !== void 0) {
|
|
256
|
+
let data13 = data.startContext;
|
|
257
|
+
const _errs36 = errors;
|
|
258
|
+
const _errs37 = errors;
|
|
259
|
+
if (errors === _errs37) {
|
|
260
|
+
if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
|
|
261
|
+
let missing4;
|
|
262
|
+
if (data13.to === void 0 && (missing4 = "to")) {
|
|
263
|
+
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
const _errs39 = errors;
|
|
268
|
+
for (const key4 in data13) {
|
|
269
|
+
if (!(key4 === "to")) {
|
|
270
|
+
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
271
|
+
return false;
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (_errs39 === errors) {
|
|
276
|
+
if (data13.to !== void 0) {
|
|
277
|
+
if (typeof data13.to !== "string") {
|
|
278
|
+
validate22.errors = [{ instancePath: instancePath + "/startContext/to", schemaPath: "#/definitions/startContext/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
validate22.errors = [{ instancePath: instancePath + "/startContext", schemaPath: "#/definitions/startContext/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
var valid0 = _errs36 === errors;
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
var valid0 = true;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
validate22.errors = vErrors;
|
|
310
|
+
return errors === 0;
|
|
311
|
+
}
|
|
312
|
+
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
313
|
+
let vErrors = null;
|
|
314
|
+
let errors = 0;
|
|
315
|
+
if (errors === 0) {
|
|
316
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
317
|
+
let missing0;
|
|
318
|
+
if (data.test === void 0 && (missing0 = "test") || data.name === void 0 && (missing0 = "name")) {
|
|
319
|
+
validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
const _errs1 = errors;
|
|
324
|
+
for (const key0 in data) {
|
|
325
|
+
if (!(key0 === "name" || key0 === "special" || key0 === "test")) {
|
|
326
|
+
validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
327
|
+
return false;
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (_errs1 === errors) {
|
|
332
|
+
if (data.name !== void 0) {
|
|
333
|
+
const _errs2 = errors;
|
|
334
|
+
if (typeof data.name !== "string") {
|
|
335
|
+
validate21.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
336
|
+
return false;
|
|
337
|
+
}
|
|
338
|
+
var valid0 = _errs2 === errors;
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
var valid0 = true;
|
|
342
|
+
}
|
|
343
|
+
if (valid0) {
|
|
344
|
+
if (data.special !== void 0) {
|
|
345
|
+
let data1 = data.special;
|
|
346
|
+
const _errs4 = errors;
|
|
347
|
+
if (errors === _errs4) {
|
|
348
|
+
if (Array.isArray(data1)) {
|
|
349
|
+
var valid1 = true;
|
|
350
|
+
const len0 = data1.length;
|
|
351
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
352
|
+
const _errs6 = errors;
|
|
353
|
+
if (typeof data1[i0] !== "string") {
|
|
354
|
+
validate21.errors = [{ instancePath: instancePath + "/special/" + i0, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
var valid1 = _errs6 === errors;
|
|
358
|
+
if (!valid1) {
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
validate21.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
var valid0 = _errs4 === errors;
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
var valid0 = true;
|
|
372
|
+
}
|
|
373
|
+
if (valid0) {
|
|
374
|
+
if (data.test !== void 0) {
|
|
375
|
+
let data3 = data.test;
|
|
376
|
+
const _errs9 = errors;
|
|
377
|
+
if (errors === _errs9) {
|
|
378
|
+
if (Array.isArray(data3)) {
|
|
379
|
+
if (data3.length < 1) {
|
|
380
|
+
validate21.errors = [{ instancePath: instancePath + "/test", schemaPath: "#/properties/test/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
381
|
+
return false;
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
var valid3 = true;
|
|
385
|
+
const len1 = data3.length;
|
|
386
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
387
|
+
const _errs11 = errors;
|
|
388
|
+
if (!validate22(data3[i1], { instancePath: instancePath + "/test/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
389
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
390
|
+
errors = vErrors.length;
|
|
391
|
+
}
|
|
392
|
+
var valid3 = _errs11 === errors;
|
|
393
|
+
if (!valid3) {
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
validate21.errors = [{ instancePath: instancePath + "/test", schemaPath: "#/properties/test/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
var valid0 = _errs9 === errors;
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
var valid0 = true;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
else {
|
|
415
|
+
validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
validate21.errors = vErrors;
|
|
420
|
+
return errors === 0;
|
|
421
|
+
}
|
|
422
|
+
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
423
|
+
let vErrors = null;
|
|
424
|
+
let errors = 0;
|
|
425
|
+
if (errors === 0) {
|
|
426
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
427
|
+
let missing0;
|
|
428
|
+
if (data.keyboardTest3 === void 0 && (missing0 = "keyboardTest3")) {
|
|
429
|
+
validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
const _errs1 = errors;
|
|
434
|
+
for (const key0 in data) {
|
|
435
|
+
if (!(key0 === "keyboardTest3")) {
|
|
436
|
+
validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
437
|
+
return false;
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (_errs1 === errors) {
|
|
442
|
+
if (data.keyboardTest3 !== void 0) {
|
|
443
|
+
let data0 = data.keyboardTest3;
|
|
444
|
+
const _errs2 = errors;
|
|
445
|
+
if (errors === _errs2) {
|
|
446
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
447
|
+
let missing1;
|
|
448
|
+
if (data0.info === void 0 && (missing1 = "info") || data0.conformsTo === void 0 && (missing1 = "conformsTo")) {
|
|
449
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
const _errs4 = errors;
|
|
454
|
+
for (const key1 in data0) {
|
|
455
|
+
if (!(key1 === "conformsTo" || key1 === "info" || key1 === "repertoire" || key1 === "special" || key1 === "tests" || key1 === "xmlns")) {
|
|
456
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
457
|
+
return false;
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (_errs4 === errors) {
|
|
462
|
+
if (data0.conformsTo !== void 0) {
|
|
463
|
+
let data1 = data0.conformsTo;
|
|
464
|
+
const _errs5 = errors;
|
|
465
|
+
if (typeof data1 !== "string") {
|
|
466
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/conformsTo", schemaPath: "#/properties/keyboardTest3/properties/conformsTo/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
469
|
+
if (!(data1 === "techpreview")) {
|
|
470
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/conformsTo", schemaPath: "#/properties/keyboardTest3/properties/conformsTo/enum", keyword: "enum", params: { allowedValues: schema22.properties.keyboardTest3.properties.conformsTo.enum }, message: "must be equal to one of the allowed values" }];
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
var valid1 = _errs5 === errors;
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
var valid1 = true;
|
|
477
|
+
}
|
|
478
|
+
if (valid1) {
|
|
479
|
+
if (data0.info !== void 0) {
|
|
480
|
+
let data2 = data0.info;
|
|
481
|
+
const _errs7 = errors;
|
|
482
|
+
const _errs8 = errors;
|
|
483
|
+
if (errors === _errs8) {
|
|
484
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
485
|
+
let missing2;
|
|
486
|
+
if (data2.keyboard === void 0 && (missing2 = "keyboard") || data2.name === void 0 && (missing2 = "name")) {
|
|
487
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
const _errs10 = errors;
|
|
492
|
+
for (const key2 in data2) {
|
|
493
|
+
if (!(key2 === "author" || key2 === "keyboard" || key2 === "name")) {
|
|
494
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
495
|
+
return false;
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (_errs10 === errors) {
|
|
500
|
+
if (data2.author !== void 0) {
|
|
501
|
+
const _errs11 = errors;
|
|
502
|
+
if (typeof data2.author !== "string") {
|
|
503
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/author", schemaPath: "#/definitions/info/properties/author/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
var valid3 = _errs11 === errors;
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
var valid3 = true;
|
|
510
|
+
}
|
|
511
|
+
if (valid3) {
|
|
512
|
+
if (data2.keyboard !== void 0) {
|
|
513
|
+
const _errs13 = errors;
|
|
514
|
+
if (typeof data2.keyboard !== "string") {
|
|
515
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/keyboard", schemaPath: "#/definitions/info/properties/keyboard/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
516
|
+
return false;
|
|
517
|
+
}
|
|
518
|
+
var valid3 = _errs13 === errors;
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
var valid3 = true;
|
|
522
|
+
}
|
|
523
|
+
if (valid3) {
|
|
524
|
+
if (data2.name !== void 0) {
|
|
525
|
+
const _errs15 = errors;
|
|
526
|
+
if (typeof data2.name !== "string") {
|
|
527
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info/name", schemaPath: "#/definitions/info/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
var valid3 = _errs15 === errors;
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
var valid3 = true;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/info", schemaPath: "#/definitions/info/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
var valid1 = _errs7 === errors;
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
var valid1 = true;
|
|
549
|
+
}
|
|
550
|
+
if (valid1) {
|
|
551
|
+
if (data0.repertoire !== void 0) {
|
|
552
|
+
let data6 = data0.repertoire;
|
|
553
|
+
const _errs17 = errors;
|
|
554
|
+
if (errors === _errs17) {
|
|
555
|
+
if (Array.isArray(data6)) {
|
|
556
|
+
var valid4 = true;
|
|
557
|
+
const len0 = data6.length;
|
|
558
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
559
|
+
let data7 = data6[i0];
|
|
560
|
+
const _errs19 = errors;
|
|
561
|
+
const _errs20 = errors;
|
|
562
|
+
if (errors === _errs20) {
|
|
563
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
564
|
+
let missing3;
|
|
565
|
+
if (data7.chars === void 0 && (missing3 = "chars") || data7.name === void 0 && (missing3 = "name")) {
|
|
566
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
const _errs22 = errors;
|
|
571
|
+
for (const key3 in data7) {
|
|
572
|
+
if (!(key3 === "chars" || key3 === "name" || key3 === "type")) {
|
|
573
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
574
|
+
return false;
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (_errs22 === errors) {
|
|
579
|
+
if (data7.chars !== void 0) {
|
|
580
|
+
const _errs23 = errors;
|
|
581
|
+
if (typeof data7.chars !== "string") {
|
|
582
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/chars", schemaPath: "#/definitions/repertoire/properties/chars/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
583
|
+
return false;
|
|
584
|
+
}
|
|
585
|
+
var valid6 = _errs23 === errors;
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
var valid6 = true;
|
|
589
|
+
}
|
|
590
|
+
if (valid6) {
|
|
591
|
+
if (data7.name !== void 0) {
|
|
592
|
+
const _errs25 = errors;
|
|
593
|
+
if (typeof data7.name !== "string") {
|
|
594
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/name", schemaPath: "#/definitions/repertoire/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
var valid6 = _errs25 === errors;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
var valid6 = true;
|
|
601
|
+
}
|
|
602
|
+
if (valid6) {
|
|
603
|
+
if (data7.type !== void 0) {
|
|
604
|
+
let data10 = data7.type;
|
|
605
|
+
const _errs27 = errors;
|
|
606
|
+
if (typeof data10 !== "string") {
|
|
607
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/type", schemaPath: "#/definitions/repertoire/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
608
|
+
return false;
|
|
609
|
+
}
|
|
610
|
+
if (!(data10 === "default" || data10 === "simple" || data10 === "gesture" || data10 === "flick" || data10 === "longPress" || data10 === "multiTap" || data10 === "hardware")) {
|
|
611
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0 + "/type", schemaPath: "#/definitions/repertoire/properties/type/enum", keyword: "enum", params: { allowedValues: schema24.properties.type.enum }, message: "must be equal to one of the allowed values" }];
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
var valid6 = _errs27 === errors;
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
var valid6 = true;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
else {
|
|
625
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire/" + i0, schemaPath: "#/definitions/repertoire/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
var valid4 = _errs19 === errors;
|
|
630
|
+
if (!valid4) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/repertoire", schemaPath: "#/properties/keyboardTest3/properties/repertoire/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
637
|
+
return false;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
var valid1 = _errs17 === errors;
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
var valid1 = true;
|
|
644
|
+
}
|
|
645
|
+
if (valid1) {
|
|
646
|
+
if (data0.special !== void 0) {
|
|
647
|
+
let data11 = data0.special;
|
|
648
|
+
const _errs29 = errors;
|
|
649
|
+
if (errors === _errs29) {
|
|
650
|
+
if (Array.isArray(data11)) {
|
|
651
|
+
var valid7 = true;
|
|
652
|
+
const len1 = data11.length;
|
|
653
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
654
|
+
const _errs31 = errors;
|
|
655
|
+
if (typeof data11[i1] !== "string") {
|
|
656
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
657
|
+
return false;
|
|
658
|
+
}
|
|
659
|
+
var valid7 = _errs31 === errors;
|
|
660
|
+
if (!valid7) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/special", schemaPath: "#/properties/keyboardTest3/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
667
|
+
return false;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
var valid1 = _errs29 === errors;
|
|
671
|
+
}
|
|
672
|
+
else {
|
|
673
|
+
var valid1 = true;
|
|
674
|
+
}
|
|
675
|
+
if (valid1) {
|
|
676
|
+
if (data0.tests !== void 0) {
|
|
677
|
+
let data13 = data0.tests;
|
|
678
|
+
const _errs34 = errors;
|
|
679
|
+
if (errors === _errs34) {
|
|
680
|
+
if (Array.isArray(data13)) {
|
|
681
|
+
var valid9 = true;
|
|
682
|
+
const len2 = data13.length;
|
|
683
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
684
|
+
const _errs36 = errors;
|
|
685
|
+
if (!validate21(data13[i2], { instancePath: instancePath + "/keyboardTest3/tests/" + i2, parentData: data13, parentDataProperty: i2, rootData })) {
|
|
686
|
+
vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
|
|
687
|
+
errors = vErrors.length;
|
|
688
|
+
}
|
|
689
|
+
var valid9 = _errs36 === errors;
|
|
690
|
+
if (!valid9) {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
else {
|
|
696
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/tests", schemaPath: "#/properties/keyboardTest3/properties/tests/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
697
|
+
return false;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
var valid1 = _errs34 === errors;
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
var valid1 = true;
|
|
704
|
+
}
|
|
705
|
+
if (valid1) {
|
|
706
|
+
if (data0.xmlns !== void 0) {
|
|
707
|
+
const _errs37 = errors;
|
|
708
|
+
if (typeof data0.xmlns !== "string") {
|
|
709
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3/xmlns", schemaPath: "#/properties/keyboardTest3/properties/xmlns/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
710
|
+
return false;
|
|
711
|
+
}
|
|
712
|
+
var valid1 = _errs37 === errors;
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
var valid1 = true;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
else {
|
|
726
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboardTest3", schemaPath: "#/properties/keyboardTest3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
727
|
+
return false;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
validate20.errors = vErrors;
|
|
740
|
+
return errors === 0;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
export default require_ldml_keyboardtest3_schema_validator();
|
|
745
745
|
//# sourceMappingURL=ldml-keyboardtest3.schema.validator.mjs.map
|
|
746
|
-
//# debugId=
|
|
746
|
+
//# debugId=e1d7c7da-0235-5cb1-a271-6472ed54713a
|