@keymanapp/common-types 17.0.300-beta → 17.0.302-beta

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.
Files changed (142) hide show
  1. package/build/src/consts/virtual-key-constants.js +222 -221
  2. package/build/src/consts/virtual-key-constants.js.map +1 -1
  3. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +73 -72
  4. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
  5. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +121 -120
  6. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
  7. package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +55 -54
  8. package/build/src/keyman-touch-layout/keyman-touch-layout-file.js.map +1 -1
  9. package/build/src/kmx/element-string.js +126 -125
  10. package/build/src/kmx/element-string.js.map +1 -1
  11. package/build/src/kmx/keyman-targets.js +80 -79
  12. package/build/src/kmx/keyman-targets.js.map +1 -1
  13. package/build/src/kmx/kmx-builder.js +190 -189
  14. package/build/src/kmx/kmx-builder.js.map +1 -1
  15. package/build/src/kmx/kmx-file-reader.js +135 -134
  16. package/build/src/kmx/kmx-file-reader.js.map +1 -1
  17. package/build/src/kmx/kmx-plus-builder/build-disp.js +28 -27
  18. package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
  19. package/build/src/kmx/kmx-plus-builder/build-elem.js +90 -89
  20. package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
  21. package/build/src/kmx/kmx-plus-builder/build-keys.js +108 -107
  22. package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
  23. package/build/src/kmx/kmx-plus-builder/build-layr.js +102 -101
  24. package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
  25. package/build/src/kmx/kmx-plus-builder/build-list.js +67 -66
  26. package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
  27. package/build/src/kmx/kmx-plus-builder/build-loca.js +22 -21
  28. package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
  29. package/build/src/kmx/kmx-plus-builder/build-meta.js +23 -22
  30. package/build/src/kmx/kmx-plus-builder/build-meta.js.map +1 -1
  31. package/build/src/kmx/kmx-plus-builder/build-sect.js +16 -15
  32. package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
  33. package/build/src/kmx/kmx-plus-builder/build-strs.js +47 -46
  34. package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
  35. package/build/src/kmx/kmx-plus-builder/build-tran.js +70 -69
  36. package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
  37. package/build/src/kmx/kmx-plus-builder/build-uset.js +61 -60
  38. package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
  39. package/build/src/kmx/kmx-plus-builder/build-vars.js +49 -48
  40. package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
  41. package/build/src/kmx/kmx-plus-builder/builder-section.js +5 -4
  42. package/build/src/kmx/kmx-plus-builder/builder-section.js.map +1 -1
  43. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +138 -137
  44. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
  45. package/build/src/kmx/kmx-plus.js +831 -830
  46. package/build/src/kmx/kmx-plus.js.map +1 -1
  47. package/build/src/kmx/kmx.d.ts.map +1 -1
  48. package/build/src/kmx/kmx.js +303 -299
  49. package/build/src/kmx/kmx.js.map +1 -1
  50. package/build/src/kmx/string-list.js +89 -88
  51. package/build/src/kmx/string-list.js.map +1 -1
  52. package/build/src/kpj/keyman-developer-project.js +196 -195
  53. package/build/src/kpj/keyman-developer-project.js.map +1 -1
  54. package/build/src/kpj/kpj-file-reader.js +120 -119
  55. package/build/src/kpj/kpj-file-reader.js.map +1 -1
  56. package/build/src/kpj/kpj-file.js +13 -12
  57. package/build/src/kpj/kpj-file.js.map +1 -1
  58. package/build/src/kvk/kvk-file-reader.js +38 -37
  59. package/build/src/kvk/kvk-file-reader.js.map +1 -1
  60. package/build/src/kvk/kvk-file-writer.js +78 -77
  61. package/build/src/kvk/kvk-file-writer.js.map +1 -1
  62. package/build/src/kvk/kvk-file.js +91 -90
  63. package/build/src/kvk/kvk-file.js.map +1 -1
  64. package/build/src/kvk/kvks-file-reader.js +176 -175
  65. package/build/src/kvk/kvks-file-reader.js.map +1 -1
  66. package/build/src/kvk/kvks-file-writer.js +107 -106
  67. package/build/src/kvk/kvks-file-writer.js.map +1 -1
  68. package/build/src/kvk/kvks-file.js +12 -11
  69. package/build/src/kvk/kvks-file.js.map +1 -1
  70. package/build/src/kvk/visual-keyboard.js +76 -75
  71. package/build/src/kvk/visual-keyboard.js.map +1 -1
  72. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +22 -21
  73. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js.map +1 -1
  74. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +410 -409
  75. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
  76. package/build/src/ldml-keyboard/ldml-keyboard-xml.js +58 -57
  77. package/build/src/ldml-keyboard/ldml-keyboard-xml.js.map +1 -1
  78. package/build/src/ldml-keyboard/pattern-parser.js +491 -490
  79. package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
  80. package/build/src/ldml-keyboard/unicodeset-parser-api.js +30 -29
  81. package/build/src/ldml-keyboard/unicodeset-parser-api.js.map +1 -1
  82. package/build/src/main.js +35 -34
  83. package/build/src/main.js.map +1 -1
  84. package/build/src/package/kmp-json-file.js +4 -3
  85. package/build/src/package/kmp-json-file.js.map +1 -1
  86. package/build/src/package/kps-file.js +18 -17
  87. package/build/src/package/kps-file.js.map +1 -1
  88. package/build/src/schema-validators.js +28 -27
  89. package/build/src/schema-validators.js.map +1 -1
  90. package/build/src/schemas/displaymap.schema.js +38 -37
  91. package/build/src/schemas/displaymap.schema.js.map +1 -1
  92. package/build/src/schemas/displaymap.schema.validator.mjs +267 -266
  93. package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
  94. package/build/src/schemas/keyboard_info.schema.js +101 -100
  95. package/build/src/schemas/keyboard_info.schema.js.map +1 -1
  96. package/build/src/schemas/keyboard_info.schema.validator.mjs +1161 -1160
  97. package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
  98. package/build/src/schemas/keyman-touch-layout.clean.spec.js +154 -153
  99. package/build/src/schemas/keyman-touch-layout.clean.spec.js.map +1 -1
  100. package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1095 -1094
  101. package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
  102. package/build/src/schemas/keyman-touch-layout.spec.js +143 -142
  103. package/build/src/schemas/keyman-touch-layout.spec.js.map +1 -1
  104. package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1437 -1436
  105. package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
  106. package/build/src/schemas/kmp.schema.js +356 -355
  107. package/build/src/schemas/kmp.schema.js.map +1 -1
  108. package/build/src/schemas/kmp.schema.validator.mjs +1628 -1627
  109. package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
  110. package/build/src/schemas/kpj-9.0.schema.js +134 -133
  111. package/build/src/schemas/kpj-9.0.schema.js.map +1 -1
  112. package/build/src/schemas/kpj-9.0.schema.validator.mjs +656 -655
  113. package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
  114. package/build/src/schemas/kpj.schema.js +132 -131
  115. package/build/src/schemas/kpj.schema.js.map +1 -1
  116. package/build/src/schemas/kpj.schema.validator.mjs +516 -515
  117. package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
  118. package/build/src/schemas/kvks.schema.js +185 -184
  119. package/build/src/schemas/kvks.schema.js.map +1 -1
  120. package/build/src/schemas/kvks.schema.validator.mjs +626 -625
  121. package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
  122. package/build/src/schemas/ldml-keyboard3.schema.js +699 -698
  123. package/build/src/schemas/ldml-keyboard3.schema.js.map +1 -1
  124. package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3118 -3117
  125. package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
  126. package/build/src/schemas/ldml-keyboardtest3.schema.js +228 -227
  127. package/build/src/schemas/ldml-keyboardtest3.schema.js.map +1 -1
  128. package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +745 -744
  129. package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
  130. package/build/src/schemas.js +26 -25
  131. package/build/src/schemas.js.map +1 -1
  132. package/build/src/util/common-events.js +29 -28
  133. package/build/src/util/common-events.js.map +1 -1
  134. package/build/src/util/compiler-interfaces.js +381 -380
  135. package/build/src/util/compiler-interfaces.js.map +1 -1
  136. package/build/src/util/errors.js +8 -7
  137. package/build/src/util/errors.js.map +1 -1
  138. package/build/src/util/file-types.js +143 -142
  139. package/build/src/util/file-types.js.map +1 -1
  140. package/build/src/util/util.js +369 -368
  141. package/build/src/util/util.js.map +1 -1
  142. package/package.json +2 -2
