@keymanapp/common-types 17.0.199-alpha → 17.0.201-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/import/techpreview/cldr_info.json +3 -3
- package/build/src/import/techpreview/keys-Latn-implied.xml +63 -63
- package/build/src/import/techpreview/keys-Zyyy-currency.xml +6 -6
- package/build/src/import/techpreview/keys-Zyyy-punctuation.xml +35 -35
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +3 -4
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.js +3 -4
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +3 -3
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.js +3 -3
- package/build/src/kmx/kmx-plus-builder/build-meta.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +2 -4
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +2 -6
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +5 -19
- package/build/src/kmx/kmx-plus.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus.js +9 -44
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +10 -10
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +21 -27
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +2 -4
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +47 -68
- package/build/src/schemas/ldml-keyboard3.schema.d.ts.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.js +58 -83
- package/build/src/schemas/ldml-keyboard3.schema.js.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +809 -893
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +47 -68
- package/build/src/schemas.d.ts.map +1 -1
- package/package.json +2 -2
- package/build/src/kmx/kmx-plus-builder/build-name.d.ts +0 -14
- package/build/src/kmx/kmx-plus-builder/build-name.d.ts.map +0 -1
- package/build/src/kmx/kmx-plus-builder/build-name.js +0 -25
- package/build/src/kmx/kmx-plus-builder/build-name.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!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]="
|
|
1
|
+
!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]="2c9464de-056a-5dbc-92c8-f0e2b3824703")}catch(e){}}();
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
3
|
var __commonJS = (cb, mod) => function __require() {
|
|
4
4
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -8,10 +8,10 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
8
8
|
"obj/schemas/ldml-keyboard3.schema.validator.cjs"(exports, module) {
|
|
9
9
|
module.exports = validate20;
|
|
10
10
|
module.exports.default = validate20;
|
|
11
|
-
var schema22 = { "$schema": "http://json-schema.org/schema#", "additionalProperties": false, "definitions": { "any": { "type": "string" }, "display": { "additionalProperties": false, "properties": { "display": { "type": "string" }, "
|
|
11
|
+
var schema22 = { "$schema": "http://json-schema.org/schema#", "additionalProperties": false, "definitions": { "any": { "type": "string" }, "display": { "additionalProperties": false, "properties": { "display": { "type": "string" }, "keyId": { "type": "string" }, "output": { "type": "string" } }, "required": ["display"], "type": "object" }, "displayOptions": { "additionalProperties": false, "properties": { "baseCharacter": { "type": "string" } }, "type": "object" }, "displays": { "additionalProperties": false, "properties": { "display": { "items": { "$ref": "#/definitions/display" }, "type": "array" }, "displayOptions": { "$ref": "#/definitions/displayOptions" }, "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "type": "object" }, "flick": { "additionalProperties": false, "properties": { "flickSegment": { "items": { "$ref": "#/definitions/flickSegment" }, "minItems": 1, "type": "array" }, "id": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "required": ["flickSegment", "id"], "type": "object" }, "flickSegment": { "additionalProperties": false, "properties": { "directions": { "type": "string" }, "keyId": { "type": "string" } }, "required": ["directions", "keyId"], "type": "object" }, "flicks": { "additionalProperties": false, "properties": { "flick": { "items": { "$ref": "#/definitions/flick" }, "type": "array" }, "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "type": "object" }, "form": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "scanCodes": { "items": { "$ref": "#/definitions/scanCodes" }, "minItems": 1, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "required": ["scanCodes"], "type": "object" }, "forms": { "additionalProperties": false, "properties": { "form": { "items": { "$ref": "#/definitions/form" }, "type": "array" }, "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "type": "object" }, "import": { "additionalProperties": false, "properties": { "base": { "enum": ["cldr"], "type": "string" }, "path": { "type": "string" } }, "required": ["path"], "type": "object" }, "info": { "additionalProperties": false, "properties": { "author": { "type": "string" }, "indicator": { "type": "string" }, "layout": { "type": "string" }, "name": { "type": "string" } }, "required": ["name"], "type": "object" }, "key": { "additionalProperties": false, "properties": { "flickId": { "type": "string" }, "gap": { "enum": ["true"], "type": "string" }, "id": { "type": "string" }, "layerId": { "type": "string" }, "longPressDefaultKeyId": { "type": "string" }, "longPressKeyIds": { "type": "string" }, "multiTapKeyIds": { "type": "string" }, "output": { "type": "string" }, "stretch": { "enum": ["true"], "type": "string" }, "width": { "type": "string" } }, "required": ["id"], "type": "object" }, "keys": { "additionalProperties": false, "properties": { "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "key": { "items": { "$ref": "#/definitions/key" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "type": "object" }, "layer": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "modifiers": { "type": "string" }, "row": { "items": { "$ref": "#/definitions/row" }, "minItems": 1, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "required": ["row"], "type": "object" }, "layers": { "additionalProperties": false, "properties": { "formId": { "type": "string" }, "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "layer": { "items": { "$ref": "#/definitions/layer" }, "type": "array" }, "minDeviceWidth": { "type": "string" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" } }, "required": ["formId"], "type": "object" }, "locale": { "additionalProperties": false, "properties": { "id": { "type": "string" } }, "required": ["id"], "type": "object" }, "locales": { "additionalProperties": false, "properties": { "locale": { "items": { "$ref": "#/definitions/locale" }, "type": "array" } }, "type": "object" }, "reorder": { "additionalProperties": false, "properties": { "before": { "type": "string" }, "from": { "type": "string" }, "order": { "type": "string" }, "preBase": { "type": "string" }, "tertiary": { "type": "string" }, "tertiaryBase": { "type": "string" } }, "required": ["from"], "type": "object" }, "row": { "additionalProperties": false, "properties": { "keys": { "type": "string" } }, "required": ["keys"], "type": "object" }, "scanCodes": { "additionalProperties": false, "properties": { "codes": { "type": "string" } }, "required": ["codes"], "type": "object" }, "set": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "value": { "type": "string" } }, "required": ["id", "value"], "type": "object" }, "settings": { "additionalProperties": false, "properties": { "normalization": { "enum": ["disabled"], "type": "string" } }, "type": "object" }, "special": { "$ref": "#/definitions/any" }, "stringVariable": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "value": { "type": "string" } }, "required": ["id", "value"], "type": "object" }, "transform": { "additionalProperties": false, "properties": { "from": { "type": "string" }, "to": { "type": "string" } }, "required": ["from"], "type": "object" }, "transformGroup": { "additionalProperties": false, "properties": { "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "reorder": { "items": { "$ref": "#/definitions/reorder" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "transform": { "items": { "$ref": "#/definitions/transform" }, "type": "array" } }, "type": "object" }, "transforms": { "additionalProperties": false, "properties": { "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "transformGroup": { "items": { "$ref": "#/definitions/transformGroup" }, "type": "array" }, "type": { "enum": ["simple", "backspace"], "type": "string" } }, "required": ["type"], "type": "object" }, "unicodeSet": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "value": { "type": "string" } }, "required": ["id", "value"], "type": "object" }, "variables": { "additionalProperties": false, "properties": { "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "set": { "items": { "$ref": "#/definitions/set" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "string": { "items": { "$ref": "#/definitions/stringVariable" }, "type": "array" }, "unicodeSet": { "items": { "$ref": "#/definitions/unicodeSet" }, "type": "array" } }, "type": "object" }, "version": { "additionalProperties": false, "properties": { "cldrVersion": { "enum": ["techpreview"], "type": "string" }, "number": { "type": "string" } }, "type": "object" } }, "properties": { "keyboard3": { "additionalProperties": false, "properties": { "conformsTo": { "enum": ["techpreview"], "type": "string" }, "displays": { "$ref": "#/definitions/displays" }, "flicks": { "$ref": "#/definitions/flicks" }, "forms": { "$ref": "#/definitions/forms" }, "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "info": { "$ref": "#/definitions/info" }, "keys": { "$ref": "#/definitions/keys" }, "layers": { "items": { "$ref": "#/definitions/layers" }, "type": "array" }, "locale": { "type": "string" }, "locales": { "$ref": "#/definitions/locales" }, "settings": { "$ref": "#/definitions/settings" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "transforms": { "items": { "$ref": "#/definitions/transforms" }, "type": "array" }, "variables": { "$ref": "#/definitions/variables" }, "version": { "$ref": "#/definitions/version" } }, "required": ["info", "locale", "conformsTo"], "type": "object" } }, "required": ["keyboard3"], "title": "techpreview/dtd/ldmlKeyboard3.xsd", "type": "object" };
|
|
12
12
|
var schema26 = { "additionalProperties": false, "properties": { "base": { "enum": ["cldr"], "type": "string" }, "path": { "type": "string" } }, "required": ["path"], "type": "object" };
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var schema54 = { "additionalProperties": false, "properties": { "normalization": { "enum": ["disabled"], "type": "string" } }, "type": "object" };
|
|
14
|
+
var schema70 = { "additionalProperties": false, "properties": { "cldrVersion": { "enum": ["techpreview"], "type": "string" }, "number": { "type": "string" } }, "type": "object" };
|
|
15
15
|
var func4 = Object.prototype.hasOwnProperty;
|
|
16
16
|
function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
17
17
|
let vErrors = null;
|
|
@@ -48,7 +48,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
48
48
|
else {
|
|
49
49
|
const _errs7 = errors;
|
|
50
50
|
for (const key1 in data1) {
|
|
51
|
-
if (!(key1 === "display" || key1 === "
|
|
51
|
+
if (!(key1 === "display" || key1 === "keyId" || key1 === "output")) {
|
|
52
52
|
validate21.errors = [{ instancePath: instancePath + "/display/" + i0, schemaPath: "#/definitions/display/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
53
53
|
return false;
|
|
54
54
|
break;
|
|
@@ -67,10 +67,10 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
67
67
|
var valid3 = true;
|
|
68
68
|
}
|
|
69
69
|
if (valid3) {
|
|
70
|
-
if (data1.
|
|
70
|
+
if (data1.keyId !== void 0) {
|
|
71
71
|
const _errs10 = errors;
|
|
72
|
-
if (typeof data1.
|
|
73
|
-
validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/
|
|
72
|
+
if (typeof data1.keyId !== "string") {
|
|
73
|
+
validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/keyId", schemaPath: "#/definitions/display/properties/keyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
var valid3 = _errs10 === errors;
|
|
@@ -79,10 +79,10 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
79
79
|
var valid3 = true;
|
|
80
80
|
}
|
|
81
81
|
if (valid3) {
|
|
82
|
-
if (data1.
|
|
82
|
+
if (data1.output !== void 0) {
|
|
83
83
|
const _errs12 = errors;
|
|
84
|
-
if (typeof data1.
|
|
85
|
-
validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/
|
|
84
|
+
if (typeof data1.output !== "string") {
|
|
85
|
+
validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/output", schemaPath: "#/definitions/display/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
88
|
var valid3 = _errs12 === errors;
|
|
@@ -281,111 +281,129 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
281
281
|
if (errors === 0) {
|
|
282
282
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
283
283
|
let missing0;
|
|
284
|
-
if (data.
|
|
284
|
+
if (data.flickSegment === void 0 && (missing0 = "flickSegment") || data.id === void 0 && (missing0 = "id")) {
|
|
285
285
|
validate24.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
286
286
|
return false;
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
const _errs1 = errors;
|
|
290
290
|
for (const key0 in data) {
|
|
291
|
-
if (!(key0 === "
|
|
291
|
+
if (!(key0 === "flickSegment" || key0 === "id" || key0 === "special")) {
|
|
292
292
|
validate24.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
293
293
|
return false;
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
if (_errs1 === errors) {
|
|
298
|
-
if (data.
|
|
298
|
+
if (data.flickSegment !== void 0) {
|
|
299
|
+
let data0 = data.flickSegment;
|
|
299
300
|
const _errs2 = errors;
|
|
300
|
-
if (
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
let missing1;
|
|
329
|
-
if (data2.codes === void 0 && (missing1 = "codes")) {
|
|
330
|
-
validate24.errors = [{ instancePath: instancePath + "/scanCodes/" + i0, schemaPath: "#/definitions/scanCodes/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
331
|
-
return false;
|
|
301
|
+
if (errors === _errs2) {
|
|
302
|
+
if (Array.isArray(data0)) {
|
|
303
|
+
if (data0.length < 1) {
|
|
304
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment", schemaPath: "#/properties/flickSegment/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
var valid1 = true;
|
|
309
|
+
const len0 = data0.length;
|
|
310
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
311
|
+
let data1 = data0[i0];
|
|
312
|
+
const _errs4 = errors;
|
|
313
|
+
const _errs5 = errors;
|
|
314
|
+
if (errors === _errs5) {
|
|
315
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
316
|
+
let missing1;
|
|
317
|
+
if (data1.directions === void 0 && (missing1 = "directions") || data1.keyId === void 0 && (missing1 = "keyId")) {
|
|
318
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
319
|
+
return false;
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
const _errs7 = errors;
|
|
323
|
+
for (const key1 in data1) {
|
|
324
|
+
if (!(key1 === "directions" || key1 === "keyId")) {
|
|
325
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
326
|
+
return false;
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
332
329
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
if (
|
|
337
|
-
validate24.errors = [{ instancePath: instancePath + "/
|
|
330
|
+
if (_errs7 === errors) {
|
|
331
|
+
if (data1.directions !== void 0) {
|
|
332
|
+
const _errs8 = errors;
|
|
333
|
+
if (typeof data1.directions !== "string") {
|
|
334
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0 + "/directions", schemaPath: "#/definitions/flickSegment/properties/directions/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
338
335
|
return false;
|
|
339
|
-
break;
|
|
340
336
|
}
|
|
337
|
+
var valid3 = _errs8 === errors;
|
|
341
338
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
339
|
+
else {
|
|
340
|
+
var valid3 = true;
|
|
341
|
+
}
|
|
342
|
+
if (valid3) {
|
|
343
|
+
if (data1.keyId !== void 0) {
|
|
344
|
+
const _errs10 = errors;
|
|
345
|
+
if (typeof data1.keyId !== "string") {
|
|
346
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0 + "/keyId", schemaPath: "#/definitions/flickSegment/properties/keyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
346
347
|
return false;
|
|
347
348
|
}
|
|
349
|
+
var valid3 = _errs10 === errors;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
var valid3 = true;
|
|
348
353
|
}
|
|
349
354
|
}
|
|
350
355
|
}
|
|
351
356
|
}
|
|
352
|
-
else {
|
|
353
|
-
validate24.errors = [{ instancePath: instancePath + "/scanCodes/" + i0, schemaPath: "#/definitions/scanCodes/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
357
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
else {
|
|
359
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
360
|
+
return false;
|
|
360
361
|
}
|
|
361
362
|
}
|
|
363
|
+
var valid1 = _errs4 === errors;
|
|
364
|
+
if (!valid1) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
362
367
|
}
|
|
363
368
|
}
|
|
364
|
-
else {
|
|
365
|
-
validate24.errors = [{ instancePath: instancePath + "/scanCodes", schemaPath: "#/properties/scanCodes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
366
|
-
return false;
|
|
367
|
-
}
|
|
368
369
|
}
|
|
369
|
-
|
|
370
|
+
else {
|
|
371
|
+
validate24.errors = [{ instancePath: instancePath + "/flickSegment", schemaPath: "#/properties/flickSegment/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
var valid0 = _errs2 === errors;
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
var valid0 = true;
|
|
379
|
+
}
|
|
380
|
+
if (valid0) {
|
|
381
|
+
if (data.id !== void 0) {
|
|
382
|
+
const _errs12 = errors;
|
|
383
|
+
if (typeof data.id !== "string") {
|
|
384
|
+
validate24.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
var valid0 = _errs12 === errors;
|
|
370
388
|
}
|
|
371
389
|
else {
|
|
372
390
|
var valid0 = true;
|
|
373
391
|
}
|
|
374
392
|
if (valid0) {
|
|
375
393
|
if (data.special !== void 0) {
|
|
376
|
-
let
|
|
377
|
-
const
|
|
378
|
-
if (errors ===
|
|
379
|
-
if (Array.isArray(
|
|
394
|
+
let data5 = data.special;
|
|
395
|
+
const _errs14 = errors;
|
|
396
|
+
if (errors === _errs14) {
|
|
397
|
+
if (Array.isArray(data5)) {
|
|
380
398
|
var valid4 = true;
|
|
381
|
-
const len1 =
|
|
399
|
+
const len1 = data5.length;
|
|
382
400
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
383
|
-
const
|
|
384
|
-
if (typeof
|
|
401
|
+
const _errs16 = errors;
|
|
402
|
+
if (typeof data5[i1] !== "string") {
|
|
385
403
|
validate24.errors = [{ instancePath: instancePath + "/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
386
404
|
return false;
|
|
387
405
|
}
|
|
388
|
-
var valid4 =
|
|
406
|
+
var valid4 = _errs16 === errors;
|
|
389
407
|
if (!valid4) {
|
|
390
408
|
break;
|
|
391
409
|
}
|
|
@@ -396,7 +414,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
396
414
|
return false;
|
|
397
415
|
}
|
|
398
416
|
}
|
|
399
|
-
var valid0 =
|
|
417
|
+
var valid0 = _errs14 === errors;
|
|
400
418
|
}
|
|
401
419
|
else {
|
|
402
420
|
var valid0 = true;
|
|
@@ -421,15 +439,15 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
421
439
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
422
440
|
const _errs1 = errors;
|
|
423
441
|
for (const key0 in data) {
|
|
424
|
-
if (!(key0 === "
|
|
442
|
+
if (!(key0 === "flick" || key0 === "import" || key0 === "special")) {
|
|
425
443
|
validate23.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
426
444
|
return false;
|
|
427
445
|
break;
|
|
428
446
|
}
|
|
429
447
|
}
|
|
430
448
|
if (_errs1 === errors) {
|
|
431
|
-
if (data.
|
|
432
|
-
let data0 = data.
|
|
449
|
+
if (data.flick !== void 0) {
|
|
450
|
+
let data0 = data.flick;
|
|
433
451
|
const _errs2 = errors;
|
|
434
452
|
if (errors === _errs2) {
|
|
435
453
|
if (Array.isArray(data0)) {
|
|
@@ -437,7 +455,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
437
455
|
const len0 = data0.length;
|
|
438
456
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
439
457
|
const _errs4 = errors;
|
|
440
|
-
if (!validate24(data0[i0], { instancePath: instancePath + "/
|
|
458
|
+
if (!validate24(data0[i0], { instancePath: instancePath + "/flick/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
441
459
|
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
442
460
|
errors = vErrors.length;
|
|
443
461
|
}
|
|
@@ -448,7 +466,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
448
466
|
}
|
|
449
467
|
}
|
|
450
468
|
else {
|
|
451
|
-
validate23.errors = [{ instancePath: instancePath + "/
|
|
469
|
+
validate23.errors = [{ instancePath: instancePath + "/flick", schemaPath: "#/properties/flick/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
452
470
|
return false;
|
|
453
471
|
}
|
|
454
472
|
}
|
|
@@ -581,136 +599,117 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
581
599
|
validate23.errors = vErrors;
|
|
582
600
|
return errors === 0;
|
|
583
601
|
}
|
|
584
|
-
var schema41 = { "additionalProperties": false, "properties": { "flicks": { "type": "string" }, "gap": { "enum": ["true"], "type": "string" }, "id": { "type": "string" }, "longPress": { "type": "string" }, "longPressDefault": { "type": "string" }, "multiTap": { "type": "string" }, "stretch": { "enum": ["true"], "type": "string" }, "switch": { "type": "string" }, "to": { "type": "string" }, "transform": { "enum": ["no"], "type": "string" }, "width": { "type": "string" } }, "required": ["id"], "type": "object" };
|
|
585
602
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
586
603
|
let vErrors = null;
|
|
587
604
|
let errors = 0;
|
|
588
605
|
if (errors === 0) {
|
|
589
606
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
590
607
|
let missing0;
|
|
591
|
-
if (data.
|
|
608
|
+
if (data.scanCodes === void 0 && (missing0 = "scanCodes")) {
|
|
592
609
|
validate28.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
593
610
|
return false;
|
|
594
611
|
}
|
|
595
612
|
else {
|
|
596
613
|
const _errs1 = errors;
|
|
597
614
|
for (const key0 in data) {
|
|
598
|
-
if (!(key0 === "
|
|
615
|
+
if (!(key0 === "id" || key0 === "scanCodes" || key0 === "special")) {
|
|
599
616
|
validate28.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
600
617
|
return false;
|
|
601
618
|
break;
|
|
602
619
|
}
|
|
603
620
|
}
|
|
604
621
|
if (_errs1 === errors) {
|
|
605
|
-
if (data.
|
|
606
|
-
let data0 = data.flick;
|
|
622
|
+
if (data.id !== void 0) {
|
|
607
623
|
const _errs2 = errors;
|
|
608
|
-
if (
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
624
|
+
if (typeof data.id !== "string") {
|
|
625
|
+
validate28.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
var valid0 = _errs2 === errors;
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
var valid0 = true;
|
|
632
|
+
}
|
|
633
|
+
if (valid0) {
|
|
634
|
+
if (data.scanCodes !== void 0) {
|
|
635
|
+
let data1 = data.scanCodes;
|
|
636
|
+
const _errs4 = errors;
|
|
637
|
+
if (errors === _errs4) {
|
|
638
|
+
if (Array.isArray(data1)) {
|
|
639
|
+
if (data1.length < 1) {
|
|
640
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes", schemaPath: "#/properties/scanCodes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
641
|
+
return false;
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
var valid1 = true;
|
|
645
|
+
const len0 = data1.length;
|
|
646
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
647
|
+
let data2 = data1[i0];
|
|
648
|
+
const _errs6 = errors;
|
|
649
|
+
const _errs7 = errors;
|
|
650
|
+
if (errors === _errs7) {
|
|
651
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
652
|
+
let missing1;
|
|
653
|
+
if (data2.codes === void 0 && (missing1 = "codes")) {
|
|
654
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes/" + i0, schemaPath: "#/definitions/scanCodes/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
655
|
+
return false;
|
|
636
656
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
if (
|
|
641
|
-
validate28.errors = [{ instancePath: instancePath + "/
|
|
657
|
+
else {
|
|
658
|
+
const _errs9 = errors;
|
|
659
|
+
for (const key1 in data2) {
|
|
660
|
+
if (!(key1 === "codes")) {
|
|
661
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes/" + i0, schemaPath: "#/definitions/scanCodes/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
642
662
|
return false;
|
|
663
|
+
break;
|
|
643
664
|
}
|
|
644
|
-
var valid3 = _errs8 === errors;
|
|
645
|
-
}
|
|
646
|
-
else {
|
|
647
|
-
var valid3 = true;
|
|
648
665
|
}
|
|
649
|
-
if (
|
|
650
|
-
if (
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
validate28.errors = [{ instancePath: instancePath + "/flick/" + i0 + "/to", schemaPath: "#/definitions/flick/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
666
|
+
if (_errs9 === errors) {
|
|
667
|
+
if (data2.codes !== void 0) {
|
|
668
|
+
if (typeof data2.codes !== "string") {
|
|
669
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes/" + i0 + "/codes", schemaPath: "#/definitions/scanCodes/properties/codes/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
654
670
|
return false;
|
|
655
671
|
}
|
|
656
|
-
var valid3 = _errs10 === errors;
|
|
657
|
-
}
|
|
658
|
-
else {
|
|
659
|
-
var valid3 = true;
|
|
660
672
|
}
|
|
661
673
|
}
|
|
662
674
|
}
|
|
663
675
|
}
|
|
676
|
+
else {
|
|
677
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes/" + i0, schemaPath: "#/definitions/scanCodes/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
678
|
+
return false;
|
|
679
|
+
}
|
|
664
680
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
681
|
+
var valid1 = _errs6 === errors;
|
|
682
|
+
if (!valid1) {
|
|
683
|
+
break;
|
|
668
684
|
}
|
|
669
685
|
}
|
|
670
|
-
var valid1 = _errs4 === errors;
|
|
671
|
-
if (!valid1) {
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
686
|
}
|
|
675
687
|
}
|
|
688
|
+
else {
|
|
689
|
+
validate28.errors = [{ instancePath: instancePath + "/scanCodes", schemaPath: "#/properties/scanCodes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
690
|
+
return false;
|
|
691
|
+
}
|
|
676
692
|
}
|
|
677
|
-
|
|
678
|
-
validate28.errors = [{ instancePath: instancePath + "/flick", schemaPath: "#/properties/flick/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
679
|
-
return false;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
var valid0 = _errs2 === errors;
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
var valid0 = true;
|
|
686
|
-
}
|
|
687
|
-
if (valid0) {
|
|
688
|
-
if (data.id !== void 0) {
|
|
689
|
-
const _errs12 = errors;
|
|
690
|
-
if (typeof data.id !== "string") {
|
|
691
|
-
validate28.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
692
|
-
return false;
|
|
693
|
-
}
|
|
694
|
-
var valid0 = _errs12 === errors;
|
|
693
|
+
var valid0 = _errs4 === errors;
|
|
695
694
|
}
|
|
696
695
|
else {
|
|
697
696
|
var valid0 = true;
|
|
698
697
|
}
|
|
699
698
|
if (valid0) {
|
|
700
699
|
if (data.special !== void 0) {
|
|
701
|
-
let
|
|
702
|
-
const
|
|
703
|
-
if (errors ===
|
|
704
|
-
if (Array.isArray(
|
|
700
|
+
let data4 = data.special;
|
|
701
|
+
const _errs12 = errors;
|
|
702
|
+
if (errors === _errs12) {
|
|
703
|
+
if (Array.isArray(data4)) {
|
|
705
704
|
var valid4 = true;
|
|
706
|
-
const len1 =
|
|
705
|
+
const len1 = data4.length;
|
|
707
706
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
708
|
-
const
|
|
709
|
-
if (typeof
|
|
707
|
+
const _errs14 = errors;
|
|
708
|
+
if (typeof data4[i1] !== "string") {
|
|
710
709
|
validate28.errors = [{ instancePath: instancePath + "/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
711
710
|
return false;
|
|
712
711
|
}
|
|
713
|
-
var valid4 =
|
|
712
|
+
var valid4 = _errs14 === errors;
|
|
714
713
|
if (!valid4) {
|
|
715
714
|
break;
|
|
716
715
|
}
|
|
@@ -721,7 +720,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
721
720
|
return false;
|
|
722
721
|
}
|
|
723
722
|
}
|
|
724
|
-
var valid0 =
|
|
723
|
+
var valid0 = _errs12 === errors;
|
|
725
724
|
}
|
|
726
725
|
else {
|
|
727
726
|
var valid0 = true;
|
|
@@ -746,15 +745,15 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
746
745
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
747
746
|
const _errs1 = errors;
|
|
748
747
|
for (const key0 in data) {
|
|
749
|
-
if (!(key0 === "
|
|
748
|
+
if (!(key0 === "form" || key0 === "import" || key0 === "special")) {
|
|
750
749
|
validate27.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
751
750
|
return false;
|
|
752
751
|
break;
|
|
753
752
|
}
|
|
754
753
|
}
|
|
755
754
|
if (_errs1 === errors) {
|
|
756
|
-
if (data.
|
|
757
|
-
let data0 = data.
|
|
755
|
+
if (data.form !== void 0) {
|
|
756
|
+
let data0 = data.form;
|
|
758
757
|
const _errs2 = errors;
|
|
759
758
|
if (errors === _errs2) {
|
|
760
759
|
if (Array.isArray(data0)) {
|
|
@@ -762,7 +761,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
762
761
|
const len0 = data0.length;
|
|
763
762
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
764
763
|
const _errs4 = errors;
|
|
765
|
-
if (!validate28(data0[i0], { instancePath: instancePath + "/
|
|
764
|
+
if (!validate28(data0[i0], { instancePath: instancePath + "/form/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
766
765
|
vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
|
|
767
766
|
errors = vErrors.length;
|
|
768
767
|
}
|
|
@@ -773,7 +772,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
773
772
|
}
|
|
774
773
|
}
|
|
775
774
|
else {
|
|
776
|
-
validate27.errors = [{ instancePath: instancePath + "/
|
|
775
|
+
validate27.errors = [{ instancePath: instancePath + "/form", schemaPath: "#/properties/form/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
777
776
|
return false;
|
|
778
777
|
}
|
|
779
778
|
}
|
|
@@ -865,181 +864,300 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
865
864
|
var valid0 = true;
|
|
866
865
|
}
|
|
867
866
|
if (valid0) {
|
|
868
|
-
if (data.
|
|
869
|
-
let data6 = data.
|
|
867
|
+
if (data.special !== void 0) {
|
|
868
|
+
let data6 = data.special;
|
|
870
869
|
const _errs15 = errors;
|
|
871
870
|
if (errors === _errs15) {
|
|
872
871
|
if (Array.isArray(data6)) {
|
|
873
872
|
var valid5 = true;
|
|
874
873
|
const len2 = data6.length;
|
|
875
874
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
876
|
-
let data7 = data6[i2];
|
|
877
875
|
const _errs17 = errors;
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
876
|
+
if (typeof data6[i2] !== "string") {
|
|
877
|
+
validate27.errors = [{ instancePath: instancePath + "/special/" + i2, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
878
|
+
return false;
|
|
879
|
+
}
|
|
880
|
+
var valid5 = _errs17 === errors;
|
|
881
|
+
if (!valid5) {
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
else {
|
|
887
|
+
validate27.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
888
|
+
return false;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
var valid0 = _errs15 === errors;
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
var valid0 = true;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
validate27.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
902
|
+
return false;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
validate27.errors = vErrors;
|
|
906
|
+
return errors === 0;
|
|
907
|
+
}
|
|
908
|
+
var schema44 = { "additionalProperties": false, "properties": { "flickId": { "type": "string" }, "gap": { "enum": ["true"], "type": "string" }, "id": { "type": "string" }, "layerId": { "type": "string" }, "longPressDefaultKeyId": { "type": "string" }, "longPressKeyIds": { "type": "string" }, "multiTapKeyIds": { "type": "string" }, "output": { "type": "string" }, "stretch": { "enum": ["true"], "type": "string" }, "width": { "type": "string" } }, "required": ["id"], "type": "object" };
|
|
909
|
+
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
910
|
+
let vErrors = null;
|
|
911
|
+
let errors = 0;
|
|
912
|
+
if (errors === 0) {
|
|
913
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
914
|
+
const _errs1 = errors;
|
|
915
|
+
for (const key0 in data) {
|
|
916
|
+
if (!(key0 === "import" || key0 === "key" || key0 === "special")) {
|
|
917
|
+
validate31.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
918
|
+
return false;
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
if (_errs1 === errors) {
|
|
923
|
+
if (data.import !== void 0) {
|
|
924
|
+
let data0 = data.import;
|
|
925
|
+
const _errs2 = errors;
|
|
926
|
+
if (errors === _errs2) {
|
|
927
|
+
if (Array.isArray(data0)) {
|
|
928
|
+
var valid1 = true;
|
|
929
|
+
const len0 = data0.length;
|
|
930
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
931
|
+
let data1 = data0[i0];
|
|
932
|
+
const _errs4 = errors;
|
|
933
|
+
const _errs5 = errors;
|
|
934
|
+
if (errors === _errs5) {
|
|
935
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
936
|
+
let missing0;
|
|
937
|
+
if (data1.path === void 0 && (missing0 = "path")) {
|
|
938
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
939
|
+
return false;
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
const _errs7 = errors;
|
|
943
|
+
for (const key1 in data1) {
|
|
944
|
+
if (!(key1 === "base" || key1 === "path")) {
|
|
945
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
884
946
|
return false;
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
if (_errs7 === errors) {
|
|
951
|
+
if (data1.base !== void 0) {
|
|
952
|
+
let data2 = data1.base;
|
|
953
|
+
const _errs8 = errors;
|
|
954
|
+
if (typeof data2 !== "string") {
|
|
955
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
956
|
+
return false;
|
|
957
|
+
}
|
|
958
|
+
if (!(data2 === "cldr")) {
|
|
959
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/enum", keyword: "enum", params: { allowedValues: schema26.properties.base.enum }, message: "must be equal to one of the allowed values" }];
|
|
960
|
+
return false;
|
|
961
|
+
}
|
|
962
|
+
var valid3 = _errs8 === errors;
|
|
885
963
|
}
|
|
886
964
|
else {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
965
|
+
var valid3 = true;
|
|
966
|
+
}
|
|
967
|
+
if (valid3) {
|
|
968
|
+
if (data1.path !== void 0) {
|
|
969
|
+
const _errs10 = errors;
|
|
970
|
+
if (typeof data1.path !== "string") {
|
|
971
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
972
|
+
return false;
|
|
973
|
+
}
|
|
974
|
+
var valid3 = _errs10 === errors;
|
|
975
|
+
}
|
|
976
|
+
else {
|
|
977
|
+
var valid3 = true;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
validate31.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
985
|
+
return false;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
var valid1 = _errs4 === errors;
|
|
989
|
+
if (!valid1) {
|
|
990
|
+
break;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
else {
|
|
995
|
+
validate31.errors = [{ instancePath: instancePath + "/import", schemaPath: "#/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
996
|
+
return false;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
var valid0 = _errs2 === errors;
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
var valid0 = true;
|
|
1003
|
+
}
|
|
1004
|
+
if (valid0) {
|
|
1005
|
+
if (data.key !== void 0) {
|
|
1006
|
+
let data4 = data.key;
|
|
1007
|
+
const _errs12 = errors;
|
|
1008
|
+
if (errors === _errs12) {
|
|
1009
|
+
if (Array.isArray(data4)) {
|
|
1010
|
+
var valid4 = true;
|
|
1011
|
+
const len1 = data4.length;
|
|
1012
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
1013
|
+
let data5 = data4[i1];
|
|
1014
|
+
const _errs14 = errors;
|
|
1015
|
+
const _errs15 = errors;
|
|
1016
|
+
if (errors === _errs15) {
|
|
1017
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
1018
|
+
let missing1;
|
|
1019
|
+
if (data5.id === void 0 && (missing1 = "id")) {
|
|
1020
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1, schemaPath: "#/definitions/key/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1021
|
+
return false;
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
const _errs17 = errors;
|
|
1025
|
+
for (const key2 in data5) {
|
|
1026
|
+
if (!func4.call(schema44.properties, key2)) {
|
|
1027
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1, schemaPath: "#/definitions/key/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
1028
|
+
return false;
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
if (_errs17 === errors) {
|
|
1033
|
+
if (data5.flickId !== void 0) {
|
|
1034
|
+
const _errs18 = errors;
|
|
1035
|
+
if (typeof data5.flickId !== "string") {
|
|
1036
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/flickId", schemaPath: "#/definitions/key/properties/flickId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
891
1037
|
return false;
|
|
892
|
-
break;
|
|
893
1038
|
}
|
|
1039
|
+
var valid6 = _errs18 === errors;
|
|
1040
|
+
}
|
|
1041
|
+
else {
|
|
1042
|
+
var valid6 = true;
|
|
894
1043
|
}
|
|
895
|
-
if (
|
|
896
|
-
if (
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1044
|
+
if (valid6) {
|
|
1045
|
+
if (data5.gap !== void 0) {
|
|
1046
|
+
let data7 = data5.gap;
|
|
1047
|
+
const _errs20 = errors;
|
|
1048
|
+
if (typeof data7 !== "string") {
|
|
1049
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/gap", schemaPath: "#/definitions/key/properties/gap/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1050
|
+
return false;
|
|
1051
|
+
}
|
|
1052
|
+
if (!(data7 === "true")) {
|
|
1053
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/gap", schemaPath: "#/definitions/key/properties/gap/enum", keyword: "enum", params: { allowedValues: schema44.properties.gap.enum }, message: "must be equal to one of the allowed values" }];
|
|
900
1054
|
return false;
|
|
901
1055
|
}
|
|
902
|
-
var
|
|
1056
|
+
var valid6 = _errs20 === errors;
|
|
903
1057
|
}
|
|
904
1058
|
else {
|
|
905
|
-
var
|
|
1059
|
+
var valid6 = true;
|
|
906
1060
|
}
|
|
907
|
-
if (
|
|
908
|
-
if (
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/gap", schemaPath: "#/definitions/key/properties/gap/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
913
|
-
return false;
|
|
914
|
-
}
|
|
915
|
-
if (!(data9 === "true")) {
|
|
916
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/gap", schemaPath: "#/definitions/key/properties/gap/enum", keyword: "enum", params: { allowedValues: schema41.properties.gap.enum }, message: "must be equal to one of the allowed values" }];
|
|
1061
|
+
if (valid6) {
|
|
1062
|
+
if (data5.id !== void 0) {
|
|
1063
|
+
const _errs22 = errors;
|
|
1064
|
+
if (typeof data5.id !== "string") {
|
|
1065
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/id", schemaPath: "#/definitions/key/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
917
1066
|
return false;
|
|
918
1067
|
}
|
|
919
|
-
var
|
|
1068
|
+
var valid6 = _errs22 === errors;
|
|
920
1069
|
}
|
|
921
1070
|
else {
|
|
922
|
-
var
|
|
1071
|
+
var valid6 = true;
|
|
923
1072
|
}
|
|
924
|
-
if (
|
|
925
|
-
if (
|
|
926
|
-
const
|
|
927
|
-
if (typeof
|
|
928
|
-
|
|
1073
|
+
if (valid6) {
|
|
1074
|
+
if (data5.layerId !== void 0) {
|
|
1075
|
+
const _errs24 = errors;
|
|
1076
|
+
if (typeof data5.layerId !== "string") {
|
|
1077
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/layerId", schemaPath: "#/definitions/key/properties/layerId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
929
1078
|
return false;
|
|
930
1079
|
}
|
|
931
|
-
var
|
|
1080
|
+
var valid6 = _errs24 === errors;
|
|
932
1081
|
}
|
|
933
1082
|
else {
|
|
934
|
-
var
|
|
1083
|
+
var valid6 = true;
|
|
935
1084
|
}
|
|
936
|
-
if (
|
|
937
|
-
if (
|
|
938
|
-
const
|
|
939
|
-
if (typeof
|
|
940
|
-
|
|
1085
|
+
if (valid6) {
|
|
1086
|
+
if (data5.longPressDefaultKeyId !== void 0) {
|
|
1087
|
+
const _errs26 = errors;
|
|
1088
|
+
if (typeof data5.longPressDefaultKeyId !== "string") {
|
|
1089
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/longPressDefaultKeyId", schemaPath: "#/definitions/key/properties/longPressDefaultKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
941
1090
|
return false;
|
|
942
1091
|
}
|
|
943
|
-
var
|
|
1092
|
+
var valid6 = _errs26 === errors;
|
|
944
1093
|
}
|
|
945
1094
|
else {
|
|
946
|
-
var
|
|
1095
|
+
var valid6 = true;
|
|
947
1096
|
}
|
|
948
|
-
if (
|
|
949
|
-
if (
|
|
950
|
-
const
|
|
951
|
-
if (typeof
|
|
952
|
-
|
|
1097
|
+
if (valid6) {
|
|
1098
|
+
if (data5.longPressKeyIds !== void 0) {
|
|
1099
|
+
const _errs28 = errors;
|
|
1100
|
+
if (typeof data5.longPressKeyIds !== "string") {
|
|
1101
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/longPressKeyIds", schemaPath: "#/definitions/key/properties/longPressKeyIds/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
953
1102
|
return false;
|
|
954
1103
|
}
|
|
955
|
-
var
|
|
1104
|
+
var valid6 = _errs28 === errors;
|
|
956
1105
|
}
|
|
957
1106
|
else {
|
|
958
|
-
var
|
|
1107
|
+
var valid6 = true;
|
|
959
1108
|
}
|
|
960
|
-
if (
|
|
961
|
-
if (
|
|
962
|
-
const
|
|
963
|
-
if (typeof
|
|
964
|
-
|
|
1109
|
+
if (valid6) {
|
|
1110
|
+
if (data5.multiTapKeyIds !== void 0) {
|
|
1111
|
+
const _errs30 = errors;
|
|
1112
|
+
if (typeof data5.multiTapKeyIds !== "string") {
|
|
1113
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/multiTapKeyIds", schemaPath: "#/definitions/key/properties/multiTapKeyIds/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
965
1114
|
return false;
|
|
966
1115
|
}
|
|
967
|
-
var
|
|
1116
|
+
var valid6 = _errs30 === errors;
|
|
968
1117
|
}
|
|
969
1118
|
else {
|
|
970
|
-
var
|
|
1119
|
+
var valid6 = true;
|
|
971
1120
|
}
|
|
972
|
-
if (
|
|
973
|
-
if (
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/stretch", schemaPath: "#/definitions/key/properties/stretch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
978
|
-
return false;
|
|
979
|
-
}
|
|
980
|
-
if (!(data14 === "true")) {
|
|
981
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/stretch", schemaPath: "#/definitions/key/properties/stretch/enum", keyword: "enum", params: { allowedValues: schema41.properties.stretch.enum }, message: "must be equal to one of the allowed values" }];
|
|
1121
|
+
if (valid6) {
|
|
1122
|
+
if (data5.output !== void 0) {
|
|
1123
|
+
const _errs32 = errors;
|
|
1124
|
+
if (typeof data5.output !== "string") {
|
|
1125
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/output", schemaPath: "#/definitions/key/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
982
1126
|
return false;
|
|
983
1127
|
}
|
|
984
|
-
var
|
|
1128
|
+
var valid6 = _errs32 === errors;
|
|
985
1129
|
}
|
|
986
1130
|
else {
|
|
987
|
-
var
|
|
1131
|
+
var valid6 = true;
|
|
988
1132
|
}
|
|
989
|
-
if (
|
|
990
|
-
if (
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1133
|
+
if (valid6) {
|
|
1134
|
+
if (data5.stretch !== void 0) {
|
|
1135
|
+
let data14 = data5.stretch;
|
|
1136
|
+
const _errs34 = errors;
|
|
1137
|
+
if (typeof data14 !== "string") {
|
|
1138
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/stretch", schemaPath: "#/definitions/key/properties/stretch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1139
|
+
return false;
|
|
1140
|
+
}
|
|
1141
|
+
if (!(data14 === "true")) {
|
|
1142
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/stretch", schemaPath: "#/definitions/key/properties/stretch/enum", keyword: "enum", params: { allowedValues: schema44.properties.stretch.enum }, message: "must be equal to one of the allowed values" }];
|
|
994
1143
|
return false;
|
|
995
1144
|
}
|
|
996
|
-
var
|
|
1145
|
+
var valid6 = _errs34 === errors;
|
|
997
1146
|
}
|
|
998
1147
|
else {
|
|
999
|
-
var
|
|
1148
|
+
var valid6 = true;
|
|
1000
1149
|
}
|
|
1001
|
-
if (
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
if (typeof
|
|
1005
|
-
|
|
1150
|
+
if (valid6) {
|
|
1151
|
+
if (data5.width !== void 0) {
|
|
1152
|
+
const _errs36 = errors;
|
|
1153
|
+
if (typeof data5.width !== "string") {
|
|
1154
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1 + "/width", schemaPath: "#/definitions/key/properties/width/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1006
1155
|
return false;
|
|
1007
1156
|
}
|
|
1008
|
-
var
|
|
1157
|
+
var valid6 = _errs36 === errors;
|
|
1009
1158
|
}
|
|
1010
1159
|
else {
|
|
1011
|
-
var
|
|
1012
|
-
}
|
|
1013
|
-
if (valid7) {
|
|
1014
|
-
if (data7.transform !== void 0) {
|
|
1015
|
-
let data17 = data7.transform;
|
|
1016
|
-
const _errs39 = errors;
|
|
1017
|
-
if (typeof data17 !== "string") {
|
|
1018
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/transform", schemaPath: "#/definitions/key/properties/transform/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1019
|
-
return false;
|
|
1020
|
-
}
|
|
1021
|
-
if (!(data17 === "no")) {
|
|
1022
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/transform", schemaPath: "#/definitions/key/properties/transform/enum", keyword: "enum", params: { allowedValues: schema41.properties.transform.enum }, message: "must be equal to one of the allowed values" }];
|
|
1023
|
-
return false;
|
|
1024
|
-
}
|
|
1025
|
-
var valid7 = _errs39 === errors;
|
|
1026
|
-
}
|
|
1027
|
-
else {
|
|
1028
|
-
var valid7 = true;
|
|
1029
|
-
}
|
|
1030
|
-
if (valid7) {
|
|
1031
|
-
if (data7.width !== void 0) {
|
|
1032
|
-
const _errs41 = errors;
|
|
1033
|
-
if (typeof data7.width !== "string") {
|
|
1034
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2 + "/width", schemaPath: "#/definitions/key/properties/width/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1035
|
-
return false;
|
|
1036
|
-
}
|
|
1037
|
-
var valid7 = _errs41 === errors;
|
|
1038
|
-
}
|
|
1039
|
-
else {
|
|
1040
|
-
var valid7 = true;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1160
|
+
var valid6 = true;
|
|
1043
1161
|
}
|
|
1044
1162
|
}
|
|
1045
1163
|
}
|
|
@@ -1052,85 +1170,85 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1052
1170
|
}
|
|
1053
1171
|
}
|
|
1054
1172
|
}
|
|
1055
|
-
else {
|
|
1056
|
-
validate27.errors = [{ instancePath: instancePath + "/key/" + i2, schemaPath: "#/definitions/key/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1057
|
-
return false;
|
|
1058
|
-
}
|
|
1059
1173
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1174
|
+
else {
|
|
1175
|
+
validate31.errors = [{ instancePath: instancePath + "/key/" + i1, schemaPath: "#/definitions/key/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1176
|
+
return false;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
var valid4 = _errs14 === errors;
|
|
1180
|
+
if (!valid4) {
|
|
1181
|
+
break;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
validate31.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1187
|
+
return false;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
var valid0 = _errs12 === errors;
|
|
1191
|
+
}
|
|
1192
|
+
else {
|
|
1193
|
+
var valid0 = true;
|
|
1194
|
+
}
|
|
1195
|
+
if (valid0) {
|
|
1196
|
+
if (data.special !== void 0) {
|
|
1197
|
+
let data16 = data.special;
|
|
1198
|
+
const _errs38 = errors;
|
|
1199
|
+
if (errors === _errs38) {
|
|
1200
|
+
if (Array.isArray(data16)) {
|
|
1201
|
+
var valid7 = true;
|
|
1202
|
+
const len2 = data16.length;
|
|
1203
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
1204
|
+
const _errs40 = errors;
|
|
1205
|
+
if (typeof data16[i2] !== "string") {
|
|
1206
|
+
validate31.errors = [{ instancePath: instancePath + "/special/" + i2, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1207
|
+
return false;
|
|
1208
|
+
}
|
|
1209
|
+
var valid7 = _errs40 === errors;
|
|
1210
|
+
if (!valid7) {
|
|
1062
1211
|
break;
|
|
1063
1212
|
}
|
|
1064
1213
|
}
|
|
1065
1214
|
}
|
|
1066
1215
|
else {
|
|
1067
|
-
|
|
1216
|
+
validate31.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1068
1217
|
return false;
|
|
1069
1218
|
}
|
|
1070
1219
|
}
|
|
1071
|
-
var valid0 =
|
|
1220
|
+
var valid0 = _errs38 === errors;
|
|
1072
1221
|
}
|
|
1073
1222
|
else {
|
|
1074
1223
|
var valid0 = true;
|
|
1075
1224
|
}
|
|
1076
|
-
if (valid0) {
|
|
1077
|
-
if (data.special !== void 0) {
|
|
1078
|
-
let data19 = data.special;
|
|
1079
|
-
const _errs43 = errors;
|
|
1080
|
-
if (errors === _errs43) {
|
|
1081
|
-
if (Array.isArray(data19)) {
|
|
1082
|
-
var valid8 = true;
|
|
1083
|
-
const len3 = data19.length;
|
|
1084
|
-
for (let i3 = 0; i3 < len3; i3++) {
|
|
1085
|
-
const _errs45 = errors;
|
|
1086
|
-
if (typeof data19[i3] !== "string") {
|
|
1087
|
-
validate27.errors = [{ instancePath: instancePath + "/special/" + i3, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1088
|
-
return false;
|
|
1089
|
-
}
|
|
1090
|
-
var valid8 = _errs45 === errors;
|
|
1091
|
-
if (!valid8) {
|
|
1092
|
-
break;
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
else {
|
|
1097
|
-
validate27.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1098
|
-
return false;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
var valid0 = _errs43 === errors;
|
|
1102
|
-
}
|
|
1103
|
-
else {
|
|
1104
|
-
var valid0 = true;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
1225
|
}
|
|
1108
1226
|
}
|
|
1109
1227
|
}
|
|
1110
1228
|
}
|
|
1111
1229
|
else {
|
|
1112
|
-
|
|
1230
|
+
validate31.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1113
1231
|
return false;
|
|
1114
1232
|
}
|
|
1115
1233
|
}
|
|
1116
|
-
|
|
1234
|
+
validate31.errors = vErrors;
|
|
1117
1235
|
return errors === 0;
|
|
1118
1236
|
}
|
|
1119
|
-
function
|
|
1237
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1120
1238
|
let vErrors = null;
|
|
1121
1239
|
let errors = 0;
|
|
1122
1240
|
if (errors === 0) {
|
|
1123
1241
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1124
1242
|
let missing0;
|
|
1125
1243
|
if (data.row === void 0 && (missing0 = "row")) {
|
|
1126
|
-
|
|
1244
|
+
validate34.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1127
1245
|
return false;
|
|
1128
1246
|
}
|
|
1129
1247
|
else {
|
|
1130
1248
|
const _errs1 = errors;
|
|
1131
1249
|
for (const key0 in data) {
|
|
1132
|
-
if (!(key0 === "id" || key0 === "
|
|
1133
|
-
|
|
1250
|
+
if (!(key0 === "id" || key0 === "modifiers" || key0 === "row" || key0 === "special")) {
|
|
1251
|
+
validate34.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1134
1252
|
return false;
|
|
1135
1253
|
break;
|
|
1136
1254
|
}
|
|
@@ -1139,7 +1257,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1139
1257
|
if (data.id !== void 0) {
|
|
1140
1258
|
const _errs2 = errors;
|
|
1141
1259
|
if (typeof data.id !== "string") {
|
|
1142
|
-
|
|
1260
|
+
validate34.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1143
1261
|
return false;
|
|
1144
1262
|
}
|
|
1145
1263
|
var valid0 = _errs2 === errors;
|
|
@@ -1148,10 +1266,10 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1148
1266
|
var valid0 = true;
|
|
1149
1267
|
}
|
|
1150
1268
|
if (valid0) {
|
|
1151
|
-
if (data.
|
|
1269
|
+
if (data.modifiers !== void 0) {
|
|
1152
1270
|
const _errs4 = errors;
|
|
1153
|
-
if (typeof data.
|
|
1154
|
-
|
|
1271
|
+
if (typeof data.modifiers !== "string") {
|
|
1272
|
+
validate34.errors = [{ instancePath: instancePath + "/modifiers", schemaPath: "#/properties/modifiers/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1155
1273
|
return false;
|
|
1156
1274
|
}
|
|
1157
1275
|
var valid0 = _errs4 === errors;
|
|
@@ -1166,7 +1284,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1166
1284
|
if (errors === _errs6) {
|
|
1167
1285
|
if (Array.isArray(data2)) {
|
|
1168
1286
|
if (data2.length < 1) {
|
|
1169
|
-
|
|
1287
|
+
validate34.errors = [{ instancePath: instancePath + "/row", schemaPath: "#/properties/row/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
1170
1288
|
return false;
|
|
1171
1289
|
}
|
|
1172
1290
|
else {
|
|
@@ -1180,14 +1298,14 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1180
1298
|
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
1181
1299
|
let missing1;
|
|
1182
1300
|
if (data3.keys === void 0 && (missing1 = "keys")) {
|
|
1183
|
-
|
|
1301
|
+
validate34.errors = [{ instancePath: instancePath + "/row/" + i0, schemaPath: "#/definitions/row/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1184
1302
|
return false;
|
|
1185
1303
|
}
|
|
1186
1304
|
else {
|
|
1187
1305
|
const _errs11 = errors;
|
|
1188
1306
|
for (const key1 in data3) {
|
|
1189
1307
|
if (!(key1 === "keys")) {
|
|
1190
|
-
|
|
1308
|
+
validate34.errors = [{ instancePath: instancePath + "/row/" + i0, schemaPath: "#/definitions/row/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1191
1309
|
return false;
|
|
1192
1310
|
break;
|
|
1193
1311
|
}
|
|
@@ -1195,7 +1313,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1195
1313
|
if (_errs11 === errors) {
|
|
1196
1314
|
if (data3.keys !== void 0) {
|
|
1197
1315
|
if (typeof data3.keys !== "string") {
|
|
1198
|
-
|
|
1316
|
+
validate34.errors = [{ instancePath: instancePath + "/row/" + i0 + "/keys", schemaPath: "#/definitions/row/properties/keys/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1199
1317
|
return false;
|
|
1200
1318
|
}
|
|
1201
1319
|
}
|
|
@@ -1203,7 +1321,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1203
1321
|
}
|
|
1204
1322
|
}
|
|
1205
1323
|
else {
|
|
1206
|
-
|
|
1324
|
+
validate34.errors = [{ instancePath: instancePath + "/row/" + i0, schemaPath: "#/definitions/row/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1207
1325
|
return false;
|
|
1208
1326
|
}
|
|
1209
1327
|
}
|
|
@@ -1215,7 +1333,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1215
1333
|
}
|
|
1216
1334
|
}
|
|
1217
1335
|
else {
|
|
1218
|
-
|
|
1336
|
+
validate34.errors = [{ instancePath: instancePath + "/row", schemaPath: "#/properties/row/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1219
1337
|
return false;
|
|
1220
1338
|
}
|
|
1221
1339
|
}
|
|
@@ -1235,7 +1353,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1235
1353
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
1236
1354
|
const _errs16 = errors;
|
|
1237
1355
|
if (typeof data5[i1] !== "string") {
|
|
1238
|
-
|
|
1356
|
+
validate34.errors = [{ instancePath: instancePath + "/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1239
1357
|
return false;
|
|
1240
1358
|
}
|
|
1241
1359
|
var valid4 = _errs16 === errors;
|
|
@@ -1245,7 +1363,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1245
1363
|
}
|
|
1246
1364
|
}
|
|
1247
1365
|
else {
|
|
1248
|
-
|
|
1366
|
+
validate34.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1249
1367
|
return false;
|
|
1250
1368
|
}
|
|
1251
1369
|
}
|
|
@@ -1261,37 +1379,37 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1261
1379
|
}
|
|
1262
1380
|
}
|
|
1263
1381
|
else {
|
|
1264
|
-
|
|
1382
|
+
validate34.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1265
1383
|
return false;
|
|
1266
1384
|
}
|
|
1267
1385
|
}
|
|
1268
|
-
|
|
1386
|
+
validate34.errors = vErrors;
|
|
1269
1387
|
return errors === 0;
|
|
1270
1388
|
}
|
|
1271
|
-
function
|
|
1389
|
+
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1272
1390
|
let vErrors = null;
|
|
1273
1391
|
let errors = 0;
|
|
1274
1392
|
if (errors === 0) {
|
|
1275
1393
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1276
1394
|
let missing0;
|
|
1277
|
-
if (data.
|
|
1278
|
-
|
|
1395
|
+
if (data.formId === void 0 && (missing0 = "formId")) {
|
|
1396
|
+
validate33.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1279
1397
|
return false;
|
|
1280
1398
|
}
|
|
1281
1399
|
else {
|
|
1282
1400
|
const _errs1 = errors;
|
|
1283
1401
|
for (const key0 in data) {
|
|
1284
|
-
if (!(key0 === "
|
|
1285
|
-
|
|
1402
|
+
if (!(key0 === "formId" || key0 === "import" || key0 === "layer" || key0 === "minDeviceWidth" || key0 === "special")) {
|
|
1403
|
+
validate33.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1286
1404
|
return false;
|
|
1287
1405
|
break;
|
|
1288
1406
|
}
|
|
1289
1407
|
}
|
|
1290
1408
|
if (_errs1 === errors) {
|
|
1291
|
-
if (data.
|
|
1409
|
+
if (data.formId !== void 0) {
|
|
1292
1410
|
const _errs2 = errors;
|
|
1293
|
-
if (typeof data.
|
|
1294
|
-
|
|
1411
|
+
if (typeof data.formId !== "string") {
|
|
1412
|
+
validate33.errors = [{ instancePath: instancePath + "/formId", schemaPath: "#/properties/formId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1295
1413
|
return false;
|
|
1296
1414
|
}
|
|
1297
1415
|
var valid0 = _errs2 === errors;
|
|
@@ -1315,14 +1433,14 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1315
1433
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
1316
1434
|
let missing1;
|
|
1317
1435
|
if (data2.path === void 0 && (missing1 = "path")) {
|
|
1318
|
-
|
|
1436
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1319
1437
|
return false;
|
|
1320
1438
|
}
|
|
1321
1439
|
else {
|
|
1322
1440
|
const _errs9 = errors;
|
|
1323
1441
|
for (const key1 in data2) {
|
|
1324
1442
|
if (!(key1 === "base" || key1 === "path")) {
|
|
1325
|
-
|
|
1443
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1326
1444
|
return false;
|
|
1327
1445
|
break;
|
|
1328
1446
|
}
|
|
@@ -1332,11 +1450,11 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1332
1450
|
let data3 = data2.base;
|
|
1333
1451
|
const _errs10 = errors;
|
|
1334
1452
|
if (typeof data3 !== "string") {
|
|
1335
|
-
|
|
1453
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1336
1454
|
return false;
|
|
1337
1455
|
}
|
|
1338
1456
|
if (!(data3 === "cldr")) {
|
|
1339
|
-
|
|
1457
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/enum", keyword: "enum", params: { allowedValues: schema26.properties.base.enum }, message: "must be equal to one of the allowed values" }];
|
|
1340
1458
|
return false;
|
|
1341
1459
|
}
|
|
1342
1460
|
var valid3 = _errs10 === errors;
|
|
@@ -1348,400 +1466,191 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1348
1466
|
if (data2.path !== void 0) {
|
|
1349
1467
|
const _errs12 = errors;
|
|
1350
1468
|
if (typeof data2.path !== "string") {
|
|
1351
|
-
|
|
1469
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1352
1470
|
return false;
|
|
1353
1471
|
}
|
|
1354
1472
|
var valid3 = _errs12 === errors;
|
|
1355
1473
|
}
|
|
1356
|
-
else {
|
|
1357
|
-
var valid3 = true;
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
else {
|
|
1364
|
-
validate31.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1365
|
-
return false;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
var valid1 = _errs6 === errors;
|
|
1369
|
-
if (!valid1) {
|
|
1370
|
-
break;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
else {
|
|
1375
|
-
validate31.errors = [{ instancePath: instancePath + "/import", schemaPath: "#/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1376
|
-
return false;
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
var valid0 = _errs4 === errors;
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
var valid0 = true;
|
|
1383
|
-
}
|
|
1384
|
-
if (valid0) {
|
|
1385
|
-
if (data.layer !== void 0) {
|
|
1386
|
-
let data5 = data.layer;
|
|
1387
|
-
const _errs14 = errors;
|
|
1388
|
-
if (errors === _errs14) {
|
|
1389
|
-
if (Array.isArray(data5)) {
|
|
1390
|
-
var valid4 = true;
|
|
1391
|
-
const len1 = data5.length;
|
|
1392
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
1393
|
-
const _errs16 = errors;
|
|
1394
|
-
if (!validate32(data5[i1], { instancePath: instancePath + "/layer/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
1395
|
-
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
1396
|
-
errors = vErrors.length;
|
|
1397
|
-
}
|
|
1398
|
-
var valid4 = _errs16 === errors;
|
|
1399
|
-
if (!valid4) {
|
|
1400
|
-
break;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
else {
|
|
1405
|
-
validate31.errors = [{ instancePath: instancePath + "/layer", schemaPath: "#/properties/layer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1406
|
-
return false;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
var valid0 = _errs14 === errors;
|
|
1410
|
-
}
|
|
1411
|
-
else {
|
|
1412
|
-
var valid0 = true;
|
|
1413
|
-
}
|
|
1414
|
-
if (valid0) {
|
|
1415
|
-
if (data.minDeviceWidth !== void 0) {
|
|
1416
|
-
const _errs17 = errors;
|
|
1417
|
-
if (typeof data.minDeviceWidth !== "string") {
|
|
1418
|
-
validate31.errors = [{ instancePath: instancePath + "/minDeviceWidth", schemaPath: "#/properties/minDeviceWidth/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1419
|
-
return false;
|
|
1420
|
-
}
|
|
1421
|
-
var valid0 = _errs17 === errors;
|
|
1422
|
-
}
|
|
1423
|
-
else {
|
|
1424
|
-
var valid0 = true;
|
|
1425
|
-
}
|
|
1426
|
-
if (valid0) {
|
|
1427
|
-
if (data.special !== void 0) {
|
|
1428
|
-
let data8 = data.special;
|
|
1429
|
-
const _errs19 = errors;
|
|
1430
|
-
if (errors === _errs19) {
|
|
1431
|
-
if (Array.isArray(data8)) {
|
|
1432
|
-
var valid5 = true;
|
|
1433
|
-
const len2 = data8.length;
|
|
1434
|
-
for (let i2 = 0; i2 < len2; i2++) {
|
|
1435
|
-
const _errs21 = errors;
|
|
1436
|
-
if (typeof data8[i2] !== "string") {
|
|
1437
|
-
validate31.errors = [{ instancePath: instancePath + "/special/" + i2, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1438
|
-
return false;
|
|
1439
|
-
}
|
|
1440
|
-
var valid5 = _errs21 === errors;
|
|
1441
|
-
if (!valid5) {
|
|
1442
|
-
break;
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
else {
|
|
1447
|
-
validate31.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1448
|
-
return false;
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
var valid0 = _errs19 === errors;
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
var valid0 = true;
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
else {
|
|
1464
|
-
validate31.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1465
|
-
return false;
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
validate31.errors = vErrors;
|
|
1469
|
-
return errors === 0;
|
|
1470
|
-
}
|
|
1471
|
-
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1472
|
-
let vErrors = null;
|
|
1473
|
-
let errors = 0;
|
|
1474
|
-
if (errors === 0) {
|
|
1475
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1476
|
-
const _errs1 = errors;
|
|
1477
|
-
for (const key0 in data) {
|
|
1478
|
-
if (!(key0 === "locale")) {
|
|
1479
|
-
validate35.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1480
|
-
return false;
|
|
1481
|
-
break;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
if (_errs1 === errors) {
|
|
1485
|
-
if (data.locale !== void 0) {
|
|
1486
|
-
let data0 = data.locale;
|
|
1487
|
-
const _errs2 = errors;
|
|
1488
|
-
if (errors === _errs2) {
|
|
1489
|
-
if (Array.isArray(data0)) {
|
|
1490
|
-
var valid1 = true;
|
|
1491
|
-
const len0 = data0.length;
|
|
1492
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
1493
|
-
let data1 = data0[i0];
|
|
1494
|
-
const _errs4 = errors;
|
|
1495
|
-
const _errs5 = errors;
|
|
1496
|
-
if (errors === _errs5) {
|
|
1497
|
-
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1498
|
-
let missing0;
|
|
1499
|
-
if (data1.id === void 0 && (missing0 = "id")) {
|
|
1500
|
-
validate35.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1501
|
-
return false;
|
|
1502
|
-
}
|
|
1503
|
-
else {
|
|
1504
|
-
const _errs7 = errors;
|
|
1505
|
-
for (const key1 in data1) {
|
|
1506
|
-
if (!(key1 === "id")) {
|
|
1507
|
-
validate35.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1508
|
-
return false;
|
|
1509
|
-
break;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
if (_errs7 === errors) {
|
|
1513
|
-
if (data1.id !== void 0) {
|
|
1514
|
-
if (typeof data1.id !== "string") {
|
|
1515
|
-
validate35.errors = [{ instancePath: instancePath + "/locale/" + i0 + "/id", schemaPath: "#/definitions/locale/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1516
|
-
return false;
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
else {
|
|
1523
|
-
validate35.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1524
|
-
return false;
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
var valid1 = _errs4 === errors;
|
|
1528
|
-
if (!valid1) {
|
|
1529
|
-
break;
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
else {
|
|
1534
|
-
validate35.errors = [{ instancePath: instancePath + "/locale", schemaPath: "#/properties/locale/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1535
|
-
return false;
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
else {
|
|
1542
|
-
validate35.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1543
|
-
return false;
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
validate35.errors = vErrors;
|
|
1547
|
-
return errors === 0;
|
|
1548
|
-
}
|
|
1549
|
-
function validate37(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1550
|
-
let vErrors = null;
|
|
1551
|
-
let errors = 0;
|
|
1552
|
-
if (errors === 0) {
|
|
1553
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1554
|
-
let missing0;
|
|
1555
|
-
if (data.name === void 0 && (missing0 = "name")) {
|
|
1556
|
-
validate37.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1557
|
-
return false;
|
|
1558
|
-
}
|
|
1559
|
-
else {
|
|
1560
|
-
const _errs1 = errors;
|
|
1561
|
-
for (const key0 in data) {
|
|
1562
|
-
if (!(key0 === "import" || key0 === "name" || key0 === "special")) {
|
|
1563
|
-
validate37.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1564
|
-
return false;
|
|
1565
|
-
break;
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
if (_errs1 === errors) {
|
|
1569
|
-
if (data.import !== void 0) {
|
|
1570
|
-
let data0 = data.import;
|
|
1571
|
-
const _errs2 = errors;
|
|
1572
|
-
if (errors === _errs2) {
|
|
1573
|
-
if (Array.isArray(data0)) {
|
|
1574
|
-
var valid1 = true;
|
|
1575
|
-
const len0 = data0.length;
|
|
1576
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
1577
|
-
let data1 = data0[i0];
|
|
1578
|
-
const _errs4 = errors;
|
|
1579
|
-
const _errs5 = errors;
|
|
1580
|
-
if (errors === _errs5) {
|
|
1581
|
-
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1582
|
-
let missing1;
|
|
1583
|
-
if (data1.path === void 0 && (missing1 = "path")) {
|
|
1584
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
1585
|
-
return false;
|
|
1586
|
-
}
|
|
1587
|
-
else {
|
|
1588
|
-
const _errs7 = errors;
|
|
1589
|
-
for (const key1 in data1) {
|
|
1590
|
-
if (!(key1 === "base" || key1 === "path")) {
|
|
1591
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1592
|
-
return false;
|
|
1593
|
-
break;
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
if (_errs7 === errors) {
|
|
1597
|
-
if (data1.base !== void 0) {
|
|
1598
|
-
let data2 = data1.base;
|
|
1599
|
-
const _errs8 = errors;
|
|
1600
|
-
if (typeof data2 !== "string") {
|
|
1601
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1602
|
-
return false;
|
|
1603
|
-
}
|
|
1604
|
-
if (!(data2 === "cldr")) {
|
|
1605
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/enum", keyword: "enum", params: { allowedValues: schema26.properties.base.enum }, message: "must be equal to one of the allowed values" }];
|
|
1606
|
-
return false;
|
|
1607
|
-
}
|
|
1608
|
-
var valid3 = _errs8 === errors;
|
|
1609
|
-
}
|
|
1610
|
-
else {
|
|
1611
|
-
var valid3 = true;
|
|
1612
|
-
}
|
|
1613
|
-
if (valid3) {
|
|
1614
|
-
if (data1.path !== void 0) {
|
|
1615
|
-
const _errs10 = errors;
|
|
1616
|
-
if (typeof data1.path !== "string") {
|
|
1617
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1618
|
-
return false;
|
|
1619
|
-
}
|
|
1620
|
-
var valid3 = _errs10 === errors;
|
|
1621
|
-
}
|
|
1622
|
-
else {
|
|
1623
|
-
var valid3 = true;
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
else {
|
|
1630
|
-
validate37.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1631
|
-
return false;
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
var valid1 = _errs4 === errors;
|
|
1635
|
-
if (!valid1) {
|
|
1636
|
-
break;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
else {
|
|
1641
|
-
validate37.errors = [{ instancePath: instancePath + "/import", schemaPath: "#/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1642
|
-
return false;
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
var valid0 = _errs2 === errors;
|
|
1646
|
-
}
|
|
1647
|
-
else {
|
|
1648
|
-
var valid0 = true;
|
|
1649
|
-
}
|
|
1650
|
-
if (valid0) {
|
|
1651
|
-
if (data.name !== void 0) {
|
|
1652
|
-
let data4 = data.name;
|
|
1653
|
-
const _errs12 = errors;
|
|
1654
|
-
if (errors === _errs12) {
|
|
1655
|
-
if (Array.isArray(data4)) {
|
|
1656
|
-
if (data4.length < 1) {
|
|
1657
|
-
validate37.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
1658
|
-
return false;
|
|
1659
|
-
}
|
|
1660
|
-
else {
|
|
1661
|
-
var valid4 = true;
|
|
1662
|
-
const len1 = data4.length;
|
|
1663
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
1664
|
-
let data5 = data4[i1];
|
|
1665
|
-
const _errs14 = errors;
|
|
1666
|
-
const _errs15 = errors;
|
|
1667
|
-
if (errors === _errs15) {
|
|
1668
|
-
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
1669
|
-
let missing2;
|
|
1670
|
-
if (data5.value === void 0 && (missing2 = "value")) {
|
|
1671
|
-
validate37.errors = [{ instancePath: instancePath + "/name/" + i1, schemaPath: "#/definitions/name/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
1672
|
-
return false;
|
|
1673
|
-
}
|
|
1674
|
-
else {
|
|
1675
|
-
const _errs17 = errors;
|
|
1676
|
-
for (const key2 in data5) {
|
|
1677
|
-
if (!(key2 === "value")) {
|
|
1678
|
-
validate37.errors = [{ instancePath: instancePath + "/name/" + i1, schemaPath: "#/definitions/name/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
1679
|
-
return false;
|
|
1680
|
-
break;
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
if (_errs17 === errors) {
|
|
1684
|
-
if (data5.value !== void 0) {
|
|
1685
|
-
if (typeof data5.value !== "string") {
|
|
1686
|
-
validate37.errors = [{ instancePath: instancePath + "/name/" + i1 + "/value", schemaPath: "#/definitions/name/properties/value/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1687
|
-
return false;
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1474
|
+
else {
|
|
1475
|
+
var valid3 = true;
|
|
1476
|
+
}
|
|
1690
1477
|
}
|
|
1691
1478
|
}
|
|
1692
1479
|
}
|
|
1693
|
-
else {
|
|
1694
|
-
validate37.errors = [{ instancePath: instancePath + "/name/" + i1, schemaPath: "#/definitions/name/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1695
|
-
return false;
|
|
1696
|
-
}
|
|
1697
1480
|
}
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1481
|
+
else {
|
|
1482
|
+
validate33.errors = [{ instancePath: instancePath + "/import/" + i0, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1483
|
+
return false;
|
|
1701
1484
|
}
|
|
1702
1485
|
}
|
|
1486
|
+
var valid1 = _errs6 === errors;
|
|
1487
|
+
if (!valid1) {
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1703
1490
|
}
|
|
1704
1491
|
}
|
|
1705
1492
|
else {
|
|
1706
|
-
|
|
1493
|
+
validate33.errors = [{ instancePath: instancePath + "/import", schemaPath: "#/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1707
1494
|
return false;
|
|
1708
1495
|
}
|
|
1709
1496
|
}
|
|
1710
|
-
var valid0 =
|
|
1497
|
+
var valid0 = _errs4 === errors;
|
|
1711
1498
|
}
|
|
1712
1499
|
else {
|
|
1713
1500
|
var valid0 = true;
|
|
1714
1501
|
}
|
|
1715
1502
|
if (valid0) {
|
|
1716
|
-
if (data.
|
|
1717
|
-
let
|
|
1718
|
-
const
|
|
1719
|
-
if (errors ===
|
|
1720
|
-
if (Array.isArray(
|
|
1721
|
-
var
|
|
1722
|
-
const
|
|
1723
|
-
for (let
|
|
1724
|
-
const
|
|
1725
|
-
if (
|
|
1726
|
-
|
|
1727
|
-
|
|
1503
|
+
if (data.layer !== void 0) {
|
|
1504
|
+
let data5 = data.layer;
|
|
1505
|
+
const _errs14 = errors;
|
|
1506
|
+
if (errors === _errs14) {
|
|
1507
|
+
if (Array.isArray(data5)) {
|
|
1508
|
+
var valid4 = true;
|
|
1509
|
+
const len1 = data5.length;
|
|
1510
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
1511
|
+
const _errs16 = errors;
|
|
1512
|
+
if (!validate34(data5[i1], { instancePath: instancePath + "/layer/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
1513
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
1514
|
+
errors = vErrors.length;
|
|
1728
1515
|
}
|
|
1729
|
-
var
|
|
1730
|
-
if (!
|
|
1516
|
+
var valid4 = _errs16 === errors;
|
|
1517
|
+
if (!valid4) {
|
|
1731
1518
|
break;
|
|
1732
1519
|
}
|
|
1733
1520
|
}
|
|
1734
1521
|
}
|
|
1735
1522
|
else {
|
|
1736
|
-
|
|
1523
|
+
validate33.errors = [{ instancePath: instancePath + "/layer", schemaPath: "#/properties/layer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1737
1524
|
return false;
|
|
1738
1525
|
}
|
|
1739
1526
|
}
|
|
1740
|
-
var valid0 =
|
|
1527
|
+
var valid0 = _errs14 === errors;
|
|
1741
1528
|
}
|
|
1742
1529
|
else {
|
|
1743
1530
|
var valid0 = true;
|
|
1744
1531
|
}
|
|
1532
|
+
if (valid0) {
|
|
1533
|
+
if (data.minDeviceWidth !== void 0) {
|
|
1534
|
+
const _errs17 = errors;
|
|
1535
|
+
if (typeof data.minDeviceWidth !== "string") {
|
|
1536
|
+
validate33.errors = [{ instancePath: instancePath + "/minDeviceWidth", schemaPath: "#/properties/minDeviceWidth/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1537
|
+
return false;
|
|
1538
|
+
}
|
|
1539
|
+
var valid0 = _errs17 === errors;
|
|
1540
|
+
}
|
|
1541
|
+
else {
|
|
1542
|
+
var valid0 = true;
|
|
1543
|
+
}
|
|
1544
|
+
if (valid0) {
|
|
1545
|
+
if (data.special !== void 0) {
|
|
1546
|
+
let data8 = data.special;
|
|
1547
|
+
const _errs19 = errors;
|
|
1548
|
+
if (errors === _errs19) {
|
|
1549
|
+
if (Array.isArray(data8)) {
|
|
1550
|
+
var valid5 = true;
|
|
1551
|
+
const len2 = data8.length;
|
|
1552
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
1553
|
+
const _errs21 = errors;
|
|
1554
|
+
if (typeof data8[i2] !== "string") {
|
|
1555
|
+
validate33.errors = [{ instancePath: instancePath + "/special/" + i2, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1556
|
+
return false;
|
|
1557
|
+
}
|
|
1558
|
+
var valid5 = _errs21 === errors;
|
|
1559
|
+
if (!valid5) {
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
else {
|
|
1565
|
+
validate33.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1566
|
+
return false;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
var valid0 = _errs19 === errors;
|
|
1570
|
+
}
|
|
1571
|
+
else {
|
|
1572
|
+
var valid0 = true;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
validate33.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1583
|
+
return false;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
validate33.errors = vErrors;
|
|
1587
|
+
return errors === 0;
|
|
1588
|
+
}
|
|
1589
|
+
function validate37(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1590
|
+
let vErrors = null;
|
|
1591
|
+
let errors = 0;
|
|
1592
|
+
if (errors === 0) {
|
|
1593
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1594
|
+
const _errs1 = errors;
|
|
1595
|
+
for (const key0 in data) {
|
|
1596
|
+
if (!(key0 === "locale")) {
|
|
1597
|
+
validate37.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1598
|
+
return false;
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
if (_errs1 === errors) {
|
|
1603
|
+
if (data.locale !== void 0) {
|
|
1604
|
+
let data0 = data.locale;
|
|
1605
|
+
const _errs2 = errors;
|
|
1606
|
+
if (errors === _errs2) {
|
|
1607
|
+
if (Array.isArray(data0)) {
|
|
1608
|
+
var valid1 = true;
|
|
1609
|
+
const len0 = data0.length;
|
|
1610
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1611
|
+
let data1 = data0[i0];
|
|
1612
|
+
const _errs4 = errors;
|
|
1613
|
+
const _errs5 = errors;
|
|
1614
|
+
if (errors === _errs5) {
|
|
1615
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1616
|
+
let missing0;
|
|
1617
|
+
if (data1.id === void 0 && (missing0 = "id")) {
|
|
1618
|
+
validate37.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
1619
|
+
return false;
|
|
1620
|
+
}
|
|
1621
|
+
else {
|
|
1622
|
+
const _errs7 = errors;
|
|
1623
|
+
for (const key1 in data1) {
|
|
1624
|
+
if (!(key1 === "id")) {
|
|
1625
|
+
validate37.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
1626
|
+
return false;
|
|
1627
|
+
break;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
if (_errs7 === errors) {
|
|
1631
|
+
if (data1.id !== void 0) {
|
|
1632
|
+
if (typeof data1.id !== "string") {
|
|
1633
|
+
validate37.errors = [{ instancePath: instancePath + "/locale/" + i0 + "/id", schemaPath: "#/definitions/locale/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1634
|
+
return false;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
else {
|
|
1641
|
+
validate37.errors = [{ instancePath: instancePath + "/locale/" + i0, schemaPath: "#/definitions/locale/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1642
|
+
return false;
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
var valid1 = _errs4 === errors;
|
|
1646
|
+
if (!valid1) {
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
else {
|
|
1652
|
+
validate37.errors = [{ instancePath: instancePath + "/locale", schemaPath: "#/properties/locale/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1653
|
+
return false;
|
|
1745
1654
|
}
|
|
1746
1655
|
}
|
|
1747
1656
|
}
|
|
@@ -1755,7 +1664,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
1755
1664
|
validate37.errors = vErrors;
|
|
1756
1665
|
return errors === 0;
|
|
1757
1666
|
}
|
|
1758
|
-
var
|
|
1667
|
+
var schema56 = { "additionalProperties": false, "properties": { "import": { "items": { "$ref": "#/definitions/import" }, "type": "array" }, "special": { "items": { "$ref": "#/definitions/special" }, "type": "array" }, "transformGroup": { "items": { "$ref": "#/definitions/transformGroup" }, "type": "array" }, "type": { "enum": ["simple", "backspace"], "type": "string" } }, "required": ["type"], "type": "object" };
|
|
1759
1668
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1760
1669
|
let vErrors = null;
|
|
1761
1670
|
let errors = 0;
|
|
@@ -2270,7 +2179,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2270
2179
|
return false;
|
|
2271
2180
|
}
|
|
2272
2181
|
if (!(data8 === "simple" || data8 === "backspace")) {
|
|
2273
|
-
validate39.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
2182
|
+
validate39.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema56.properties.type.enum }, message: "must be equal to one of the allowed values" }];
|
|
2274
2183
|
return false;
|
|
2275
2184
|
}
|
|
2276
2185
|
var valid0 = _errs20 === errors;
|
|
@@ -2688,7 +2597,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2688
2597
|
if (errors === _errs2) {
|
|
2689
2598
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
2690
2599
|
let missing1;
|
|
2691
|
-
if (data0.
|
|
2600
|
+
if (data0.info === void 0 && (missing1 = "info") || data0.locale === void 0 && (missing1 = "locale") || data0.conformsTo === void 0 && (missing1 = "conformsTo")) {
|
|
2692
2601
|
validate20.errors = [{ instancePath: instancePath + "/keyboard3", schemaPath: "#/properties/keyboard3/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
2693
2602
|
return false;
|
|
2694
2603
|
}
|
|
@@ -2731,9 +2640,9 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2731
2640
|
var valid1 = true;
|
|
2732
2641
|
}
|
|
2733
2642
|
if (valid1) {
|
|
2734
|
-
if (data0.
|
|
2643
|
+
if (data0.flicks !== void 0) {
|
|
2735
2644
|
const _errs8 = errors;
|
|
2736
|
-
if (!validate23(data0.
|
|
2645
|
+
if (!validate23(data0.flicks, { instancePath: instancePath + "/keyboard3/flicks", parentData: data0, parentDataProperty: "flicks", rootData })) {
|
|
2737
2646
|
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
2738
2647
|
errors = vErrors.length;
|
|
2739
2648
|
}
|
|
@@ -2743,201 +2652,190 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2743
2652
|
var valid1 = true;
|
|
2744
2653
|
}
|
|
2745
2654
|
if (valid1) {
|
|
2746
|
-
if (data0.
|
|
2747
|
-
let data4 = data0.import;
|
|
2655
|
+
if (data0.forms !== void 0) {
|
|
2748
2656
|
const _errs9 = errors;
|
|
2749
|
-
if (
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2657
|
+
if (!validate27(data0.forms, { instancePath: instancePath + "/keyboard3/forms", parentData: data0, parentDataProperty: "forms", rootData })) {
|
|
2658
|
+
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
2659
|
+
errors = vErrors.length;
|
|
2660
|
+
}
|
|
2661
|
+
var valid1 = _errs9 === errors;
|
|
2662
|
+
}
|
|
2663
|
+
else {
|
|
2664
|
+
var valid1 = true;
|
|
2665
|
+
}
|
|
2666
|
+
if (valid1) {
|
|
2667
|
+
if (data0.import !== void 0) {
|
|
2668
|
+
let data5 = data0.import;
|
|
2669
|
+
const _errs10 = errors;
|
|
2670
|
+
if (errors === _errs10) {
|
|
2671
|
+
if (Array.isArray(data5)) {
|
|
2672
|
+
var valid2 = true;
|
|
2673
|
+
const len0 = data5.length;
|
|
2674
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2675
|
+
let data6 = data5[i0];
|
|
2676
|
+
const _errs12 = errors;
|
|
2677
|
+
const _errs13 = errors;
|
|
2678
|
+
if (errors === _errs13) {
|
|
2679
|
+
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
2680
|
+
let missing2;
|
|
2681
|
+
if (data6.path === void 0 && (missing2 = "path")) {
|
|
2682
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
2683
|
+
return false;
|
|
2772
2684
|
}
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2779
|
-
return false;
|
|
2780
|
-
}
|
|
2781
|
-
if (!(data6 === "cldr")) {
|
|
2782
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/enum", keyword: "enum", params: { allowedValues: schema26.properties.base.enum }, message: "must be equal to one of the allowed values" }];
|
|
2685
|
+
else {
|
|
2686
|
+
const _errs15 = errors;
|
|
2687
|
+
for (const key2 in data6) {
|
|
2688
|
+
if (!(key2 === "base" || key2 === "path")) {
|
|
2689
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
2783
2690
|
return false;
|
|
2691
|
+
break;
|
|
2784
2692
|
}
|
|
2785
|
-
var valid4 = _errs15 === errors;
|
|
2786
|
-
}
|
|
2787
|
-
else {
|
|
2788
|
-
var valid4 = true;
|
|
2789
2693
|
}
|
|
2790
|
-
if (
|
|
2791
|
-
if (
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2694
|
+
if (_errs15 === errors) {
|
|
2695
|
+
if (data6.base !== void 0) {
|
|
2696
|
+
let data7 = data6.base;
|
|
2697
|
+
const _errs16 = errors;
|
|
2698
|
+
if (typeof data7 !== "string") {
|
|
2699
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2795
2700
|
return false;
|
|
2796
2701
|
}
|
|
2797
|
-
|
|
2702
|
+
if (!(data7 === "cldr")) {
|
|
2703
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0 + "/base", schemaPath: "#/definitions/import/properties/base/enum", keyword: "enum", params: { allowedValues: schema26.properties.base.enum }, message: "must be equal to one of the allowed values" }];
|
|
2704
|
+
return false;
|
|
2705
|
+
}
|
|
2706
|
+
var valid4 = _errs16 === errors;
|
|
2798
2707
|
}
|
|
2799
2708
|
else {
|
|
2800
2709
|
var valid4 = true;
|
|
2801
2710
|
}
|
|
2711
|
+
if (valid4) {
|
|
2712
|
+
if (data6.path !== void 0) {
|
|
2713
|
+
const _errs18 = errors;
|
|
2714
|
+
if (typeof data6.path !== "string") {
|
|
2715
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2716
|
+
return false;
|
|
2717
|
+
}
|
|
2718
|
+
var valid4 = _errs18 === errors;
|
|
2719
|
+
}
|
|
2720
|
+
else {
|
|
2721
|
+
var valid4 = true;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2802
2724
|
}
|
|
2803
2725
|
}
|
|
2804
2726
|
}
|
|
2727
|
+
else {
|
|
2728
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import/" + i0, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2729
|
+
return false;
|
|
2730
|
+
}
|
|
2805
2731
|
}
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2732
|
+
var valid2 = _errs12 === errors;
|
|
2733
|
+
if (!valid2) {
|
|
2734
|
+
break;
|
|
2809
2735
|
}
|
|
2810
2736
|
}
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2737
|
+
}
|
|
2738
|
+
else {
|
|
2739
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import", schemaPath: "#/properties/keyboard3/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2740
|
+
return false;
|
|
2815
2741
|
}
|
|
2816
2742
|
}
|
|
2817
|
-
|
|
2818
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/import", schemaPath: "#/properties/keyboard3/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2819
|
-
return false;
|
|
2820
|
-
}
|
|
2743
|
+
var valid1 = _errs10 === errors;
|
|
2821
2744
|
}
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
for (const key3 in data8) {
|
|
2836
|
-
if (!(key3 === "author" || key3 === "indicator" || key3 === "layout" || key3 === "normalization")) {
|
|
2837
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info", schemaPath: "#/definitions/info/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2745
|
+
else {
|
|
2746
|
+
var valid1 = true;
|
|
2747
|
+
}
|
|
2748
|
+
if (valid1) {
|
|
2749
|
+
if (data0.info !== void 0) {
|
|
2750
|
+
let data9 = data0.info;
|
|
2751
|
+
const _errs20 = errors;
|
|
2752
|
+
const _errs21 = errors;
|
|
2753
|
+
if (errors === _errs21) {
|
|
2754
|
+
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
|
|
2755
|
+
let missing3;
|
|
2756
|
+
if (data9.name === void 0 && (missing3 = "name")) {
|
|
2757
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info", schemaPath: "#/definitions/info/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2838
2758
|
return false;
|
|
2839
|
-
break;
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
if (_errs22 === errors) {
|
|
2843
|
-
if (data8.author !== void 0) {
|
|
2844
|
-
const _errs23 = errors;
|
|
2845
|
-
if (typeof data8.author !== "string") {
|
|
2846
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/author", schemaPath: "#/definitions/info/properties/author/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2847
|
-
return false;
|
|
2848
|
-
}
|
|
2849
|
-
var valid6 = _errs23 === errors;
|
|
2850
2759
|
}
|
|
2851
2760
|
else {
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
const _errs25 = errors;
|
|
2857
|
-
if (typeof data8.indicator !== "string") {
|
|
2858
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/indicator", schemaPath: "#/definitions/info/properties/indicator/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2761
|
+
const _errs23 = errors;
|
|
2762
|
+
for (const key3 in data9) {
|
|
2763
|
+
if (!(key3 === "author" || key3 === "indicator" || key3 === "layout" || key3 === "name")) {
|
|
2764
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info", schemaPath: "#/definitions/info/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2859
2765
|
return false;
|
|
2766
|
+
break;
|
|
2860
2767
|
}
|
|
2861
|
-
var valid6 = _errs25 === errors;
|
|
2862
|
-
}
|
|
2863
|
-
else {
|
|
2864
|
-
var valid6 = true;
|
|
2865
2768
|
}
|
|
2866
|
-
if (
|
|
2867
|
-
if (
|
|
2868
|
-
const
|
|
2869
|
-
if (typeof
|
|
2870
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/
|
|
2769
|
+
if (_errs23 === errors) {
|
|
2770
|
+
if (data9.author !== void 0) {
|
|
2771
|
+
const _errs24 = errors;
|
|
2772
|
+
if (typeof data9.author !== "string") {
|
|
2773
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/author", schemaPath: "#/definitions/info/properties/author/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2871
2774
|
return false;
|
|
2872
2775
|
}
|
|
2873
|
-
var valid6 =
|
|
2776
|
+
var valid6 = _errs24 === errors;
|
|
2874
2777
|
}
|
|
2875
2778
|
else {
|
|
2876
2779
|
var valid6 = true;
|
|
2877
2780
|
}
|
|
2878
2781
|
if (valid6) {
|
|
2879
|
-
if (
|
|
2880
|
-
const
|
|
2881
|
-
if (typeof
|
|
2882
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/
|
|
2782
|
+
if (data9.indicator !== void 0) {
|
|
2783
|
+
const _errs26 = errors;
|
|
2784
|
+
if (typeof data9.indicator !== "string") {
|
|
2785
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/indicator", schemaPath: "#/definitions/info/properties/indicator/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2883
2786
|
return false;
|
|
2884
2787
|
}
|
|
2885
|
-
var valid6 =
|
|
2788
|
+
var valid6 = _errs26 === errors;
|
|
2886
2789
|
}
|
|
2887
2790
|
else {
|
|
2888
2791
|
var valid6 = true;
|
|
2889
2792
|
}
|
|
2793
|
+
if (valid6) {
|
|
2794
|
+
if (data9.layout !== void 0) {
|
|
2795
|
+
const _errs28 = errors;
|
|
2796
|
+
if (typeof data9.layout !== "string") {
|
|
2797
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/layout", schemaPath: "#/definitions/info/properties/layout/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2798
|
+
return false;
|
|
2799
|
+
}
|
|
2800
|
+
var valid6 = _errs28 === errors;
|
|
2801
|
+
}
|
|
2802
|
+
else {
|
|
2803
|
+
var valid6 = true;
|
|
2804
|
+
}
|
|
2805
|
+
if (valid6) {
|
|
2806
|
+
if (data9.name !== void 0) {
|
|
2807
|
+
const _errs30 = errors;
|
|
2808
|
+
if (typeof data9.name !== "string") {
|
|
2809
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info/name", schemaPath: "#/definitions/info/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2810
|
+
return false;
|
|
2811
|
+
}
|
|
2812
|
+
var valid6 = _errs30 === errors;
|
|
2813
|
+
}
|
|
2814
|
+
else {
|
|
2815
|
+
var valid6 = true;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2890
2819
|
}
|
|
2891
2820
|
}
|
|
2892
2821
|
}
|
|
2893
2822
|
}
|
|
2823
|
+
else {
|
|
2824
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info", schemaPath: "#/definitions/info/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2825
|
+
return false;
|
|
2826
|
+
}
|
|
2894
2827
|
}
|
|
2895
|
-
|
|
2896
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/info", schemaPath: "#/definitions/info/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2897
|
-
return false;
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
|
-
var valid1 = _errs19 === errors;
|
|
2901
|
-
}
|
|
2902
|
-
else {
|
|
2903
|
-
var valid1 = true;
|
|
2904
|
-
}
|
|
2905
|
-
if (valid1) {
|
|
2906
|
-
if (data0.keys !== void 0) {
|
|
2907
|
-
const _errs31 = errors;
|
|
2908
|
-
if (!validate27(data0.keys, { instancePath: instancePath + "/keyboard3/keys", parentData: data0, parentDataProperty: "keys", rootData })) {
|
|
2909
|
-
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
2910
|
-
errors = vErrors.length;
|
|
2911
|
-
}
|
|
2912
|
-
var valid1 = _errs31 === errors;
|
|
2828
|
+
var valid1 = _errs20 === errors;
|
|
2913
2829
|
}
|
|
2914
2830
|
else {
|
|
2915
2831
|
var valid1 = true;
|
|
2916
2832
|
}
|
|
2917
2833
|
if (valid1) {
|
|
2918
|
-
if (data0.
|
|
2919
|
-
let data14 = data0.layers;
|
|
2834
|
+
if (data0.keys !== void 0) {
|
|
2920
2835
|
const _errs32 = errors;
|
|
2921
|
-
if (
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
const len1 = data14.length;
|
|
2925
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
2926
|
-
const _errs34 = errors;
|
|
2927
|
-
if (!validate31(data14[i1], { instancePath: instancePath + "/keyboard3/layers/" + i1, parentData: data14, parentDataProperty: i1, rootData })) {
|
|
2928
|
-
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
2929
|
-
errors = vErrors.length;
|
|
2930
|
-
}
|
|
2931
|
-
var valid7 = _errs34 === errors;
|
|
2932
|
-
if (!valid7) {
|
|
2933
|
-
break;
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
}
|
|
2937
|
-
else {
|
|
2938
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/layers", schemaPath: "#/properties/keyboard3/properties/layers/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2939
|
-
return false;
|
|
2940
|
-
}
|
|
2836
|
+
if (!validate31(data0.keys, { instancePath: instancePath + "/keyboard3/keys", parentData: data0, parentDataProperty: "keys", rootData })) {
|
|
2837
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
2838
|
+
errors = vErrors.length;
|
|
2941
2839
|
}
|
|
2942
2840
|
var valid1 = _errs32 === errors;
|
|
2943
2841
|
}
|
|
@@ -2945,33 +2843,51 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2945
2843
|
var valid1 = true;
|
|
2946
2844
|
}
|
|
2947
2845
|
if (valid1) {
|
|
2948
|
-
if (data0.
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2846
|
+
if (data0.layers !== void 0) {
|
|
2847
|
+
let data15 = data0.layers;
|
|
2848
|
+
const _errs33 = errors;
|
|
2849
|
+
if (errors === _errs33) {
|
|
2850
|
+
if (Array.isArray(data15)) {
|
|
2851
|
+
var valid7 = true;
|
|
2852
|
+
const len1 = data15.length;
|
|
2853
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
2854
|
+
const _errs35 = errors;
|
|
2855
|
+
if (!validate33(data15[i1], { instancePath: instancePath + "/keyboard3/layers/" + i1, parentData: data15, parentDataProperty: i1, rootData })) {
|
|
2856
|
+
vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
|
|
2857
|
+
errors = vErrors.length;
|
|
2858
|
+
}
|
|
2859
|
+
var valid7 = _errs35 === errors;
|
|
2860
|
+
if (!valid7) {
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
else {
|
|
2866
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/layers", schemaPath: "#/properties/keyboard3/properties/layers/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2867
|
+
return false;
|
|
2868
|
+
}
|
|
2953
2869
|
}
|
|
2954
|
-
var valid1 =
|
|
2870
|
+
var valid1 = _errs33 === errors;
|
|
2955
2871
|
}
|
|
2956
2872
|
else {
|
|
2957
2873
|
var valid1 = true;
|
|
2958
2874
|
}
|
|
2959
2875
|
if (valid1) {
|
|
2960
|
-
if (data0.
|
|
2961
|
-
const
|
|
2962
|
-
if (
|
|
2963
|
-
|
|
2964
|
-
|
|
2876
|
+
if (data0.locale !== void 0) {
|
|
2877
|
+
const _errs36 = errors;
|
|
2878
|
+
if (typeof data0.locale !== "string") {
|
|
2879
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/locale", schemaPath: "#/properties/keyboard3/properties/locale/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2880
|
+
return false;
|
|
2965
2881
|
}
|
|
2966
|
-
var valid1 =
|
|
2882
|
+
var valid1 = _errs36 === errors;
|
|
2967
2883
|
}
|
|
2968
2884
|
else {
|
|
2969
2885
|
var valid1 = true;
|
|
2970
2886
|
}
|
|
2971
2887
|
if (valid1) {
|
|
2972
|
-
if (data0.
|
|
2888
|
+
if (data0.locales !== void 0) {
|
|
2973
2889
|
const _errs38 = errors;
|
|
2974
|
-
if (!validate37(data0.
|
|
2890
|
+
if (!validate37(data0.locales, { instancePath: instancePath + "/keyboard3/locales", parentData: data0, parentDataProperty: "locales", rootData })) {
|
|
2975
2891
|
vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);
|
|
2976
2892
|
errors = vErrors.length;
|
|
2977
2893
|
}
|
|
@@ -2989,21 +2905,21 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
2989
2905
|
if (data19 && typeof data19 == "object" && !Array.isArray(data19)) {
|
|
2990
2906
|
const _errs42 = errors;
|
|
2991
2907
|
for (const key4 in data19) {
|
|
2992
|
-
if (!(key4 === "
|
|
2908
|
+
if (!(key4 === "normalization")) {
|
|
2993
2909
|
validate20.errors = [{ instancePath: instancePath + "/keyboard3/settings", schemaPath: "#/definitions/settings/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
2994
2910
|
return false;
|
|
2995
2911
|
break;
|
|
2996
2912
|
}
|
|
2997
2913
|
}
|
|
2998
2914
|
if (_errs42 === errors) {
|
|
2999
|
-
if (data19.
|
|
3000
|
-
let data20 = data19.
|
|
2915
|
+
if (data19.normalization !== void 0) {
|
|
2916
|
+
let data20 = data19.normalization;
|
|
3001
2917
|
if (typeof data20 !== "string") {
|
|
3002
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/settings/
|
|
2918
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/settings/normalization", schemaPath: "#/definitions/settings/properties/normalization/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3003
2919
|
return false;
|
|
3004
2920
|
}
|
|
3005
|
-
if (!(data20 === "
|
|
3006
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/settings/
|
|
2921
|
+
if (!(data20 === "disabled")) {
|
|
2922
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/settings/normalization", schemaPath: "#/definitions/settings/properties/normalization/enum", keyword: "enum", params: { allowedValues: schema54.properties.normalization.enum }, message: "must be equal to one of the allowed values" }];
|
|
3007
2923
|
return false;
|
|
3008
2924
|
}
|
|
3009
2925
|
}
|
|
@@ -3115,7 +3031,7 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
3115
3031
|
return false;
|
|
3116
3032
|
}
|
|
3117
3033
|
if (!(data27 === "techpreview")) {
|
|
3118
|
-
validate20.errors = [{ instancePath: instancePath + "/keyboard3/version/cldrVersion", schemaPath: "#/definitions/version/properties/cldrVersion/enum", keyword: "enum", params: { allowedValues:
|
|
3034
|
+
validate20.errors = [{ instancePath: instancePath + "/keyboard3/version/cldrVersion", schemaPath: "#/definitions/version/properties/cldrVersion/enum", keyword: "enum", params: { allowedValues: schema70.properties.cldrVersion.enum }, message: "must be equal to one of the allowed values" }];
|
|
3119
3035
|
return false;
|
|
3120
3036
|
}
|
|
3121
3037
|
var valid14 = _errs58 === errors;
|
|
@@ -3185,5 +3101,5 @@ var require_ldml_keyboard3_schema_validator = __commonJS({
|
|
|
3185
3101
|
}
|
|
3186
3102
|
});
|
|
3187
3103
|
export default require_ldml_keyboard3_schema_validator();
|
|
3188
|
-
//# debugId=
|
|
3104
|
+
//# debugId=2c9464de-056a-5dbc-92c8-f0e2b3824703
|
|
3189
3105
|
//# sourceMappingURL=ldml-keyboard3.schema.validator.mjs.map
|