UNPKG

@keymanapp/common-types

Version:

Keyman Developer keyboard file types

537 lines (535 loc) 272 kB
!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]="5e33d548-a0a3-5a39-ad7a-77a66bac1b61")}catch(e){}}(); var __getOwnPropNames = Object.getOwnPropertyNames; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; // obj/schemas/ldml-keyboard3.schema.validator.cjs var require_ldml_keyboard3_schema_validator = __commonJS({ "obj/schemas/ldml-keyboard3.schema.validator.cjs"(exports, module) { module.exports = validate20; module.exports.default = validate20; 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": { "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" }, "uset": { "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" }, "uset": { "items": { "$ref": "#/definitions/uset" }, "type": "array" } }, "type": "object" }, "version": { "additionalProperties": false, "properties": { "cldrVersion": { "enum": ["46"], "type": "string" }, "number": { "type": "string" } }, "type": "object" } }, "properties": { "keyboard3": { "additionalProperties": false, "properties": { "conformsTo": { "enum": ["45", "46"], "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" }, "xmlns": { "type": "string" } }, "required": ["info", "locale", "conformsTo"], "type": "object" } }, "required": ["keyboard3"], "title": "46/dtd/ldmlKeyboard3.xsd", "type": "object" }; var schema54 = { "additionalProperties": false, "properties": { "normalization": { "enum": ["disabled"], "type": "string" } }, "type": "object" }; var schema70 = { "additionalProperties": false, "properties": { "cldrVersion": { "enum": ["46"], "type": "string" }, "number": { "type": "string" } }, "type": "object" }; var func4 = Object.prototype.hasOwnProperty; function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) { if (data && typeof data == "object" && !Array.isArray(data)) { const _errs1 = errors; for (const key0 in data) { if (!(key0 === "display" || key0 === "displayOptions" || key0 === "import" || key0 === "special")) { validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs1 === errors) { if (data.display !== void 0) { let data0 = data.display; const _errs2 = errors; if (errors === _errs2) { if (Array.isArray(data0)) { var valid1 = true; const len0 = data0.length; for (let i0 = 0; i0 < len0; i0++) { let data1 = data0[i0]; const _errs4 = errors; const _errs5 = errors; if (errors === _errs5) { if (data1 && typeof data1 == "object" && !Array.isArray(data1)) { let missing0; if (data1.display === void 0 && (missing0 = "display")) { validate21.errors = [{ instancePath: instancePath + "/display/" + i0, schemaPath: "#/definitions/display/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }]; return false; } else { const _errs7 = errors; for (const key1 in data1) { if (!(key1 === "display" || key1 === "keyId" || key1 === "output")) { validate21.errors = [{ instancePath: instancePath + "/display/" + i0, schemaPath: "#/definitions/display/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs7 === errors) { if (data1.display !== void 0) { const _errs8 = errors; if (typeof data1.display !== "string") { validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/display", schemaPath: "#/definitions/display/properties/display/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid3 = _errs8 === errors; } else { var valid3 = true; } if (valid3) { if (data1.keyId !== void 0) { const _errs10 = errors; if (typeof data1.keyId !== "string") { validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/keyId", schemaPath: "#/definitions/display/properties/keyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid3 = _errs10 === errors; } else { var valid3 = true; } if (valid3) { if (data1.output !== void 0) { const _errs12 = errors; if (typeof data1.output !== "string") { validate21.errors = [{ instancePath: instancePath + "/display/" + i0 + "/output", schemaPath: "#/definitions/display/properties/output/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid3 = _errs12 === errors; } else { var valid3 = true; } } } } } } else { validate21.errors = [{ instancePath: instancePath + "/display/" + i0, schemaPath: "#/definitions/display/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } var valid1 = _errs4 === errors; if (!valid1) { break; } } } else { validate21.errors = [{ instancePath: instancePath + "/display", schemaPath: "#/properties/display/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs2 === errors; } else { var valid0 = true; } if (valid0) { if (data.displayOptions !== void 0) { let data5 = data.displayOptions; const _errs14 = errors; const _errs15 = errors; if (errors === _errs15) { if (data5 && typeof data5 == "object" && !Array.isArray(data5)) { const _errs17 = errors; for (const key2 in data5) { if (!(key2 === "baseCharacter")) { validate21.errors = [{ instancePath: instancePath + "/displayOptions", schemaPath: "#/definitions/displayOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs17 === errors) { if (data5.baseCharacter !== void 0) { if (typeof data5.baseCharacter !== "string") { validate21.errors = [{ instancePath: instancePath + "/displayOptions/baseCharacter", schemaPath: "#/definitions/displayOptions/properties/baseCharacter/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } } } } else { validate21.errors = [{ instancePath: instancePath + "/displayOptions", schemaPath: "#/definitions/displayOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } var valid0 = _errs14 === errors; } else { var valid0 = true; } if (valid0) { if (data.import !== void 0) { let data7 = data.import; const _errs20 = errors; if (errors === _errs20) { if (Array.isArray(data7)) { var valid6 = true; const len1 = data7.length; for (let i1 = 0; i1 < len1; i1++) { let data8 = data7[i1]; const _errs22 = errors; const _errs23 = errors; if (errors === _errs23) { if (data8 && typeof data8 == "object" && !Array.isArray(data8)) { let missing1; if (data8.path === void 0 && (missing1 = "path")) { validate21.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }]; return false; } else { const _errs25 = errors; for (const key3 in data8) { if (!(key3 === "base" || key3 === "path")) { validate21.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs25 === errors) { if (data8.base !== void 0) { const _errs26 = errors; if (typeof data8.base !== "string") { validate21.errors = [{ instancePath: instancePath + "/import/" + i1 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid8 = _errs26 === errors; } else { var valid8 = true; } if (valid8) { if (data8.path !== void 0) { const _errs28 = errors; if (typeof data8.path !== "string") { validate21.errors = [{ instancePath: instancePath + "/import/" + i1 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid8 = _errs28 === errors; } else { var valid8 = true; } } } } } else { validate21.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } var valid6 = _errs22 === errors; if (!valid6) { break; } } } else { validate21.errors = [{ instancePath: instancePath + "/import", schemaPath: "#/properties/import/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs20 === errors; } else { var valid0 = true; } if (valid0) { if (data.special !== void 0) { let data11 = data.special; const _errs30 = errors; if (errors === _errs30) { if (Array.isArray(data11)) { var valid9 = true; const len2 = data11.length; for (let i2 = 0; i2 < len2; i2++) { const _errs32 = errors; if (typeof data11[i2] !== "string") { validate21.errors = [{ instancePath: instancePath + "/special/" + i2, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid9 = _errs32 === errors; if (!valid9) { break; } } } else { validate21.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs30 === errors; } else { var valid0 = true; } } } } } } else { validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } validate21.errors = vErrors; return errors === 0; } function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) { if (data && typeof data == "object" && !Array.isArray(data)) { let missing0; if (data.flickSegment === void 0 && (missing0 = "flickSegment") || data.id === void 0 && (missing0 = "id")) { validate24.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }]; return false; } else { const _errs1 = errors; for (const key0 in data) { if (!(key0 === "flickSegment" || key0 === "id" || key0 === "special")) { validate24.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs1 === errors) { if (data.flickSegment !== void 0) { let data0 = data.flickSegment; const _errs2 = errors; if (errors === _errs2) { if (Array.isArray(data0)) { if (data0.length < 1) { validate24.errors = [{ instancePath: instancePath + "/flickSegment", schemaPath: "#/properties/flickSegment/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }]; return false; } else { var valid1 = true; const len0 = data0.length; for (let i0 = 0; i0 < len0; i0++) { let data1 = data0[i0]; const _errs4 = errors; const _errs5 = errors; if (errors === _errs5) { if (data1 && typeof data1 == "object" && !Array.isArray(data1)) { let missing1; if (data1.directions === void 0 && (missing1 = "directions") || data1.keyId === void 0 && (missing1 = "keyId")) { validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }]; return false; } else { const _errs7 = errors; for (const key1 in data1) { if (!(key1 === "directions" || key1 === "keyId")) { validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs7 === errors) { if (data1.directions !== void 0) { const _errs8 = errors; if (typeof data1.directions !== "string") { validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0 + "/directions", schemaPath: "#/definitions/flickSegment/properties/directions/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid3 = _errs8 === errors; } else { var valid3 = true; } if (valid3) { if (data1.keyId !== void 0) { const _errs10 = errors; if (typeof data1.keyId !== "string") { validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0 + "/keyId", schemaPath: "#/definitions/flickSegment/properties/keyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid3 = _errs10 === errors; } else { var valid3 = true; } } } } } else { validate24.errors = [{ instancePath: instancePath + "/flickSegment/" + i0, schemaPath: "#/definitions/flickSegment/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } var valid1 = _errs4 === errors; if (!valid1) { break; } } } } else { validate24.errors = [{ instancePath: instancePath + "/flickSegment", schemaPath: "#/properties/flickSegment/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs2 === errors; } else { var valid0 = true; } if (valid0) { if (data.id !== void 0) { const _errs12 = errors; if (typeof data.id !== "string") { validate24.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid0 = _errs12 === errors; } else { var valid0 = true; } if (valid0) { if (data.special !== void 0) { let data5 = data.special; const _errs14 = errors; if (errors === _errs14) { if (Array.isArray(data5)) { var valid4 = true; const len1 = data5.length; for (let i1 = 0; i1 < len1; i1++) { const _errs16 = errors; if (typeof data5[i1] !== "string") { validate24.errors = [{ instancePath: instancePath + "/special/" + i1, schemaPath: "#/definitions/special/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid4 = _errs16 === errors; if (!valid4) { break; } } } else { validate24.errors = [{ instancePath: instancePath + "/special", schemaPath: "#/properties/special/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs14 === errors; } else { var valid0 = true; } } } } } } else { validate24.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } validate24.errors = vErrors; return errors === 0; } function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) { if (data && typeof data == "object" && !Array.isArray(data)) { const _errs1 = errors; for (const key0 in data) { if (!(key0 === "flick" || key0 === "import" || key0 === "special")) { validate23.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs1 === errors) { if (data.flick !== void 0) { let data0 = data.flick; const _errs2 = errors; if (errors === _errs2) { if (Array.isArray(data0)) { var valid1 = true; const len0 = data0.length; for (let i0 = 0; i0 < len0; i0++) { const _errs4 = errors; if (!validate24(data0[i0], { instancePath: instancePath + "/flick/" + i0, parentData: data0, parentDataProperty: i0, rootData })) { vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors); errors = vErrors.length; } var valid1 = _errs4 === errors; if (!valid1) { break; } } } else { validate23.errors = [{ instancePath: instancePath + "/flick", schemaPath: "#/properties/flick/type", keyword: "type", params: { type: "array" }, message: "must be array" }]; return false; } } var valid0 = _errs2 === errors; } else { var valid0 = true; } if (valid0) { if (data.import !== void 0) { let data2 = data.import; const _errs5 = errors; if (errors === _errs5) { if (Array.isArray(data2)) { var valid2 = true; const len1 = data2.length; for (let i1 = 0; i1 < len1; i1++) { let data3 = data2[i1]; const _errs7 = errors; const _errs8 = errors; if (errors === _errs8) { if (data3 && typeof data3 == "object" && !Array.isArray(data3)) { let missing0; if (data3.path === void 0 && (missing0 = "path")) { validate23.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }]; return false; } else { const _errs10 = errors; for (const key1 in data3) { if (!(key1 === "base" || key1 === "path")) { validate23.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }]; return false; break; } } if (_errs10 === errors) { if (data3.base !== void 0) { const _errs11 = errors; if (typeof data3.base !== "string") { validate23.errors = [{ instancePath: instancePath + "/import/" + i1 + "/base", schemaPath: "#/definitions/import/properties/base/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid4 = _errs11 === errors; } else { var valid4 = true; } if (valid4) { if (data3.path !== void 0) { const _errs13 = errors; if (typeof data3.path !== "string") { validate23.errors = [{ instancePath: instancePath + "/import/" + i1 + "/path", schemaPath: "#/definitions/import/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" }]; return false; } var valid4 = _errs13 === errors; } else { var valid4 = true; } } } } } else { validate23.errors = [{ instancePath: instancePath + "/import/" + i1, schemaPath: "#/definitions/import/type", keyword: "type", params: { type: "object" }, message: "must be object" }]; return false; } } var valid2 = _errs7 === errors; if (!valid2) { break;