@@ -1,516 +1,517 @@
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]="35145ab0-1eff-5acf-93cd-7e995e22e5e1")}catch(e){}}();
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
- var __commonJS = (cb, mod) => function __require() {
4
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
- };
6
- // obj/schemas/kpj.schema.validator.cjs
7
- var require_kpj_schema_validator = __commonJS({
8
- "obj/schemas/kpj.schema.validator.cjs"(exports, module) {
9
- module.exports = validate20;
10
- module.exports.default = validate20;
11
- var pattern0 = new RegExp("^(True|False)$", "u");
12
- var pattern4 = new RegExp("^(keyboard|lexicalmodel)$", "u");
13
- var pattern5 = new RegExp("^(1\\.0|2\\.0)$", "u");
14
- function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
15
- let vErrors = null;
16
- let errors = 0;
17
- if (errors === 0) {
18
- if (data && typeof data == "object" && !Array.isArray(data)) {
19
- let missing0;
20
- if (data.Filename === void 0 && (missing0 = "Filename")) {
21
- validate22.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
22
- return false;
23
- }
24
- else {
25
- const _errs1 = errors;
26
- for (const key0 in data) {
27
- if (!(key0 === "ID" || key0 === "Filename" || key0 === "Filepath" || key0 === "FileVersion" || key0 === "FileType" || key0 === "Details" || key0 === "ParentFileID")) {
28
- validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
29
- return false;
30
- break;
31
- }
32
- }
33
- if (_errs1 === errors) {
34
- if (data.ID !== void 0) {
35
- const _errs2 = errors;
36
- if (typeof data.ID !== "string") {
37
- validate22.errors = [{ instancePath: instancePath + "/ID", schemaPath: "#/properties/ID/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
38
- return false;
39
- }
40
- var valid0 = _errs2 === errors;
41
- }
42
- else {
43
- var valid0 = true;
44
- }
45
- if (valid0) {
46
- if (data.Filename !== void 0) {
47
- const _errs4 = errors;
48
- if (typeof data.Filename !== "string") {
49
- validate22.errors = [{ instancePath: instancePath + "/Filename", schemaPath: "#/properties/Filename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
50
- return false;
51
- }
52
- var valid0 = _errs4 === errors;
53
- }
54
- else {
55
- var valid0 = true;
56
- }
57
- if (valid0) {
58
- if (data.Filepath !== void 0) {
59
- const _errs6 = errors;
60
- if (typeof data.Filepath !== "string") {
61
- validate22.errors = [{ instancePath: instancePath + "/Filepath", schemaPath: "#/properties/Filepath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
62
- return false;
63
- }
64
- var valid0 = _errs6 === errors;
65
- }
66
- else {
67
- var valid0 = true;
68
- }
69
- if (valid0) {
70
- if (data.FileVersion !== void 0) {
71
- const _errs8 = errors;
72
- if (typeof data.FileVersion !== "string") {
73
- validate22.errors = [{ instancePath: instancePath + "/FileVersion", schemaPath: "#/properties/FileVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
74
- return false;
75
- }
76
- var valid0 = _errs8 === errors;
77
- }
78
- else {
79
- var valid0 = true;
80
- }
81
- if (valid0) {
82
- if (data.FileType !== void 0) {
83
- const _errs10 = errors;
84
- if (typeof data.FileType !== "string") {
85
- validate22.errors = [{ instancePath: instancePath + "/FileType", schemaPath: "#/properties/FileType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
86
- return false;
87
- }
88
- var valid0 = _errs10 === errors;
89
- }
90
- else {
91
- var valid0 = true;
92
- }
93
- if (valid0) {
94
- if (data.Details !== void 0) {
95
- let data5 = data.Details;
96
- const _errs12 = errors;
97
- const _errs13 = errors;
98
- if (errors === _errs13) {
99
- if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
100
- const _errs15 = errors;
101
- for (const key1 in data5) {
102
- if (!(key1 === "Name" || key1 === "Copyright" || key1 === "Message" || key1 === "Version")) {
103
- validate22.errors = [{ instancePath: instancePath + "/Details", schemaPath: "#/definitions/FileDetails/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
104
- return false;
105
- break;
106
- }
107
- }
108
- if (_errs15 === errors) {
109
- if (data5.Name !== void 0) {
110
- const _errs16 = errors;
111
- if (typeof data5.Name !== "string") {
112
- validate22.errors = [{ instancePath: instancePath + "/Details/Name", schemaPath: "#/definitions/FileDetails/properties/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
113
- return false;
114
- }
115
- var valid2 = _errs16 === errors;
116
- }
117
- else {
118
- var valid2 = true;
119
- }
120
- if (valid2) {
121
- if (data5.Copyright !== void 0) {
122
- const _errs18 = errors;
123
- if (typeof data5.Copyright !== "string") {
124
- validate22.errors = [{ instancePath: instancePath + "/Details/Copyright", schemaPath: "#/definitions/FileDetails/properties/Copyright/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
125
- return false;
126
- }
127
- var valid2 = _errs18 === errors;
128
- }
129
- else {
130
- var valid2 = true;
131
- }
132
- if (valid2) {
133
- if (data5.Message !== void 0) {
134
- const _errs20 = errors;
135
- if (typeof data5.Message !== "string") {
136
- validate22.errors = [{ instancePath: instancePath + "/Details/Message", schemaPath: "#/definitions/FileDetails/properties/Message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
137
- return false;
138
- }
139
- var valid2 = _errs20 === errors;
140
- }
141
- else {
142
- var valid2 = true;
143
- }
144
- if (valid2) {
145
- if (data5.Version !== void 0) {
146
- const _errs22 = errors;
147
- if (typeof data5.Version !== "string") {
148
- validate22.errors = [{ instancePath: instancePath + "/Details/Version", schemaPath: "#/definitions/FileDetails/properties/Version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
149
- return false;
150
- }
151
- var valid2 = _errs22 === errors;
152
- }
153
- else {
154
- var valid2 = true;
155
- }
156
- }
157
- }
158
- }
159
- }
160
- }
161
- else {
162
- validate22.errors = [{ instancePath: instancePath + "/Details", schemaPath: "#/definitions/FileDetails/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
163
- return false;
164
- }
165
- }
166
- var valid0 = _errs12 === errors;
167
- }
168
- else {
169
- var valid0 = true;
170
- }
171
- if (valid0) {
172
- if (data.ParentFileID !== void 0) {
173
- const _errs24 = errors;
174
- if (typeof data.ParentFileID !== "string") {
175
- validate22.errors = [{ instancePath: instancePath + "/ParentFileID", schemaPath: "#/properties/ParentFileID/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
176
- return false;
177
- }
178
- var valid0 = _errs24 === errors;
179
- }
180
- else {
181
- var valid0 = true;
182
- }
183
- }
184
- }
185
- }
186
- }
187
- }
188
- }
189
- }
190
- }
191
- }
192
- else {
193
- validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
194
- return false;
195
- }
196
- }
197
- validate22.errors = vErrors;
198
- return errors === 0;
199
- }
200
- function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
201
- let vErrors = null;
202
- let errors = 0;
203
- if (errors === 0) {
204
- if (data && typeof data == "object" && !Array.isArray(data)) {
205
- let missing0;
206
- if (data.File === void 0 && (missing0 = "File")) {
207
- validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
208
- return false;
209
- }
210
- else {
211
- const _errs1 = errors;
212
- for (const key0 in data) {
213
- if (!(key0 === "File")) {
214
- validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
215
- return false;
216
- break;
217
- }
218
- }
219
- if (_errs1 === errors) {
220
- if (data.File !== void 0) {
221
- let data0 = data.File;
222
- const _errs2 = errors;
223
- if (errors === _errs2) {
224
- if (Array.isArray(data0)) {
225
- var valid1 = true;
226
- const len0 = data0.length;
227
- for (let i0 = 0; i0 < len0; i0++) {
228
- const _errs4 = errors;
229
- if (!validate22(data0[i0], { instancePath: instancePath + "/File/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
230
- vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
231
- errors = vErrors.length;
232
- }
233
- var valid1 = _errs4 === errors;
234
- if (!valid1) {
235
- break;
236
- }
237
- }
238
- }
239
- else {
240
- validate21.errors = [{ instancePath: instancePath + "/File", schemaPath: "#/properties/File/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
241
- return false;
242
- }
243
- }
244
- }
245
- }
246
- }
247
- }
248
- else {
249
- validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
250
- return false;
251
- }
252
- }
253
- validate21.errors = vErrors;
254
- return errors === 0;
255
- }
256
- function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
257
- let vErrors = null;
258
- let errors = 0;
259
- if (errors === 0) {
260
- if (data && typeof data == "object" && !Array.isArray(data)) {
261
- let missing0;
262
- if (data.KeymanDeveloperProject === void 0 && (missing0 = "KeymanDeveloperProject")) {
263
- validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
264
- return false;
265
- }
266
- else {
267
- const _errs1 = errors;
268
- for (const key0 in data) {
269
- if (!(key0 === "KeymanDeveloperProject")) {
270
- validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
271
- return false;
272
- break;
273
- }
274
- }
275
- if (_errs1 === errors) {
276
- if (data.KeymanDeveloperProject !== void 0) {
277
- let data0 = data.KeymanDeveloperProject;
278
- const _errs2 = errors;
279
- if (errors === _errs2) {
280
- if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
281
- let missing1;
282
- if (data0.Options === void 0 && (missing1 = "Options")) {
283
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
284
- return false;
285
- }
286
- else {
287
- const _errs4 = errors;
288
- for (const key1 in data0) {
289
- if (!(key1 === "Options" || key1 === "Files")) {
290
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
291
- return false;
292
- break;
293
- }
294
- }
295
- if (_errs4 === errors) {
296
- if (data0.Options !== void 0) {
297
- let data1 = data0.Options;
298
- const _errs5 = errors;
299
- const _errs6 = errors;
300
- if (errors === _errs6) {
301
- if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
302
- const _errs8 = errors;
303
- for (const key2 in data1) {
304
- if (!(key2 === "BuildPath" || key2 === "SourcePath" || key2 === "CompilerWarningsAsErrors" || key2 === "WarnDeprecatedCode" || key2 === "CheckFilenameConventions" || key2 === "SkipMetadataFiles" || key2 === "ProjectType" || key2 === "Version")) {
305
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options", schemaPath: "#/definitions/Options/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
306
- return false;
307
- break;
308
- }
309
- }
310
- if (_errs8 === errors) {
311
- if (data1.BuildPath !== void 0) {
312
- const _errs9 = errors;
313
- if (typeof data1.BuildPath !== "string") {
314
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/BuildPath", schemaPath: "#/definitions/Options/properties/BuildPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
315
- return false;
316
- }
317
- var valid3 = _errs9 === errors;
318
- }
319
- else {
320
- var valid3 = true;
321
- }
322
- if (valid3) {
323
- if (data1.SourcePath !== void 0) {
324
- const _errs11 = errors;
325
- if (typeof data1.SourcePath !== "string") {
326
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SourcePath", schemaPath: "#/definitions/Options/properties/SourcePath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
327
- return false;
328
- }
329
- var valid3 = _errs11 === errors;
330
- }
331
- else {
332
- var valid3 = true;
333
- }
334
- if (valid3) {
335
- if (data1.CompilerWarningsAsErrors !== void 0) {
336
- let data4 = data1.CompilerWarningsAsErrors;
337
- const _errs13 = errors;
338
- if (errors === _errs13) {
339
- if (typeof data4 === "string") {
340
- if (!pattern0.test(data4)) {
341
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CompilerWarningsAsErrors", schemaPath: "#/definitions/Options/properties/CompilerWarningsAsErrors/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
342
- return false;
343
- }
344
- }
345
- else {
346
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CompilerWarningsAsErrors", schemaPath: "#/definitions/Options/properties/CompilerWarningsAsErrors/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
347
- return false;
348
- }
349
- }
350
- var valid3 = _errs13 === errors;
351
- }
352
- else {
353
- var valid3 = true;
354
- }
355
- if (valid3) {
356
- if (data1.WarnDeprecatedCode !== void 0) {
357
- let data5 = data1.WarnDeprecatedCode;
358
- const _errs15 = errors;
359
- if (errors === _errs15) {
360
- if (typeof data5 === "string") {
361
- if (!pattern0.test(data5)) {
362
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/WarnDeprecatedCode", schemaPath: "#/definitions/Options/properties/WarnDeprecatedCode/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
363
- return false;
364
- }
365
- }
366
- else {
367
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/WarnDeprecatedCode", schemaPath: "#/definitions/Options/properties/WarnDeprecatedCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
368
- return false;
369
- }
370
- }
371
- var valid3 = _errs15 === errors;
372
- }
373
- else {
374
- var valid3 = true;
375
- }
376
- if (valid3) {
377
- if (data1.CheckFilenameConventions !== void 0) {
378
- let data6 = data1.CheckFilenameConventions;
379
- const _errs17 = errors;
380
- if (errors === _errs17) {
381
- if (typeof data6 === "string") {
382
- if (!pattern0.test(data6)) {
383
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CheckFilenameConventions", schemaPath: "#/definitions/Options/properties/CheckFilenameConventions/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
384
- return false;
385
- }
386
- }
387
- else {
388
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CheckFilenameConventions", schemaPath: "#/definitions/Options/properties/CheckFilenameConventions/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
389
- return false;
390
- }
391
- }
392
- var valid3 = _errs17 === errors;
393
- }
394
- else {
395
- var valid3 = true;
396
- }
397
- if (valid3) {
398
- if (data1.SkipMetadataFiles !== void 0) {
399
- let data7 = data1.SkipMetadataFiles;
400
- const _errs19 = errors;
401
- if (errors === _errs19) {
402
- if (typeof data7 === "string") {
403
- if (!pattern0.test(data7)) {
404
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SkipMetadataFiles", schemaPath: "#/definitions/Options/properties/SkipMetadataFiles/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
405
- return false;
406
- }
407
- }
408
- else {
409
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SkipMetadataFiles", schemaPath: "#/definitions/Options/properties/SkipMetadataFiles/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
410
- return false;
411
- }
412
- }
413
- var valid3 = _errs19 === errors;
414
- }
415
- else {
416
- var valid3 = true;
417
- }
418
- if (valid3) {
419
- if (data1.ProjectType !== void 0) {
420
- let data8 = data1.ProjectType;
421
- const _errs21 = errors;
422
- if (errors === _errs21) {
423
- if (typeof data8 === "string") {
424
- if (!pattern4.test(data8)) {
425
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/ProjectType", schemaPath: "#/definitions/Options/properties/ProjectType/pattern", keyword: "pattern", params: { pattern: "^(keyboard|lexicalmodel)$" }, message: 'must match pattern "^(keyboard|lexicalmodel)$"' }];
426
- return false;
427
- }
428
- }
429
- else {
430
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/ProjectType", schemaPath: "#/definitions/Options/properties/ProjectType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
431
- return false;
432
- }
433
- }
434
- var valid3 = _errs21 === errors;
435
- }
436
- else {
437
- var valid3 = true;
438
- }
439
- if (valid3) {
440
- if (data1.Version !== void 0) {
441
- let data9 = data1.Version;
442
- const _errs23 = errors;
443
- if (errors === _errs23) {
444
- if (typeof data9 === "string") {
445
- if (!pattern5.test(data9)) {
446
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/Version", schemaPath: "#/definitions/Options/properties/Version/pattern", keyword: "pattern", params: { pattern: "^(1\\.0|2\\.0)$" }, message: 'must match pattern "^(1\\.0|2\\.0)$"' }];
447
- return false;
448
- }
449
- }
450
- else {
451
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/Version", schemaPath: "#/definitions/Options/properties/Version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
452
- return false;
453
- }
454
- }
455
- var valid3 = _errs23 === errors;
456
- }
457
- else {
458
- var valid3 = true;
459
- }
460
- }
461
- }
462
- }
463
- }
464
- }
465
- }
466
- }
467
- }
468
- }
469
- else {
470
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options", schemaPath: "#/definitions/Options/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
471
- return false;
472
- }
473
- }
474
- var valid1 = _errs5 === errors;
475
- }
476
- else {
477
- var valid1 = true;
478
- }
479
- if (valid1) {
480
- if (data0.Files !== void 0) {
481
- const _errs25 = errors;
482
- if (!validate21(data0.Files, { instancePath: instancePath + "/KeymanDeveloperProject/Files", parentData: data0, parentDataProperty: "Files", rootData })) {
483
- vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
484
- errors = vErrors.length;
485
- }
486
- var valid1 = _errs25 === errors;
487
- }
488
- else {
489
- var valid1 = true;
490
- }
491
- }
492
- }
493
- }
494
- }
495
- else {
496
- validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
497
- return false;
498
- }
499
- }
500
- }
501
- }
502
- }
503
- }
504
- else {
505
- validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
506
- return false;
507
- }
508
- }
509
- validate20.errors = vErrors;
510
- return errors === 0;
511
- }
512
- }
513
- });
514
- export default require_kpj_schema_validator();
515
- //# debugId=35145ab0-1eff-5acf-93cd-7e995e22e5e1
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c34e1222-fe7c-57fc-8528-6ede3201e35b")}catch(e){}}();
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __commonJS = (cb, mod) => function __require() {
5
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
+ };
7
+ // obj/schemas/kpj.schema.validator.cjs
8
+ var require_kpj_schema_validator = __commonJS({
9
+ "obj/schemas/kpj.schema.validator.cjs"(exports, module) {
10
+ module.exports = validate20;
11
+ module.exports.default = validate20;
12
+ var pattern0 = new RegExp("^(True|False)$", "u");
13
+ var pattern4 = new RegExp("^(keyboard|lexicalmodel)$", "u");
14
+ var pattern5 = new RegExp("^(1\\.0|2\\.0)$", "u");
15
+ function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
16
+ let vErrors = null;
17
+ let errors = 0;
18
+ if (errors === 0) {
19
+ if (data && typeof data == "object" && !Array.isArray(data)) {
20
+ let missing0;
21
+ if (data.Filename === void 0 && (missing0 = "Filename")) {
22
+ validate22.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
23
+ return false;
24
+ }
25
+ else {
26
+ const _errs1 = errors;
27
+ for (const key0 in data) {
28
+ if (!(key0 === "ID" || key0 === "Filename" || key0 === "Filepath" || key0 === "FileVersion" || key0 === "FileType" || key0 === "Details" || key0 === "ParentFileID")) {
29
+ validate22.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
30
+ return false;
31
+ break;
32
+ }
33
+ }
34
+ if (_errs1 === errors) {
35
+ if (data.ID !== void 0) {
36
+ const _errs2 = errors;
37
+ if (typeof data.ID !== "string") {
38
+ validate22.errors = [{ instancePath: instancePath + "/ID", schemaPath: "#/properties/ID/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
39
+ return false;
40
+ }
41
+ var valid0 = _errs2 === errors;
42
+ }
43
+ else {
44
+ var valid0 = true;
45
+ }
46
+ if (valid0) {
47
+ if (data.Filename !== void 0) {
48
+ const _errs4 = errors;
49
+ if (typeof data.Filename !== "string") {
50
+ validate22.errors = [{ instancePath: instancePath + "/Filename", schemaPath: "#/properties/Filename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
51
+ return false;
52
+ }
53
+ var valid0 = _errs4 === errors;
54
+ }
55
+ else {
56
+ var valid0 = true;
57
+ }
58
+ if (valid0) {
59
+ if (data.Filepath !== void 0) {
60
+ const _errs6 = errors;
61
+ if (typeof data.Filepath !== "string") {
62
+ validate22.errors = [{ instancePath: instancePath + "/Filepath", schemaPath: "#/properties/Filepath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
63
+ return false;
64
+ }
65
+ var valid0 = _errs6 === errors;
66
+ }
67
+ else {
68
+ var valid0 = true;
69
+ }
70
+ if (valid0) {
71
+ if (data.FileVersion !== void 0) {
72
+ const _errs8 = errors;
73
+ if (typeof data.FileVersion !== "string") {
74
+ validate22.errors = [{ instancePath: instancePath + "/FileVersion", schemaPath: "#/properties/FileVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
75
+ return false;
76
+ }
77
+ var valid0 = _errs8 === errors;
78
+ }
79
+ else {
80
+ var valid0 = true;
81
+ }
82
+ if (valid0) {
83
+ if (data.FileType !== void 0) {
84
+ const _errs10 = errors;
85
+ if (typeof data.FileType !== "string") {
86
+ validate22.errors = [{ instancePath: instancePath + "/FileType", schemaPath: "#/properties/FileType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
87
+ return false;
88
+ }
89
+ var valid0 = _errs10 === errors;
90
+ }
91
+ else {
92
+ var valid0 = true;
93
+ }
94
+ if (valid0) {
95
+ if (data.Details !== void 0) {
96
+ let data5 = data.Details;
97
+ const _errs12 = errors;
98
+ const _errs13 = errors;
99
+ if (errors === _errs13) {
100
+ if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
101
+ const _errs15 = errors;
102
+ for (const key1 in data5) {
103
+ if (!(key1 === "Name" || key1 === "Copyright" || key1 === "Message" || key1 === "Version")) {
104
+ validate22.errors = [{ instancePath: instancePath + "/Details", schemaPath: "#/definitions/FileDetails/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
105
+ return false;
106
+ break;
107
+ }
108
+ }
109
+ if (_errs15 === errors) {
110
+ if (data5.Name !== void 0) {
111
+ const _errs16 = errors;
112
+ if (typeof data5.Name !== "string") {
113
+ validate22.errors = [{ instancePath: instancePath + "/Details/Name", schemaPath: "#/definitions/FileDetails/properties/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
114
+ return false;
115
+ }
116
+ var valid2 = _errs16 === errors;
117
+ }
118
+ else {
119
+ var valid2 = true;
120
+ }
121
+ if (valid2) {
122
+ if (data5.Copyright !== void 0) {
123
+ const _errs18 = errors;
124
+ if (typeof data5.Copyright !== "string") {
125
+ validate22.errors = [{ instancePath: instancePath + "/Details/Copyright", schemaPath: "#/definitions/FileDetails/properties/Copyright/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
126
+ return false;
127
+ }
128
+ var valid2 = _errs18 === errors;
129
+ }
130
+ else {
131
+ var valid2 = true;
132
+ }
133
+ if (valid2) {
134
+ if (data5.Message !== void 0) {
135
+ const _errs20 = errors;
136
+ if (typeof data5.Message !== "string") {
137
+ validate22.errors = [{ instancePath: instancePath + "/Details/Message", schemaPath: "#/definitions/FileDetails/properties/Message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
138
+ return false;
139
+ }
140
+ var valid2 = _errs20 === errors;
141
+ }
142
+ else {
143
+ var valid2 = true;
144
+ }
145
+ if (valid2) {
146
+ if (data5.Version !== void 0) {
147
+ const _errs22 = errors;
148
+ if (typeof data5.Version !== "string") {
149
+ validate22.errors = [{ instancePath: instancePath + "/Details/Version", schemaPath: "#/definitions/FileDetails/properties/Version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
150
+ return false;
151
+ }
152
+ var valid2 = _errs22 === errors;
153
+ }
154
+ else {
155
+ var valid2 = true;
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ else {
163
+ validate22.errors = [{ instancePath: instancePath + "/Details", schemaPath: "#/definitions/FileDetails/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
164
+ return false;
165
+ }
166
+ }
167
+ var valid0 = _errs12 === errors;
168
+ }
169
+ else {
170
+ var valid0 = true;
171
+ }
172
+ if (valid0) {
173
+ if (data.ParentFileID !== void 0) {
174
+ const _errs24 = errors;
175
+ if (typeof data.ParentFileID !== "string") {
176
+ validate22.errors = [{ instancePath: instancePath + "/ParentFileID", schemaPath: "#/properties/ParentFileID/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
177
+ return false;
178
+ }
179
+ var valid0 = _errs24 === errors;
180
+ }
181
+ else {
182
+ var valid0 = true;
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+ else {
194
+ validate22.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
195
+ return false;
196
+ }
197
+ }
198
+ validate22.errors = vErrors;
199
+ return errors === 0;
200
+ }
201
+ function validate21(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
202
+ let vErrors = null;
203
+ let errors = 0;
204
+ if (errors === 0) {
205
+ if (data && typeof data == "object" && !Array.isArray(data)) {
206
+ let missing0;
207
+ if (data.File === void 0 && (missing0 = "File")) {
208
+ validate21.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
209
+ return false;
210
+ }
211
+ else {
212
+ const _errs1 = errors;
213
+ for (const key0 in data) {
214
+ if (!(key0 === "File")) {
215
+ validate21.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
216
+ return false;
217
+ break;
218
+ }
219
+ }
220
+ if (_errs1 === errors) {
221
+ if (data.File !== void 0) {
222
+ let data0 = data.File;
223
+ const _errs2 = errors;
224
+ if (errors === _errs2) {
225
+ if (Array.isArray(data0)) {
226
+ var valid1 = true;
227
+ const len0 = data0.length;
228
+ for (let i0 = 0; i0 < len0; i0++) {
229
+ const _errs4 = errors;
230
+ if (!validate22(data0[i0], { instancePath: instancePath + "/File/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
231
+ vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
232
+ errors = vErrors.length;
233
+ }
234
+ var valid1 = _errs4 === errors;
235
+ if (!valid1) {
236
+ break;
237
+ }
238
+ }
239
+ }
240
+ else {
241
+ validate21.errors = [{ instancePath: instancePath + "/File", schemaPath: "#/properties/File/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
242
+ return false;
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ else {
250
+ validate21.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
251
+ return false;
252
+ }
253
+ }
254
+ validate21.errors = vErrors;
255
+ return errors === 0;
256
+ }
257
+ function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
258
+ let vErrors = null;
259
+ let errors = 0;
260
+ if (errors === 0) {
261
+ if (data && typeof data == "object" && !Array.isArray(data)) {
262
+ let missing0;
263
+ if (data.KeymanDeveloperProject === void 0 && (missing0 = "KeymanDeveloperProject")) {
264
+ validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
265
+ return false;
266
+ }
267
+ else {
268
+ const _errs1 = errors;
269
+ for (const key0 in data) {
270
+ if (!(key0 === "KeymanDeveloperProject")) {
271
+ validate20.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
272
+ return false;
273
+ break;
274
+ }
275
+ }
276
+ if (_errs1 === errors) {
277
+ if (data.KeymanDeveloperProject !== void 0) {
278
+ let data0 = data.KeymanDeveloperProject;
279
+ const _errs2 = errors;
280
+ if (errors === _errs2) {
281
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
282
+ let missing1;
283
+ if (data0.Options === void 0 && (missing1 = "Options")) {
284
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
285
+ return false;
286
+ }
287
+ else {
288
+ const _errs4 = errors;
289
+ for (const key1 in data0) {
290
+ if (!(key1 === "Options" || key1 === "Files")) {
291
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
292
+ return false;
293
+ break;
294
+ }
295
+ }
296
+ if (_errs4 === errors) {
297
+ if (data0.Options !== void 0) {
298
+ let data1 = data0.Options;
299
+ const _errs5 = errors;
300
+ const _errs6 = errors;
301
+ if (errors === _errs6) {
302
+ if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
303
+ const _errs8 = errors;
304
+ for (const key2 in data1) {
305
+ if (!(key2 === "BuildPath" || key2 === "SourcePath" || key2 === "CompilerWarningsAsErrors" || key2 === "WarnDeprecatedCode" || key2 === "CheckFilenameConventions" || key2 === "SkipMetadataFiles" || key2 === "ProjectType" || key2 === "Version")) {
306
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options", schemaPath: "#/definitions/Options/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
307
+ return false;
308
+ break;
309
+ }
310
+ }
311
+ if (_errs8 === errors) {
312
+ if (data1.BuildPath !== void 0) {
313
+ const _errs9 = errors;
314
+ if (typeof data1.BuildPath !== "string") {
315
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/BuildPath", schemaPath: "#/definitions/Options/properties/BuildPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
316
+ return false;
317
+ }
318
+ var valid3 = _errs9 === errors;
319
+ }
320
+ else {
321
+ var valid3 = true;
322
+ }
323
+ if (valid3) {
324
+ if (data1.SourcePath !== void 0) {
325
+ const _errs11 = errors;
326
+ if (typeof data1.SourcePath !== "string") {
327
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SourcePath", schemaPath: "#/definitions/Options/properties/SourcePath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
328
+ return false;
329
+ }
330
+ var valid3 = _errs11 === errors;
331
+ }
332
+ else {
333
+ var valid3 = true;
334
+ }
335
+ if (valid3) {
336
+ if (data1.CompilerWarningsAsErrors !== void 0) {
337
+ let data4 = data1.CompilerWarningsAsErrors;
338
+ const _errs13 = errors;
339
+ if (errors === _errs13) {
340
+ if (typeof data4 === "string") {
341
+ if (!pattern0.test(data4)) {
342
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CompilerWarningsAsErrors", schemaPath: "#/definitions/Options/properties/CompilerWarningsAsErrors/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
343
+ return false;
344
+ }
345
+ }
346
+ else {
347
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CompilerWarningsAsErrors", schemaPath: "#/definitions/Options/properties/CompilerWarningsAsErrors/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
348
+ return false;
349
+ }
350
+ }
351
+ var valid3 = _errs13 === errors;
352
+ }
353
+ else {
354
+ var valid3 = true;
355
+ }
356
+ if (valid3) {
357
+ if (data1.WarnDeprecatedCode !== void 0) {
358
+ let data5 = data1.WarnDeprecatedCode;
359
+ const _errs15 = errors;
360
+ if (errors === _errs15) {
361
+ if (typeof data5 === "string") {
362
+ if (!pattern0.test(data5)) {
363
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/WarnDeprecatedCode", schemaPath: "#/definitions/Options/properties/WarnDeprecatedCode/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
364
+ return false;
365
+ }
366
+ }
367
+ else {
368
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/WarnDeprecatedCode", schemaPath: "#/definitions/Options/properties/WarnDeprecatedCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
369
+ return false;
370
+ }
371
+ }
372
+ var valid3 = _errs15 === errors;
373
+ }
374
+ else {
375
+ var valid3 = true;
376
+ }
377
+ if (valid3) {
378
+ if (data1.CheckFilenameConventions !== void 0) {
379
+ let data6 = data1.CheckFilenameConventions;
380
+ const _errs17 = errors;
381
+ if (errors === _errs17) {
382
+ if (typeof data6 === "string") {
383
+ if (!pattern0.test(data6)) {
384
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CheckFilenameConventions", schemaPath: "#/definitions/Options/properties/CheckFilenameConventions/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
385
+ return false;
386
+ }
387
+ }
388
+ else {
389
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/CheckFilenameConventions", schemaPath: "#/definitions/Options/properties/CheckFilenameConventions/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
390
+ return false;
391
+ }
392
+ }
393
+ var valid3 = _errs17 === errors;
394
+ }
395
+ else {
396
+ var valid3 = true;
397
+ }
398
+ if (valid3) {
399
+ if (data1.SkipMetadataFiles !== void 0) {
400
+ let data7 = data1.SkipMetadataFiles;
401
+ const _errs19 = errors;
402
+ if (errors === _errs19) {
403
+ if (typeof data7 === "string") {
404
+ if (!pattern0.test(data7)) {
405
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SkipMetadataFiles", schemaPath: "#/definitions/Options/properties/SkipMetadataFiles/pattern", keyword: "pattern", params: { pattern: "^(True|False)$" }, message: 'must match pattern "^(True|False)$"' }];
406
+ return false;
407
+ }
408
+ }
409
+ else {
410
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/SkipMetadataFiles", schemaPath: "#/definitions/Options/properties/SkipMetadataFiles/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
411
+ return false;
412
+ }
413
+ }
414
+ var valid3 = _errs19 === errors;
415
+ }
416
+ else {
417
+ var valid3 = true;
418
+ }
419
+ if (valid3) {
420
+ if (data1.ProjectType !== void 0) {
421
+ let data8 = data1.ProjectType;
422
+ const _errs21 = errors;
423
+ if (errors === _errs21) {
424
+ if (typeof data8 === "string") {
425
+ if (!pattern4.test(data8)) {
426
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/ProjectType", schemaPath: "#/definitions/Options/properties/ProjectType/pattern", keyword: "pattern", params: { pattern: "^(keyboard|lexicalmodel)$" }, message: 'must match pattern "^(keyboard|lexicalmodel)$"' }];
427
+ return false;
428
+ }
429
+ }
430
+ else {
431
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/ProjectType", schemaPath: "#/definitions/Options/properties/ProjectType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
432
+ return false;
433
+ }
434
+ }
435
+ var valid3 = _errs21 === errors;
436
+ }
437
+ else {
438
+ var valid3 = true;
439
+ }
440
+ if (valid3) {
441
+ if (data1.Version !== void 0) {
442
+ let data9 = data1.Version;
443
+ const _errs23 = errors;
444
+ if (errors === _errs23) {
445
+ if (typeof data9 === "string") {
446
+ if (!pattern5.test(data9)) {
447
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/Version", schemaPath: "#/definitions/Options/properties/Version/pattern", keyword: "pattern", params: { pattern: "^(1\\.0|2\\.0)$" }, message: 'must match pattern "^(1\\.0|2\\.0)$"' }];
448
+ return false;
449
+ }
450
+ }
451
+ else {
452
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options/Version", schemaPath: "#/definitions/Options/properties/Version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
453
+ return false;
454
+ }
455
+ }
456
+ var valid3 = _errs23 === errors;
457
+ }
458
+ else {
459
+ var valid3 = true;
460
+ }
461
+ }
462
+ }
463
+ }
464
+ }
465
+ }
466
+ }
467
+ }
468
+ }
469
+ }
470
+ else {
471
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject/Options", schemaPath: "#/definitions/Options/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
472
+ return false;
473
+ }
474
+ }
475
+ var valid1 = _errs5 === errors;
476
+ }
477
+ else {
478
+ var valid1 = true;
479
+ }
480
+ if (valid1) {
481
+ if (data0.Files !== void 0) {
482
+ const _errs25 = errors;
483
+ if (!validate21(data0.Files, { instancePath: instancePath + "/KeymanDeveloperProject/Files", parentData: data0, parentDataProperty: "Files", rootData })) {
484
+ vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
485
+ errors = vErrors.length;
486
+ }
487
+ var valid1 = _errs25 === errors;
488
+ }
489
+ else {
490
+ var valid1 = true;
491
+ }
492
+ }
493
+ }
494
+ }
495
+ }
496
+ else {
497
+ validate20.errors = [{ instancePath: instancePath + "/KeymanDeveloperProject", schemaPath: "#/properties/KeymanDeveloperProject/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
498
+ return false;
499
+ }
500
+ }
501
+ }
502
+ }
503
+ }
504
+ }
505
+ else {
506
+ validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
507
+ return false;
508
+ }
509
+ }
510
+ validate20.errors = vErrors;
511
+ return errors === 0;
512
+ }
513
+ }
514
+ });
515
+ export default require_kpj_schema_validator();
516
516
  //# sourceMappingURL=kpj.schema.validator.mjs.map
517
+ //# debugId=c34e1222-fe7c-57fc-8528-6ede3201e35b