@cardenelabs/dragon 0.42.1 → 0.43.0
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/README.md +34 -1
- package/dist/cli.cjs +1732 -501
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1732 -501
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +1635 -496
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +1635 -496
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +1651 -417
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -3
- package/dist/index.d.ts +66 -3
- package/dist/index.js +1651 -417
- package/dist/index.js.map +1 -1
- package/dist/{ink-B8EZL7JV.d.cts → ink-B6s_SMXG.d.cts} +23 -3
- package/dist/{ink-B8EZL7JV.d.ts → ink-B6s_SMXG.d.ts} +23 -3
- package/dist/node.cjs +1102 -475
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1102 -475
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -2
- package/package.json +1 -1
- package/src/export/fonts.ts +13 -6
- package/src/index.ts +4 -1
- package/src/layout/tree.ts +458 -0
- package/src/look/values.ts +42 -0
- package/src/messages.ts +34 -2
- package/src/parser.ts +89 -1
- package/src/printer.ts +6 -1
- package/src/render/icons.ts +2 -0
- package/src/render/svg.ts +41 -3
- package/src/render/tree.ts +164 -0
- package/src/schema.ts +27 -3
- package/src/schemas/diagram.schema.json +79 -14
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +2 -2
- package/src/words.ts +12 -2
package/dist/node.cjs
CHANGED
|
@@ -77,7 +77,7 @@ function ucs2length(str) {
|
|
|
77
77
|
return length;
|
|
78
78
|
}
|
|
79
79
|
var validate_diagram_default = validate10;
|
|
80
|
-
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" } }};
|
|
80
|
+
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" } }};
|
|
81
81
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
82
82
|
let vErrors = null;
|
|
83
83
|
let errors = 0;
|
|
@@ -137,34 +137,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
const _errs8 = errors;
|
|
141
|
+
const _errs9 = errors;
|
|
142
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
143
|
+
if (data2.type === void 0 && ("type")) {
|
|
144
|
+
const err3 = {};
|
|
145
|
+
if (vErrors === null) {
|
|
146
|
+
vErrors = [err3];
|
|
147
|
+
} else {
|
|
148
|
+
vErrors.push(err3);
|
|
149
|
+
}
|
|
150
|
+
errors++;
|
|
151
|
+
} else {
|
|
152
|
+
if (data2.type !== void 0) {
|
|
153
|
+
let data4 = data2.type;
|
|
154
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
155
|
+
const err4 = {};
|
|
156
|
+
if (vErrors === null) {
|
|
157
|
+
vErrors = [err4];
|
|
158
|
+
} else {
|
|
159
|
+
vErrors.push(err4);
|
|
160
|
+
}
|
|
161
|
+
errors++;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
var valid9 = _errs9 === errors;
|
|
167
|
+
if (valid9) {
|
|
168
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
169
|
+
if (vErrors === null) {
|
|
170
|
+
vErrors = [err5];
|
|
171
|
+
} else {
|
|
172
|
+
vErrors.push(err5);
|
|
173
|
+
}
|
|
174
|
+
errors++;
|
|
175
|
+
} else {
|
|
176
|
+
errors = _errs8;
|
|
177
|
+
if (vErrors !== null) {
|
|
178
|
+
if (_errs8) {
|
|
179
|
+
vErrors.length = _errs8;
|
|
180
|
+
} else {
|
|
181
|
+
vErrors = null;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
140
185
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
141
186
|
if (data2.type !== void 0) {
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
if (!(
|
|
146
|
-
const
|
|
187
|
+
let data5 = data2.type;
|
|
188
|
+
const _errs13 = errors;
|
|
189
|
+
const _errs14 = errors;
|
|
190
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
191
|
+
const err6 = {};
|
|
147
192
|
if (vErrors === null) {
|
|
148
|
-
vErrors = [
|
|
193
|
+
vErrors = [err6];
|
|
149
194
|
} else {
|
|
150
|
-
vErrors.push(
|
|
195
|
+
vErrors.push(err6);
|
|
151
196
|
}
|
|
152
197
|
errors++;
|
|
153
198
|
}
|
|
154
|
-
var
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
199
|
+
var valid13 = _errs14 === errors;
|
|
200
|
+
if (valid13) {
|
|
201
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
157
202
|
if (vErrors === null) {
|
|
158
|
-
vErrors = [
|
|
203
|
+
vErrors = [err7];
|
|
159
204
|
} else {
|
|
160
|
-
vErrors.push(
|
|
205
|
+
vErrors.push(err7);
|
|
161
206
|
}
|
|
162
207
|
errors++;
|
|
163
208
|
} else {
|
|
164
|
-
errors =
|
|
209
|
+
errors = _errs13;
|
|
165
210
|
if (vErrors !== null) {
|
|
166
|
-
if (
|
|
167
|
-
vErrors.length =
|
|
211
|
+
if (_errs13) {
|
|
212
|
+
vErrors.length = _errs13;
|
|
168
213
|
} else {
|
|
169
214
|
vErrors = null;
|
|
170
215
|
}
|
|
@@ -172,29 +217,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
172
217
|
}
|
|
173
218
|
}
|
|
174
219
|
if (data2.at !== void 0) {
|
|
175
|
-
const
|
|
220
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
176
221
|
if (vErrors === null) {
|
|
177
|
-
vErrors = [
|
|
222
|
+
vErrors = [err8];
|
|
178
223
|
} else {
|
|
179
|
-
vErrors.push(
|
|
224
|
+
vErrors.push(err8);
|
|
180
225
|
}
|
|
181
226
|
errors++;
|
|
182
227
|
}
|
|
183
228
|
if (data2.into !== void 0) {
|
|
184
|
-
const
|
|
229
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
185
230
|
if (vErrors === null) {
|
|
186
|
-
vErrors = [
|
|
231
|
+
vErrors = [err9];
|
|
187
232
|
} else {
|
|
188
|
-
vErrors.push(
|
|
233
|
+
vErrors.push(err9);
|
|
189
234
|
}
|
|
190
235
|
errors++;
|
|
191
236
|
}
|
|
192
237
|
if (data2.color !== void 0) {
|
|
193
|
-
const
|
|
238
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
194
239
|
if (vErrors === null) {
|
|
195
|
-
vErrors = [
|
|
240
|
+
vErrors = [err10];
|
|
196
241
|
} else {
|
|
197
|
-
vErrors.push(
|
|
242
|
+
vErrors.push(err10);
|
|
198
243
|
}
|
|
199
244
|
errors++;
|
|
200
245
|
}
|
|
@@ -280,35 +325,313 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
280
325
|
if (_errs3) {
|
|
281
326
|
vErrors.length = _errs3;
|
|
282
327
|
} else {
|
|
283
|
-
vErrors = null;
|
|
328
|
+
vErrors = null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
const _errs8 = errors;
|
|
333
|
+
const _errs9 = errors;
|
|
334
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
335
|
+
if (data2.type === void 0 && ("type")) {
|
|
336
|
+
const err3 = {};
|
|
337
|
+
if (vErrors === null) {
|
|
338
|
+
vErrors = [err3];
|
|
339
|
+
} else {
|
|
340
|
+
vErrors.push(err3);
|
|
341
|
+
}
|
|
342
|
+
errors++;
|
|
343
|
+
} else {
|
|
344
|
+
if (data2.type !== void 0) {
|
|
345
|
+
let data4 = data2.type;
|
|
346
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
347
|
+
const err4 = {};
|
|
348
|
+
if (vErrors === null) {
|
|
349
|
+
vErrors = [err4];
|
|
350
|
+
} else {
|
|
351
|
+
vErrors.push(err4);
|
|
352
|
+
}
|
|
353
|
+
errors++;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
var valid9 = _errs9 === errors;
|
|
359
|
+
if (valid9) {
|
|
360
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
361
|
+
if (vErrors === null) {
|
|
362
|
+
vErrors = [err5];
|
|
363
|
+
} else {
|
|
364
|
+
vErrors.push(err5);
|
|
365
|
+
}
|
|
366
|
+
errors++;
|
|
367
|
+
} else {
|
|
368
|
+
errors = _errs8;
|
|
369
|
+
if (vErrors !== null) {
|
|
370
|
+
if (_errs8) {
|
|
371
|
+
vErrors.length = _errs8;
|
|
372
|
+
} else {
|
|
373
|
+
vErrors = null;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
378
|
+
if (data2.at !== void 0) {
|
|
379
|
+
const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
380
|
+
if (vErrors === null) {
|
|
381
|
+
vErrors = [err6];
|
|
382
|
+
} else {
|
|
383
|
+
vErrors.push(err6);
|
|
384
|
+
}
|
|
385
|
+
errors++;
|
|
386
|
+
}
|
|
387
|
+
if (data2.into !== void 0) {
|
|
388
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
389
|
+
if (vErrors === null) {
|
|
390
|
+
vErrors = [err7];
|
|
391
|
+
} else {
|
|
392
|
+
vErrors.push(err7);
|
|
393
|
+
}
|
|
394
|
+
errors++;
|
|
395
|
+
}
|
|
396
|
+
if (data2.color !== void 0) {
|
|
397
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
398
|
+
if (vErrors === null) {
|
|
399
|
+
vErrors = [err8];
|
|
400
|
+
} else {
|
|
401
|
+
vErrors.push(err8);
|
|
402
|
+
}
|
|
403
|
+
errors++;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
validate17.errors = vErrors;
|
|
413
|
+
return errors === 0;
|
|
414
|
+
}
|
|
415
|
+
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
416
|
+
let vErrors = null;
|
|
417
|
+
let errors = 0;
|
|
418
|
+
if (Array.isArray(data)) {
|
|
419
|
+
const len0 = data.length;
|
|
420
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
421
|
+
let data0 = data[i0];
|
|
422
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
423
|
+
if (data0.events !== void 0) {
|
|
424
|
+
let data1 = data0.events;
|
|
425
|
+
if (Array.isArray(data1)) {
|
|
426
|
+
const len1 = data1.length;
|
|
427
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
428
|
+
let data2 = data1[i1];
|
|
429
|
+
const _errs4 = errors;
|
|
430
|
+
const _errs5 = errors;
|
|
431
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
432
|
+
if (data2.type === void 0 && ("type")) {
|
|
433
|
+
const err0 = {};
|
|
434
|
+
if (vErrors === null) {
|
|
435
|
+
vErrors = [err0];
|
|
436
|
+
} else {
|
|
437
|
+
vErrors.push(err0);
|
|
438
|
+
}
|
|
439
|
+
errors++;
|
|
440
|
+
} else {
|
|
441
|
+
if (data2.type !== void 0) {
|
|
442
|
+
let data3 = data2.type;
|
|
443
|
+
if (!(data3 === "leaf" || data3 === "node")) {
|
|
444
|
+
const err1 = {};
|
|
445
|
+
if (vErrors === null) {
|
|
446
|
+
vErrors = [err1];
|
|
447
|
+
} else {
|
|
448
|
+
vErrors.push(err1);
|
|
449
|
+
}
|
|
450
|
+
errors++;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
var valid6 = _errs5 === errors;
|
|
456
|
+
if (valid6) {
|
|
457
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
458
|
+
if (vErrors === null) {
|
|
459
|
+
vErrors = [err2];
|
|
460
|
+
} else {
|
|
461
|
+
vErrors.push(err2);
|
|
462
|
+
}
|
|
463
|
+
errors++;
|
|
464
|
+
} else {
|
|
465
|
+
errors = _errs4;
|
|
466
|
+
if (vErrors !== null) {
|
|
467
|
+
if (_errs4) {
|
|
468
|
+
vErrors.length = _errs4;
|
|
469
|
+
} else {
|
|
470
|
+
vErrors = null;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
475
|
+
if (data2.type !== void 0) {
|
|
476
|
+
let data4 = data2.type;
|
|
477
|
+
const _errs9 = errors;
|
|
478
|
+
const _errs10 = errors;
|
|
479
|
+
if (!(data4 === "commit" || data4 === "branch")) {
|
|
480
|
+
const err3 = {};
|
|
481
|
+
if (vErrors === null) {
|
|
482
|
+
vErrors = [err3];
|
|
483
|
+
} else {
|
|
484
|
+
vErrors.push(err3);
|
|
485
|
+
}
|
|
486
|
+
errors++;
|
|
487
|
+
}
|
|
488
|
+
var valid10 = _errs10 === errors;
|
|
489
|
+
if (valid10) {
|
|
490
|
+
const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
491
|
+
if (vErrors === null) {
|
|
492
|
+
vErrors = [err4];
|
|
493
|
+
} else {
|
|
494
|
+
vErrors.push(err4);
|
|
495
|
+
}
|
|
496
|
+
errors++;
|
|
497
|
+
} else {
|
|
498
|
+
errors = _errs9;
|
|
499
|
+
if (vErrors !== null) {
|
|
500
|
+
if (_errs9) {
|
|
501
|
+
vErrors.length = _errs9;
|
|
502
|
+
} else {
|
|
503
|
+
vErrors = null;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
validate20.errors = vErrors;
|
|
516
|
+
return errors === 0;
|
|
517
|
+
}
|
|
518
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
519
|
+
let vErrors = null;
|
|
520
|
+
let errors = 0;
|
|
521
|
+
if (Array.isArray(data)) {
|
|
522
|
+
const len0 = data.length;
|
|
523
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
524
|
+
let data0 = data[i0];
|
|
525
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
526
|
+
if (data0.events !== void 0) {
|
|
527
|
+
let data1 = data0.events;
|
|
528
|
+
if (Array.isArray(data1)) {
|
|
529
|
+
const len1 = data1.length;
|
|
530
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
531
|
+
let data2 = data1[i1];
|
|
532
|
+
const _errs3 = errors;
|
|
533
|
+
const _errs4 = errors;
|
|
534
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
535
|
+
if (data2.type === void 0 && ("type")) {
|
|
536
|
+
const err0 = {};
|
|
537
|
+
if (vErrors === null) {
|
|
538
|
+
vErrors = [err0];
|
|
539
|
+
} else {
|
|
540
|
+
vErrors.push(err0);
|
|
541
|
+
}
|
|
542
|
+
errors++;
|
|
543
|
+
} else {
|
|
544
|
+
if (data2.type !== void 0) {
|
|
545
|
+
let data3 = data2.type;
|
|
546
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
547
|
+
const err1 = {};
|
|
548
|
+
if (vErrors === null) {
|
|
549
|
+
vErrors = [err1];
|
|
550
|
+
} else {
|
|
551
|
+
vErrors.push(err1);
|
|
552
|
+
}
|
|
553
|
+
errors++;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
var valid5 = _errs4 === errors;
|
|
559
|
+
if (valid5) {
|
|
560
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
561
|
+
if (vErrors === null) {
|
|
562
|
+
vErrors = [err2];
|
|
563
|
+
} else {
|
|
564
|
+
vErrors.push(err2);
|
|
565
|
+
}
|
|
566
|
+
errors++;
|
|
567
|
+
} else {
|
|
568
|
+
errors = _errs3;
|
|
569
|
+
if (vErrors !== null) {
|
|
570
|
+
if (_errs3) {
|
|
571
|
+
vErrors.length = _errs3;
|
|
572
|
+
} else {
|
|
573
|
+
vErrors = null;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
578
|
+
if (data2.type !== void 0) {
|
|
579
|
+
let data4 = data2.type;
|
|
580
|
+
const _errs8 = errors;
|
|
581
|
+
const _errs9 = errors;
|
|
582
|
+
if (!(data4 === "commit" || data4 === "branch")) {
|
|
583
|
+
const err3 = {};
|
|
584
|
+
if (vErrors === null) {
|
|
585
|
+
vErrors = [err3];
|
|
586
|
+
} else {
|
|
587
|
+
vErrors.push(err3);
|
|
588
|
+
}
|
|
589
|
+
errors++;
|
|
590
|
+
}
|
|
591
|
+
var valid9 = _errs9 === errors;
|
|
592
|
+
if (valid9) {
|
|
593
|
+
const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
594
|
+
if (vErrors === null) {
|
|
595
|
+
vErrors = [err4];
|
|
596
|
+
} else {
|
|
597
|
+
vErrors.push(err4);
|
|
598
|
+
}
|
|
599
|
+
errors++;
|
|
600
|
+
} else {
|
|
601
|
+
errors = _errs8;
|
|
602
|
+
if (vErrors !== null) {
|
|
603
|
+
if (_errs8) {
|
|
604
|
+
vErrors.length = _errs8;
|
|
605
|
+
} else {
|
|
606
|
+
vErrors = null;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
284
609
|
}
|
|
285
610
|
}
|
|
286
|
-
}
|
|
287
|
-
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
288
611
|
if (data2.at !== void 0) {
|
|
289
|
-
const
|
|
612
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
290
613
|
if (vErrors === null) {
|
|
291
|
-
vErrors = [
|
|
614
|
+
vErrors = [err5];
|
|
292
615
|
} else {
|
|
293
|
-
vErrors.push(
|
|
616
|
+
vErrors.push(err5);
|
|
294
617
|
}
|
|
295
618
|
errors++;
|
|
296
619
|
}
|
|
297
620
|
if (data2.into !== void 0) {
|
|
298
|
-
const
|
|
621
|
+
const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
299
622
|
if (vErrors === null) {
|
|
300
|
-
vErrors = [
|
|
623
|
+
vErrors = [err6];
|
|
301
624
|
} else {
|
|
302
|
-
vErrors.push(
|
|
625
|
+
vErrors.push(err6);
|
|
303
626
|
}
|
|
304
627
|
errors++;
|
|
305
628
|
}
|
|
306
629
|
if (data2.color !== void 0) {
|
|
307
|
-
const
|
|
630
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
308
631
|
if (vErrors === null) {
|
|
309
|
-
vErrors = [
|
|
632
|
+
vErrors = [err7];
|
|
310
633
|
} else {
|
|
311
|
-
vErrors.push(
|
|
634
|
+
vErrors.push(err7);
|
|
312
635
|
}
|
|
313
636
|
errors++;
|
|
314
637
|
}
|
|
@@ -319,13 +642,13 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
319
642
|
}
|
|
320
643
|
}
|
|
321
644
|
}
|
|
322
|
-
|
|
645
|
+
validate22.errors = vErrors;
|
|
323
646
|
return errors === 0;
|
|
324
647
|
}
|
|
325
|
-
var
|
|
648
|
+
var schema57 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
326
649
|
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
327
650
|
var func3 = ucs2length;
|
|
328
|
-
function
|
|
651
|
+
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
329
652
|
let vErrors = null;
|
|
330
653
|
let errors = 0;
|
|
331
654
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -427,7 +750,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
427
750
|
if (data.color !== void 0) {
|
|
428
751
|
let data3 = data.color;
|
|
429
752
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
430
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
753
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
431
754
|
if (vErrors === null) {
|
|
432
755
|
vErrors = [err9];
|
|
433
756
|
} else {
|
|
@@ -467,11 +790,11 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
467
790
|
}
|
|
468
791
|
errors++;
|
|
469
792
|
}
|
|
470
|
-
|
|
793
|
+
validate27.errors = vErrors;
|
|
471
794
|
return errors === 0;
|
|
472
795
|
}
|
|
473
796
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
474
|
-
function
|
|
797
|
+
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
475
798
|
let vErrors = null;
|
|
476
799
|
let errors = 0;
|
|
477
800
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -573,7 +896,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
573
896
|
if (data.color !== void 0) {
|
|
574
897
|
let data3 = data.color;
|
|
575
898
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
576
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
899
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
577
900
|
if (vErrors === null) {
|
|
578
901
|
vErrors = [err9];
|
|
579
902
|
} else {
|
|
@@ -657,11 +980,11 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
657
980
|
}
|
|
658
981
|
errors++;
|
|
659
982
|
}
|
|
660
|
-
|
|
983
|
+
validate29.errors = vErrors;
|
|
661
984
|
return errors === 0;
|
|
662
985
|
}
|
|
663
986
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
664
|
-
function
|
|
987
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
665
988
|
let vErrors = null;
|
|
666
989
|
let errors = 0;
|
|
667
990
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -747,10 +1070,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
747
1070
|
}
|
|
748
1071
|
errors++;
|
|
749
1072
|
}
|
|
750
|
-
|
|
1073
|
+
validate32.errors = vErrors;
|
|
751
1074
|
return errors === 0;
|
|
752
1075
|
}
|
|
753
|
-
function
|
|
1076
|
+
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
754
1077
|
let vErrors = null;
|
|
755
1078
|
let errors = 0;
|
|
756
1079
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -864,8 +1187,8 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
864
1187
|
}
|
|
865
1188
|
const len1 = data3.length;
|
|
866
1189
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
867
|
-
if (!
|
|
868
|
-
vErrors = vErrors === null ?
|
|
1190
|
+
if (!validate32(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
1191
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
869
1192
|
errors = vErrors.length;
|
|
870
1193
|
}
|
|
871
1194
|
}
|
|
@@ -888,10 +1211,10 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
888
1211
|
}
|
|
889
1212
|
errors++;
|
|
890
1213
|
}
|
|
891
|
-
|
|
1214
|
+
validate31.errors = vErrors;
|
|
892
1215
|
return errors === 0;
|
|
893
1216
|
}
|
|
894
|
-
function
|
|
1217
|
+
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
895
1218
|
let vErrors = null;
|
|
896
1219
|
let errors = 0;
|
|
897
1220
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -977,13 +1300,13 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
977
1300
|
}
|
|
978
1301
|
errors++;
|
|
979
1302
|
}
|
|
980
|
-
|
|
1303
|
+
validate36.errors = vErrors;
|
|
981
1304
|
return errors === 0;
|
|
982
1305
|
}
|
|
983
|
-
var
|
|
1306
|
+
var schema80 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
|
|
984
1307
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
985
|
-
var
|
|
986
|
-
function
|
|
1308
|
+
var schema84 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
1309
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
987
1310
|
let vErrors = null;
|
|
988
1311
|
let errors = 0;
|
|
989
1312
|
const _errs1 = errors;
|
|
@@ -1109,7 +1432,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1109
1432
|
if (data.kind !== void 0) {
|
|
1110
1433
|
let data1 = data.kind;
|
|
1111
1434
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
1112
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
1435
|
+
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema84.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
1113
1436
|
if (vErrors === null) {
|
|
1114
1437
|
vErrors = [err8];
|
|
1115
1438
|
} else {
|
|
@@ -1149,10 +1472,10 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1149
1472
|
}
|
|
1150
1473
|
errors++;
|
|
1151
1474
|
}
|
|
1152
|
-
|
|
1475
|
+
validate39.errors = vErrors;
|
|
1153
1476
|
return errors === 0;
|
|
1154
1477
|
}
|
|
1155
|
-
function
|
|
1478
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1156
1479
|
let vErrors = null;
|
|
1157
1480
|
let errors = 0;
|
|
1158
1481
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1294,15 +1617,15 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1294
1617
|
}
|
|
1295
1618
|
}
|
|
1296
1619
|
if (data.carry !== void 0) {
|
|
1297
|
-
if (!
|
|
1298
|
-
vErrors = vErrors === null ?
|
|
1620
|
+
if (!validate39(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
1621
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
1299
1622
|
errors = vErrors.length;
|
|
1300
1623
|
}
|
|
1301
1624
|
}
|
|
1302
1625
|
if (data.labelSide !== void 0) {
|
|
1303
1626
|
let data5 = data.labelSide;
|
|
1304
1627
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
1305
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
1628
|
+
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
|
|
1306
1629
|
if (vErrors === null) {
|
|
1307
1630
|
vErrors = [err13];
|
|
1308
1631
|
} else {
|
|
@@ -1568,7 +1891,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1568
1891
|
if (data.color !== void 0) {
|
|
1569
1892
|
let data14 = data.color;
|
|
1570
1893
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
1571
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
1894
|
+
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
1572
1895
|
if (vErrors === null) {
|
|
1573
1896
|
vErrors = [err38];
|
|
1574
1897
|
} else {
|
|
@@ -2096,7 +2419,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2096
2419
|
if (data.color !== void 0) {
|
|
2097
2420
|
let data31 = data.color;
|
|
2098
2421
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
2099
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2422
|
+
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
2100
2423
|
if (vErrors === null) {
|
|
2101
2424
|
vErrors = [err88];
|
|
2102
2425
|
} else {
|
|
@@ -2128,198 +2451,442 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2128
2451
|
if (data.from === void 0) {
|
|
2129
2452
|
const err91 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
|
|
2130
2453
|
if (vErrors === null) {
|
|
2131
|
-
vErrors = [err91];
|
|
2454
|
+
vErrors = [err91];
|
|
2455
|
+
} else {
|
|
2456
|
+
vErrors.push(err91);
|
|
2457
|
+
}
|
|
2458
|
+
errors++;
|
|
2459
|
+
}
|
|
2460
|
+
if (data.to === void 0) {
|
|
2461
|
+
const err92 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
|
|
2462
|
+
if (vErrors === null) {
|
|
2463
|
+
vErrors = [err92];
|
|
2464
|
+
} else {
|
|
2465
|
+
vErrors.push(err92);
|
|
2466
|
+
}
|
|
2467
|
+
errors++;
|
|
2468
|
+
}
|
|
2469
|
+
if (data.text === void 0) {
|
|
2470
|
+
const err93 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
2471
|
+
if (vErrors === null) {
|
|
2472
|
+
vErrors = [err93];
|
|
2473
|
+
} else {
|
|
2474
|
+
vErrors.push(err93);
|
|
2475
|
+
}
|
|
2476
|
+
errors++;
|
|
2477
|
+
}
|
|
2478
|
+
for (const key7 in data) {
|
|
2479
|
+
if (!(key7 === "type" || key7 === "from" || key7 === "to" || key7 === "text" || key7 === "shape" || key7 === "color")) {
|
|
2480
|
+
const err94 = { instancePath, schemaPath: "#/oneOf/7/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
|
|
2481
|
+
if (vErrors === null) {
|
|
2482
|
+
vErrors = [err94];
|
|
2483
|
+
} else {
|
|
2484
|
+
vErrors.push(err94);
|
|
2485
|
+
}
|
|
2486
|
+
errors++;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
if (data.type !== void 0) {
|
|
2490
|
+
if ("span" !== data.type) {
|
|
2491
|
+
const err95 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/7/properties/type/const", keyword: "const", params: { allowedValue: "span" }, message: "must be equal to constant" };
|
|
2492
|
+
if (vErrors === null) {
|
|
2493
|
+
vErrors = [err95];
|
|
2494
|
+
} else {
|
|
2495
|
+
vErrors.push(err95);
|
|
2496
|
+
}
|
|
2497
|
+
errors++;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
if (data.from !== void 0) {
|
|
2501
|
+
let data33 = data.from;
|
|
2502
|
+
if (!(typeof data33 == "number" && (!(data33 % 1) && !isNaN(data33)) && isFinite(data33))) {
|
|
2503
|
+
const err96 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2504
|
+
if (vErrors === null) {
|
|
2505
|
+
vErrors = [err96];
|
|
2506
|
+
} else {
|
|
2507
|
+
vErrors.push(err96);
|
|
2508
|
+
}
|
|
2509
|
+
errors++;
|
|
2510
|
+
}
|
|
2511
|
+
if (typeof data33 == "number" && isFinite(data33)) {
|
|
2512
|
+
if (data33 < 0 || isNaN(data33)) {
|
|
2513
|
+
const err97 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2514
|
+
if (vErrors === null) {
|
|
2515
|
+
vErrors = [err97];
|
|
2516
|
+
} else {
|
|
2517
|
+
vErrors.push(err97);
|
|
2518
|
+
}
|
|
2519
|
+
errors++;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
if (data.to !== void 0) {
|
|
2524
|
+
let data34 = data.to;
|
|
2525
|
+
if (!(typeof data34 == "number" && (!(data34 % 1) && !isNaN(data34)) && isFinite(data34))) {
|
|
2526
|
+
const err98 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2527
|
+
if (vErrors === null) {
|
|
2528
|
+
vErrors = [err98];
|
|
2529
|
+
} else {
|
|
2530
|
+
vErrors.push(err98);
|
|
2531
|
+
}
|
|
2532
|
+
errors++;
|
|
2533
|
+
}
|
|
2534
|
+
if (typeof data34 == "number" && isFinite(data34)) {
|
|
2535
|
+
if (data34 < 0 || isNaN(data34)) {
|
|
2536
|
+
const err99 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2537
|
+
if (vErrors === null) {
|
|
2538
|
+
vErrors = [err99];
|
|
2539
|
+
} else {
|
|
2540
|
+
vErrors.push(err99);
|
|
2541
|
+
}
|
|
2542
|
+
errors++;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
if (data.text !== void 0) {
|
|
2547
|
+
let data35 = data.text;
|
|
2548
|
+
if (typeof data35 === "string") {
|
|
2549
|
+
if (func3(data35) < 1) {
|
|
2550
|
+
const err100 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2551
|
+
if (vErrors === null) {
|
|
2552
|
+
vErrors = [err100];
|
|
2553
|
+
} else {
|
|
2554
|
+
vErrors.push(err100);
|
|
2555
|
+
}
|
|
2556
|
+
errors++;
|
|
2557
|
+
}
|
|
2558
|
+
} else {
|
|
2559
|
+
const err101 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2560
|
+
if (vErrors === null) {
|
|
2561
|
+
vErrors = [err101];
|
|
2562
|
+
} else {
|
|
2563
|
+
vErrors.push(err101);
|
|
2564
|
+
}
|
|
2565
|
+
errors++;
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
if (data.shape !== void 0) {
|
|
2569
|
+
if (!(data.shape === "box")) {
|
|
2570
|
+
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
|
|
2571
|
+
if (vErrors === null) {
|
|
2572
|
+
vErrors = [err102];
|
|
2573
|
+
} else {
|
|
2574
|
+
vErrors.push(err102);
|
|
2575
|
+
}
|
|
2576
|
+
errors++;
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
if (data.color !== void 0) {
|
|
2580
|
+
let data37 = data.color;
|
|
2581
|
+
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
2582
|
+
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
2583
|
+
if (vErrors === null) {
|
|
2584
|
+
vErrors = [err103];
|
|
2585
|
+
} else {
|
|
2586
|
+
vErrors.push(err103);
|
|
2587
|
+
}
|
|
2588
|
+
errors++;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
} else {
|
|
2592
|
+
const err104 = { instancePath, schemaPath: "#/oneOf/7/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2593
|
+
if (vErrors === null) {
|
|
2594
|
+
vErrors = [err104];
|
|
2595
|
+
} else {
|
|
2596
|
+
vErrors.push(err104);
|
|
2597
|
+
}
|
|
2598
|
+
errors++;
|
|
2599
|
+
}
|
|
2600
|
+
} else if (tag0 === "leaf") {
|
|
2601
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2602
|
+
if (data.type === void 0) {
|
|
2603
|
+
const err105 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2604
|
+
if (vErrors === null) {
|
|
2605
|
+
vErrors = [err105];
|
|
2606
|
+
} else {
|
|
2607
|
+
vErrors.push(err105);
|
|
2608
|
+
}
|
|
2609
|
+
errors++;
|
|
2610
|
+
}
|
|
2611
|
+
if (data.id === void 0) {
|
|
2612
|
+
const err106 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
2613
|
+
if (vErrors === null) {
|
|
2614
|
+
vErrors = [err106];
|
|
2615
|
+
} else {
|
|
2616
|
+
vErrors.push(err106);
|
|
2617
|
+
}
|
|
2618
|
+
errors++;
|
|
2619
|
+
}
|
|
2620
|
+
for (const key8 in data) {
|
|
2621
|
+
if (!(key8 === "type" || key8 === "id" || key8 === "hash")) {
|
|
2622
|
+
const err107 = { instancePath, schemaPath: "#/oneOf/8/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key8 }, message: "must NOT have additional properties" };
|
|
2623
|
+
if (vErrors === null) {
|
|
2624
|
+
vErrors = [err107];
|
|
2625
|
+
} else {
|
|
2626
|
+
vErrors.push(err107);
|
|
2627
|
+
}
|
|
2628
|
+
errors++;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
if (data.type !== void 0) {
|
|
2632
|
+
if ("leaf" !== data.type) {
|
|
2633
|
+
const err108 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/8/properties/type/const", keyword: "const", params: { allowedValue: "leaf" }, message: "must be equal to constant" };
|
|
2634
|
+
if (vErrors === null) {
|
|
2635
|
+
vErrors = [err108];
|
|
2636
|
+
} else {
|
|
2637
|
+
vErrors.push(err108);
|
|
2638
|
+
}
|
|
2639
|
+
errors++;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
if (data.id !== void 0) {
|
|
2643
|
+
let data39 = data.id;
|
|
2644
|
+
if (typeof data39 === "string") {
|
|
2645
|
+
if (!pattern0.test(data39)) {
|
|
2646
|
+
const err109 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
2647
|
+
if (vErrors === null) {
|
|
2648
|
+
vErrors = [err109];
|
|
2649
|
+
} else {
|
|
2650
|
+
vErrors.push(err109);
|
|
2651
|
+
}
|
|
2652
|
+
errors++;
|
|
2653
|
+
}
|
|
2654
|
+
} else {
|
|
2655
|
+
const err110 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2656
|
+
if (vErrors === null) {
|
|
2657
|
+
vErrors = [err110];
|
|
2658
|
+
} else {
|
|
2659
|
+
vErrors.push(err110);
|
|
2660
|
+
}
|
|
2661
|
+
errors++;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
if (data.hash !== void 0) {
|
|
2665
|
+
let data40 = data.hash;
|
|
2666
|
+
if (typeof data40 === "string") {
|
|
2667
|
+
if (!pattern14.test(data40)) {
|
|
2668
|
+
const err111 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
|
|
2669
|
+
if (vErrors === null) {
|
|
2670
|
+
vErrors = [err111];
|
|
2671
|
+
} else {
|
|
2672
|
+
vErrors.push(err111);
|
|
2673
|
+
}
|
|
2674
|
+
errors++;
|
|
2675
|
+
}
|
|
2676
|
+
} else {
|
|
2677
|
+
const err112 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2678
|
+
if (vErrors === null) {
|
|
2679
|
+
vErrors = [err112];
|
|
2680
|
+
} else {
|
|
2681
|
+
vErrors.push(err112);
|
|
2682
|
+
}
|
|
2683
|
+
errors++;
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
} else {
|
|
2687
|
+
const err113 = { instancePath, schemaPath: "#/oneOf/8/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2688
|
+
if (vErrors === null) {
|
|
2689
|
+
vErrors = [err113];
|
|
2690
|
+
} else {
|
|
2691
|
+
vErrors.push(err113);
|
|
2692
|
+
}
|
|
2693
|
+
errors++;
|
|
2694
|
+
}
|
|
2695
|
+
} else if (tag0 === "node") {
|
|
2696
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2697
|
+
if (data.type === void 0) {
|
|
2698
|
+
const err114 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2699
|
+
if (vErrors === null) {
|
|
2700
|
+
vErrors = [err114];
|
|
2132
2701
|
} else {
|
|
2133
|
-
vErrors.push(
|
|
2702
|
+
vErrors.push(err114);
|
|
2134
2703
|
}
|
|
2135
2704
|
errors++;
|
|
2136
2705
|
}
|
|
2137
|
-
if (data.
|
|
2138
|
-
const
|
|
2706
|
+
if (data.id === void 0) {
|
|
2707
|
+
const err115 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
2139
2708
|
if (vErrors === null) {
|
|
2140
|
-
vErrors = [
|
|
2709
|
+
vErrors = [err115];
|
|
2141
2710
|
} else {
|
|
2142
|
-
vErrors.push(
|
|
2711
|
+
vErrors.push(err115);
|
|
2143
2712
|
}
|
|
2144
2713
|
errors++;
|
|
2145
2714
|
}
|
|
2146
|
-
if (data.
|
|
2147
|
-
const
|
|
2715
|
+
if (data.children === void 0) {
|
|
2716
|
+
const err116 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "children" }, message: "must have required property 'children'" };
|
|
2148
2717
|
if (vErrors === null) {
|
|
2149
|
-
vErrors = [
|
|
2718
|
+
vErrors = [err116];
|
|
2150
2719
|
} else {
|
|
2151
|
-
vErrors.push(
|
|
2720
|
+
vErrors.push(err116);
|
|
2152
2721
|
}
|
|
2153
2722
|
errors++;
|
|
2154
2723
|
}
|
|
2155
|
-
for (const
|
|
2156
|
-
if (!(
|
|
2157
|
-
const
|
|
2724
|
+
for (const key9 in data) {
|
|
2725
|
+
if (!(key9 === "type" || key9 === "id" || key9 === "children" || key9 === "hash")) {
|
|
2726
|
+
const err117 = { instancePath, schemaPath: "#/oneOf/9/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" };
|
|
2158
2727
|
if (vErrors === null) {
|
|
2159
|
-
vErrors = [
|
|
2728
|
+
vErrors = [err117];
|
|
2160
2729
|
} else {
|
|
2161
|
-
vErrors.push(
|
|
2730
|
+
vErrors.push(err117);
|
|
2162
2731
|
}
|
|
2163
2732
|
errors++;
|
|
2164
2733
|
}
|
|
2165
2734
|
}
|
|
2166
2735
|
if (data.type !== void 0) {
|
|
2167
|
-
if ("
|
|
2168
|
-
const
|
|
2736
|
+
if ("node" !== data.type) {
|
|
2737
|
+
const err118 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/9/properties/type/const", keyword: "const", params: { allowedValue: "node" }, message: "must be equal to constant" };
|
|
2169
2738
|
if (vErrors === null) {
|
|
2170
|
-
vErrors = [
|
|
2739
|
+
vErrors = [err118];
|
|
2171
2740
|
} else {
|
|
2172
|
-
vErrors.push(
|
|
2741
|
+
vErrors.push(err118);
|
|
2173
2742
|
}
|
|
2174
2743
|
errors++;
|
|
2175
2744
|
}
|
|
2176
2745
|
}
|
|
2177
|
-
if (data.
|
|
2178
|
-
let
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
vErrors = [err96];
|
|
2183
|
-
} else {
|
|
2184
|
-
vErrors.push(err96);
|
|
2185
|
-
}
|
|
2186
|
-
errors++;
|
|
2187
|
-
}
|
|
2188
|
-
if (typeof data33 == "number" && isFinite(data33)) {
|
|
2189
|
-
if (data33 < 0 || isNaN(data33)) {
|
|
2190
|
-
const err97 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2746
|
+
if (data.id !== void 0) {
|
|
2747
|
+
let data42 = data.id;
|
|
2748
|
+
if (typeof data42 === "string") {
|
|
2749
|
+
if (!pattern0.test(data42)) {
|
|
2750
|
+
const err119 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
2191
2751
|
if (vErrors === null) {
|
|
2192
|
-
vErrors = [
|
|
2752
|
+
vErrors = [err119];
|
|
2193
2753
|
} else {
|
|
2194
|
-
vErrors.push(
|
|
2754
|
+
vErrors.push(err119);
|
|
2195
2755
|
}
|
|
2196
2756
|
errors++;
|
|
2197
2757
|
}
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
if (data.to !== void 0) {
|
|
2201
|
-
let data34 = data.to;
|
|
2202
|
-
if (!(typeof data34 == "number" && (!(data34 % 1) && !isNaN(data34)) && isFinite(data34))) {
|
|
2203
|
-
const err98 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2758
|
+
} else {
|
|
2759
|
+
const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2204
2760
|
if (vErrors === null) {
|
|
2205
|
-
vErrors = [
|
|
2761
|
+
vErrors = [err120];
|
|
2206
2762
|
} else {
|
|
2207
|
-
vErrors.push(
|
|
2763
|
+
vErrors.push(err120);
|
|
2208
2764
|
}
|
|
2209
2765
|
errors++;
|
|
2210
2766
|
}
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2767
|
+
}
|
|
2768
|
+
if (data.children !== void 0) {
|
|
2769
|
+
let data43 = data.children;
|
|
2770
|
+
if (Array.isArray(data43)) {
|
|
2771
|
+
if (data43.length < 1) {
|
|
2772
|
+
const err121 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
2214
2773
|
if (vErrors === null) {
|
|
2215
|
-
vErrors = [
|
|
2774
|
+
vErrors = [err121];
|
|
2216
2775
|
} else {
|
|
2217
|
-
vErrors.push(
|
|
2776
|
+
vErrors.push(err121);
|
|
2218
2777
|
}
|
|
2219
2778
|
errors++;
|
|
2220
2779
|
}
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2780
|
+
const len0 = data43.length;
|
|
2781
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2782
|
+
let data44 = data43[i0];
|
|
2783
|
+
if (typeof data44 === "string") {
|
|
2784
|
+
if (!pattern0.test(data44)) {
|
|
2785
|
+
const err122 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
2786
|
+
if (vErrors === null) {
|
|
2787
|
+
vErrors = [err122];
|
|
2788
|
+
} else {
|
|
2789
|
+
vErrors.push(err122);
|
|
2790
|
+
}
|
|
2791
|
+
errors++;
|
|
2792
|
+
}
|
|
2230
2793
|
} else {
|
|
2231
|
-
|
|
2794
|
+
const err123 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2795
|
+
if (vErrors === null) {
|
|
2796
|
+
vErrors = [err123];
|
|
2797
|
+
} else {
|
|
2798
|
+
vErrors.push(err123);
|
|
2799
|
+
}
|
|
2800
|
+
errors++;
|
|
2232
2801
|
}
|
|
2233
|
-
errors++;
|
|
2234
2802
|
}
|
|
2235
2803
|
} else {
|
|
2236
|
-
const
|
|
2804
|
+
const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2237
2805
|
if (vErrors === null) {
|
|
2238
|
-
vErrors = [
|
|
2806
|
+
vErrors = [err124];
|
|
2239
2807
|
} else {
|
|
2240
|
-
vErrors.push(
|
|
2808
|
+
vErrors.push(err124);
|
|
2241
2809
|
}
|
|
2242
2810
|
errors++;
|
|
2243
2811
|
}
|
|
2244
2812
|
}
|
|
2245
|
-
if (data.
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
if (
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2813
|
+
if (data.hash !== void 0) {
|
|
2814
|
+
let data45 = data.hash;
|
|
2815
|
+
if (typeof data45 === "string") {
|
|
2816
|
+
if (!pattern14.test(data45)) {
|
|
2817
|
+
const err125 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
|
|
2818
|
+
if (vErrors === null) {
|
|
2819
|
+
vErrors = [err125];
|
|
2820
|
+
} else {
|
|
2821
|
+
vErrors.push(err125);
|
|
2822
|
+
}
|
|
2823
|
+
errors++;
|
|
2252
2824
|
}
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}
|
|
2256
|
-
if (data.color !== void 0) {
|
|
2257
|
-
let data37 = data.color;
|
|
2258
|
-
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
2259
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
|
|
2825
|
+
} else {
|
|
2826
|
+
const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2260
2827
|
if (vErrors === null) {
|
|
2261
|
-
vErrors = [
|
|
2828
|
+
vErrors = [err126];
|
|
2262
2829
|
} else {
|
|
2263
|
-
vErrors.push(
|
|
2830
|
+
vErrors.push(err126);
|
|
2264
2831
|
}
|
|
2265
2832
|
errors++;
|
|
2266
2833
|
}
|
|
2267
2834
|
}
|
|
2268
2835
|
} else {
|
|
2269
|
-
const
|
|
2836
|
+
const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2270
2837
|
if (vErrors === null) {
|
|
2271
|
-
vErrors = [
|
|
2838
|
+
vErrors = [err127];
|
|
2272
2839
|
} else {
|
|
2273
|
-
vErrors.push(
|
|
2840
|
+
vErrors.push(err127);
|
|
2274
2841
|
}
|
|
2275
2842
|
errors++;
|
|
2276
2843
|
}
|
|
2277
2844
|
} else if (tag0 === "strip") {
|
|
2278
|
-
const
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2845
|
+
const _errs142 = errors;
|
|
2846
|
+
let valid56 = false;
|
|
2847
|
+
const _errs143 = errors;
|
|
2281
2848
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2282
2849
|
if (data.value === void 0) {
|
|
2283
|
-
const
|
|
2850
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
2284
2851
|
if (vErrors === null) {
|
|
2285
|
-
vErrors = [
|
|
2852
|
+
vErrors = [err128];
|
|
2286
2853
|
} else {
|
|
2287
|
-
vErrors.push(
|
|
2854
|
+
vErrors.push(err128);
|
|
2288
2855
|
}
|
|
2289
2856
|
errors++;
|
|
2290
2857
|
}
|
|
2291
2858
|
}
|
|
2292
|
-
var _valid0 =
|
|
2293
|
-
|
|
2294
|
-
if (!
|
|
2295
|
-
const
|
|
2859
|
+
var _valid0 = _errs143 === errors;
|
|
2860
|
+
valid56 = valid56 || _valid0;
|
|
2861
|
+
if (!valid56) {
|
|
2862
|
+
const _errs144 = errors;
|
|
2296
2863
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2297
2864
|
if (data.tag === void 0) {
|
|
2298
|
-
const
|
|
2865
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
2299
2866
|
if (vErrors === null) {
|
|
2300
|
-
vErrors = [
|
|
2867
|
+
vErrors = [err129];
|
|
2301
2868
|
} else {
|
|
2302
|
-
vErrors.push(
|
|
2869
|
+
vErrors.push(err129);
|
|
2303
2870
|
}
|
|
2304
2871
|
errors++;
|
|
2305
2872
|
}
|
|
2306
2873
|
}
|
|
2307
|
-
var _valid0 =
|
|
2308
|
-
|
|
2874
|
+
var _valid0 = _errs144 === errors;
|
|
2875
|
+
valid56 = valid56 || _valid0;
|
|
2309
2876
|
}
|
|
2310
|
-
if (!
|
|
2311
|
-
const
|
|
2877
|
+
if (!valid56) {
|
|
2878
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2312
2879
|
if (vErrors === null) {
|
|
2313
|
-
vErrors = [
|
|
2880
|
+
vErrors = [err130];
|
|
2314
2881
|
} else {
|
|
2315
|
-
vErrors.push(
|
|
2882
|
+
vErrors.push(err130);
|
|
2316
2883
|
}
|
|
2317
2884
|
errors++;
|
|
2318
2885
|
} else {
|
|
2319
|
-
errors =
|
|
2886
|
+
errors = _errs142;
|
|
2320
2887
|
if (vErrors !== null) {
|
|
2321
|
-
if (
|
|
2322
|
-
vErrors.length =
|
|
2888
|
+
if (_errs142) {
|
|
2889
|
+
vErrors.length = _errs142;
|
|
2323
2890
|
} else {
|
|
2324
2891
|
vErrors = null;
|
|
2325
2892
|
}
|
|
@@ -2327,151 +2894,151 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2327
2894
|
}
|
|
2328
2895
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2329
2896
|
if (data.type === void 0) {
|
|
2330
|
-
const
|
|
2897
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2331
2898
|
if (vErrors === null) {
|
|
2332
|
-
vErrors = [
|
|
2899
|
+
vErrors = [err131];
|
|
2333
2900
|
} else {
|
|
2334
|
-
vErrors.push(
|
|
2901
|
+
vErrors.push(err131);
|
|
2335
2902
|
}
|
|
2336
2903
|
errors++;
|
|
2337
2904
|
}
|
|
2338
2905
|
if (data.field === void 0) {
|
|
2339
|
-
const
|
|
2906
|
+
const err132 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
2340
2907
|
if (vErrors === null) {
|
|
2341
|
-
vErrors = [
|
|
2908
|
+
vErrors = [err132];
|
|
2342
2909
|
} else {
|
|
2343
|
-
vErrors.push(
|
|
2910
|
+
vErrors.push(err132);
|
|
2344
2911
|
}
|
|
2345
2912
|
errors++;
|
|
2346
2913
|
}
|
|
2347
|
-
for (const
|
|
2348
|
-
if (!(
|
|
2349
|
-
const
|
|
2914
|
+
for (const key10 in data) {
|
|
2915
|
+
if (!(key10 === "type" || key10 === "field" || key10 === "value" || key10 === "tag")) {
|
|
2916
|
+
const err133 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
2350
2917
|
if (vErrors === null) {
|
|
2351
|
-
vErrors = [
|
|
2918
|
+
vErrors = [err133];
|
|
2352
2919
|
} else {
|
|
2353
|
-
vErrors.push(
|
|
2920
|
+
vErrors.push(err133);
|
|
2354
2921
|
}
|
|
2355
2922
|
errors++;
|
|
2356
2923
|
}
|
|
2357
2924
|
}
|
|
2358
2925
|
if (data.type !== void 0) {
|
|
2359
2926
|
if ("strip" !== data.type) {
|
|
2360
|
-
const
|
|
2927
|
+
const err134 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
2361
2928
|
if (vErrors === null) {
|
|
2362
|
-
vErrors = [
|
|
2929
|
+
vErrors = [err134];
|
|
2363
2930
|
} else {
|
|
2364
|
-
vErrors.push(
|
|
2931
|
+
vErrors.push(err134);
|
|
2365
2932
|
}
|
|
2366
2933
|
errors++;
|
|
2367
2934
|
}
|
|
2368
2935
|
}
|
|
2369
2936
|
if (data.field !== void 0) {
|
|
2370
|
-
let
|
|
2371
|
-
if (typeof
|
|
2372
|
-
if (func3(
|
|
2373
|
-
const
|
|
2937
|
+
let data47 = data.field;
|
|
2938
|
+
if (typeof data47 === "string") {
|
|
2939
|
+
if (func3(data47) < 1) {
|
|
2940
|
+
const err135 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2374
2941
|
if (vErrors === null) {
|
|
2375
|
-
vErrors = [
|
|
2942
|
+
vErrors = [err135];
|
|
2376
2943
|
} else {
|
|
2377
|
-
vErrors.push(
|
|
2944
|
+
vErrors.push(err135);
|
|
2378
2945
|
}
|
|
2379
2946
|
errors++;
|
|
2380
2947
|
}
|
|
2381
2948
|
} else {
|
|
2382
|
-
const
|
|
2949
|
+
const err136 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2383
2950
|
if (vErrors === null) {
|
|
2384
|
-
vErrors = [
|
|
2951
|
+
vErrors = [err136];
|
|
2385
2952
|
} else {
|
|
2386
|
-
vErrors.push(
|
|
2953
|
+
vErrors.push(err136);
|
|
2387
2954
|
}
|
|
2388
2955
|
errors++;
|
|
2389
2956
|
}
|
|
2390
2957
|
}
|
|
2391
2958
|
if (data.value !== void 0) {
|
|
2392
|
-
let
|
|
2393
|
-
if (typeof
|
|
2394
|
-
if (func3(
|
|
2395
|
-
const
|
|
2959
|
+
let data48 = data.value;
|
|
2960
|
+
if (typeof data48 === "string") {
|
|
2961
|
+
if (func3(data48) < 1) {
|
|
2962
|
+
const err137 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2396
2963
|
if (vErrors === null) {
|
|
2397
|
-
vErrors = [
|
|
2964
|
+
vErrors = [err137];
|
|
2398
2965
|
} else {
|
|
2399
|
-
vErrors.push(
|
|
2966
|
+
vErrors.push(err137);
|
|
2400
2967
|
}
|
|
2401
2968
|
errors++;
|
|
2402
2969
|
}
|
|
2403
2970
|
} else {
|
|
2404
|
-
const
|
|
2971
|
+
const err138 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2405
2972
|
if (vErrors === null) {
|
|
2406
|
-
vErrors = [
|
|
2973
|
+
vErrors = [err138];
|
|
2407
2974
|
} else {
|
|
2408
|
-
vErrors.push(
|
|
2975
|
+
vErrors.push(err138);
|
|
2409
2976
|
}
|
|
2410
2977
|
errors++;
|
|
2411
2978
|
}
|
|
2412
2979
|
}
|
|
2413
2980
|
if (data.tag !== void 0) {
|
|
2414
|
-
let
|
|
2415
|
-
if (typeof
|
|
2416
|
-
if (func3(
|
|
2417
|
-
const
|
|
2981
|
+
let data49 = data.tag;
|
|
2982
|
+
if (typeof data49 === "string") {
|
|
2983
|
+
if (func3(data49) < 1) {
|
|
2984
|
+
const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2418
2985
|
if (vErrors === null) {
|
|
2419
|
-
vErrors = [
|
|
2986
|
+
vErrors = [err139];
|
|
2420
2987
|
} else {
|
|
2421
|
-
vErrors.push(
|
|
2988
|
+
vErrors.push(err139);
|
|
2422
2989
|
}
|
|
2423
2990
|
errors++;
|
|
2424
2991
|
}
|
|
2425
2992
|
} else {
|
|
2426
|
-
const
|
|
2993
|
+
const err140 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2427
2994
|
if (vErrors === null) {
|
|
2428
|
-
vErrors = [
|
|
2995
|
+
vErrors = [err140];
|
|
2429
2996
|
} else {
|
|
2430
|
-
vErrors.push(
|
|
2997
|
+
vErrors.push(err140);
|
|
2431
2998
|
}
|
|
2432
2999
|
errors++;
|
|
2433
3000
|
}
|
|
2434
3001
|
}
|
|
2435
3002
|
} else {
|
|
2436
|
-
const
|
|
3003
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2437
3004
|
if (vErrors === null) {
|
|
2438
|
-
vErrors = [
|
|
3005
|
+
vErrors = [err141];
|
|
2439
3006
|
} else {
|
|
2440
|
-
vErrors.push(
|
|
3007
|
+
vErrors.push(err141);
|
|
2441
3008
|
}
|
|
2442
3009
|
errors++;
|
|
2443
3010
|
}
|
|
2444
3011
|
} else {
|
|
2445
|
-
const
|
|
3012
|
+
const err142 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
2446
3013
|
if (vErrors === null) {
|
|
2447
|
-
vErrors = [
|
|
3014
|
+
vErrors = [err142];
|
|
2448
3015
|
} else {
|
|
2449
|
-
vErrors.push(
|
|
3016
|
+
vErrors.push(err142);
|
|
2450
3017
|
}
|
|
2451
3018
|
errors++;
|
|
2452
3019
|
}
|
|
2453
3020
|
} else {
|
|
2454
|
-
const
|
|
3021
|
+
const err143 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
2455
3022
|
if (vErrors === null) {
|
|
2456
|
-
vErrors = [
|
|
3023
|
+
vErrors = [err143];
|
|
2457
3024
|
} else {
|
|
2458
|
-
vErrors.push(
|
|
3025
|
+
vErrors.push(err143);
|
|
2459
3026
|
}
|
|
2460
3027
|
errors++;
|
|
2461
3028
|
}
|
|
2462
3029
|
} else {
|
|
2463
|
-
const
|
|
3030
|
+
const err144 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2464
3031
|
if (vErrors === null) {
|
|
2465
|
-
vErrors = [
|
|
3032
|
+
vErrors = [err144];
|
|
2466
3033
|
} else {
|
|
2467
|
-
vErrors.push(
|
|
3034
|
+
vErrors.push(err144);
|
|
2468
3035
|
}
|
|
2469
3036
|
errors++;
|
|
2470
3037
|
}
|
|
2471
|
-
|
|
3038
|
+
validate38.errors = vErrors;
|
|
2472
3039
|
return errors === 0;
|
|
2473
3040
|
}
|
|
2474
|
-
function
|
|
3041
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2475
3042
|
let vErrors = null;
|
|
2476
3043
|
let errors = 0;
|
|
2477
3044
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2593,8 +3160,8 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2593
3160
|
}
|
|
2594
3161
|
const len0 = data3.length;
|
|
2595
3162
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
2596
|
-
if (!
|
|
2597
|
-
vErrors = vErrors === null ?
|
|
3163
|
+
if (!validate36(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
3164
|
+
vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
|
|
2598
3165
|
errors = vErrors.length;
|
|
2599
3166
|
}
|
|
2600
3167
|
}
|
|
@@ -2613,8 +3180,8 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2613
3180
|
if (Array.isArray(data5)) {
|
|
2614
3181
|
const len1 = data5.length;
|
|
2615
3182
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
2616
|
-
if (!
|
|
2617
|
-
vErrors = vErrors === null ?
|
|
3183
|
+
if (!validate38(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
3184
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
2618
3185
|
errors = vErrors.length;
|
|
2619
3186
|
}
|
|
2620
3187
|
}
|
|
@@ -2637,10 +3204,10 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2637
3204
|
}
|
|
2638
3205
|
errors++;
|
|
2639
3206
|
}
|
|
2640
|
-
|
|
3207
|
+
validate35.errors = vErrors;
|
|
2641
3208
|
return errors === 0;
|
|
2642
3209
|
}
|
|
2643
|
-
function
|
|
3210
|
+
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2644
3211
|
let vErrors = null;
|
|
2645
3212
|
let errors = 0;
|
|
2646
3213
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2718,10 +3285,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2718
3285
|
}
|
|
2719
3286
|
errors++;
|
|
2720
3287
|
}
|
|
2721
|
-
|
|
3288
|
+
validate43.errors = vErrors;
|
|
2722
3289
|
return errors === 0;
|
|
2723
3290
|
}
|
|
2724
|
-
function
|
|
3291
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2725
3292
|
let vErrors = null;
|
|
2726
3293
|
let errors = 0;
|
|
2727
3294
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2829,10 +3396,10 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2829
3396
|
}
|
|
2830
3397
|
errors++;
|
|
2831
3398
|
}
|
|
2832
|
-
|
|
3399
|
+
validate46.errors = vErrors;
|
|
2833
3400
|
return errors === 0;
|
|
2834
3401
|
}
|
|
2835
|
-
function
|
|
3402
|
+
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2836
3403
|
let vErrors = null;
|
|
2837
3404
|
let errors = 0;
|
|
2838
3405
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2870,8 +3437,8 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2870
3437
|
}
|
|
2871
3438
|
const len0 = data0.length;
|
|
2872
3439
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
2873
|
-
if (!
|
|
2874
|
-
vErrors = vErrors === null ?
|
|
3440
|
+
if (!validate46(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
3441
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
2875
3442
|
errors = vErrors.length;
|
|
2876
3443
|
}
|
|
2877
3444
|
}
|
|
@@ -2894,10 +3461,10 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2894
3461
|
}
|
|
2895
3462
|
errors++;
|
|
2896
3463
|
}
|
|
2897
|
-
|
|
3464
|
+
validate45.errors = vErrors;
|
|
2898
3465
|
return errors === 0;
|
|
2899
3466
|
}
|
|
2900
|
-
function
|
|
3467
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2901
3468
|
let vErrors = null;
|
|
2902
3469
|
let errors = 0;
|
|
2903
3470
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2974,10 +3541,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2974
3541
|
}
|
|
2975
3542
|
errors++;
|
|
2976
3543
|
}
|
|
2977
|
-
|
|
3544
|
+
validate50.errors = vErrors;
|
|
2978
3545
|
return errors === 0;
|
|
2979
3546
|
}
|
|
2980
|
-
function
|
|
3547
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2981
3548
|
let vErrors = null;
|
|
2982
3549
|
let errors = 0;
|
|
2983
3550
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3015,8 +3582,8 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3015
3582
|
}
|
|
3016
3583
|
const len0 = data0.length;
|
|
3017
3584
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3018
|
-
if (!
|
|
3019
|
-
vErrors = vErrors === null ?
|
|
3585
|
+
if (!validate50(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
3586
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
3020
3587
|
errors = vErrors.length;
|
|
3021
3588
|
}
|
|
3022
3589
|
}
|
|
@@ -3039,11 +3606,11 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3039
3606
|
}
|
|
3040
3607
|
errors++;
|
|
3041
3608
|
}
|
|
3042
|
-
|
|
3609
|
+
validate49.errors = vErrors;
|
|
3043
3610
|
return errors === 0;
|
|
3044
3611
|
}
|
|
3045
|
-
var
|
|
3046
|
-
function
|
|
3612
|
+
var pattern27 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
3613
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3047
3614
|
let vErrors = null;
|
|
3048
3615
|
let errors = 0;
|
|
3049
3616
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3110,7 +3677,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3110
3677
|
if (data.length !== void 0) {
|
|
3111
3678
|
let data1 = data.length;
|
|
3112
3679
|
if (typeof data1 === "string") {
|
|
3113
|
-
if (!
|
|
3680
|
+
if (!pattern27.test(data1)) {
|
|
3114
3681
|
const err6 = { instancePath: instancePath + "/length", schemaPath: "#/definitions/duration/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"' };
|
|
3115
3682
|
if (vErrors === null) {
|
|
3116
3683
|
vErrors = [err6];
|
|
@@ -3184,10 +3751,10 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3184
3751
|
}
|
|
3185
3752
|
errors++;
|
|
3186
3753
|
}
|
|
3187
|
-
|
|
3754
|
+
validate54.errors = vErrors;
|
|
3188
3755
|
return errors === 0;
|
|
3189
3756
|
}
|
|
3190
|
-
function
|
|
3757
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3191
3758
|
let vErrors = null;
|
|
3192
3759
|
let errors = 0;
|
|
3193
3760
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3297,10 +3864,10 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3297
3864
|
}
|
|
3298
3865
|
errors++;
|
|
3299
3866
|
}
|
|
3300
|
-
|
|
3867
|
+
validate56.errors = vErrors;
|
|
3301
3868
|
return errors === 0;
|
|
3302
3869
|
}
|
|
3303
|
-
function
|
|
3870
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3304
3871
|
let vErrors = null;
|
|
3305
3872
|
let errors = 0;
|
|
3306
3873
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3380,7 +3947,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3380
3947
|
if (data.color !== void 0) {
|
|
3381
3948
|
let data2 = data.color;
|
|
3382
3949
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
3383
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
3950
|
+
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
|
|
3384
3951
|
if (vErrors === null) {
|
|
3385
3952
|
vErrors = [err7];
|
|
3386
3953
|
} else {
|
|
@@ -3435,10 +4002,10 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3435
4002
|
}
|
|
3436
4003
|
errors++;
|
|
3437
4004
|
}
|
|
3438
|
-
|
|
4005
|
+
validate58.errors = vErrors;
|
|
3439
4006
|
return errors === 0;
|
|
3440
4007
|
}
|
|
3441
|
-
function
|
|
4008
|
+
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3442
4009
|
let vErrors = null;
|
|
3443
4010
|
let errors = 0;
|
|
3444
4011
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3525,10 +4092,10 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3525
4092
|
}
|
|
3526
4093
|
errors++;
|
|
3527
4094
|
}
|
|
3528
|
-
|
|
4095
|
+
validate60.errors = vErrors;
|
|
3529
4096
|
return errors === 0;
|
|
3530
4097
|
}
|
|
3531
|
-
function
|
|
4098
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3532
4099
|
let vErrors = null;
|
|
3533
4100
|
let errors = 0;
|
|
3534
4101
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3616,10 +4183,10 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3616
4183
|
}
|
|
3617
4184
|
errors++;
|
|
3618
4185
|
}
|
|
3619
|
-
|
|
4186
|
+
validate62.errors = vErrors;
|
|
3620
4187
|
return errors === 0;
|
|
3621
4188
|
}
|
|
3622
|
-
function
|
|
4189
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3623
4190
|
let vErrors = null;
|
|
3624
4191
|
let errors = 0;
|
|
3625
4192
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3653,14 +4220,14 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3653
4220
|
}
|
|
3654
4221
|
}
|
|
3655
4222
|
if (data.scale !== void 0) {
|
|
3656
|
-
if (!
|
|
3657
|
-
vErrors = vErrors === null ?
|
|
4223
|
+
if (!validate54(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
4224
|
+
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
3658
4225
|
errors = vErrors.length;
|
|
3659
4226
|
}
|
|
3660
4227
|
}
|
|
3661
4228
|
if (data.period !== void 0) {
|
|
3662
|
-
if (!
|
|
3663
|
-
vErrors = vErrors === null ?
|
|
4229
|
+
if (!validate56(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
4230
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
3664
4231
|
errors = vErrors.length;
|
|
3665
4232
|
}
|
|
3666
4233
|
}
|
|
@@ -3678,8 +4245,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3678
4245
|
}
|
|
3679
4246
|
const len0 = data2.length;
|
|
3680
4247
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3681
|
-
if (!
|
|
3682
|
-
vErrors = vErrors === null ?
|
|
4248
|
+
if (!validate58(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
4249
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
3683
4250
|
errors = vErrors.length;
|
|
3684
4251
|
}
|
|
3685
4252
|
}
|
|
@@ -3698,8 +4265,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3698
4265
|
if (Array.isArray(data4)) {
|
|
3699
4266
|
const len1 = data4.length;
|
|
3700
4267
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
3701
|
-
if (!
|
|
3702
|
-
vErrors = vErrors === null ?
|
|
4268
|
+
if (!validate60(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
4269
|
+
vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
|
|
3703
4270
|
errors = vErrors.length;
|
|
3704
4271
|
}
|
|
3705
4272
|
}
|
|
@@ -3714,8 +4281,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3714
4281
|
}
|
|
3715
4282
|
}
|
|
3716
4283
|
if (data.zoom !== void 0) {
|
|
3717
|
-
if (!
|
|
3718
|
-
vErrors = vErrors === null ?
|
|
4284
|
+
if (!validate62(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
4285
|
+
vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
|
|
3719
4286
|
errors = vErrors.length;
|
|
3720
4287
|
}
|
|
3721
4288
|
}
|
|
@@ -3728,7 +4295,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3728
4295
|
}
|
|
3729
4296
|
errors++;
|
|
3730
4297
|
}
|
|
3731
|
-
|
|
4298
|
+
validate53.errors = vErrors;
|
|
3732
4299
|
return errors === 0;
|
|
3733
4300
|
}
|
|
3734
4301
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -4112,84 +4679,35 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4112
4679
|
errors++;
|
|
4113
4680
|
}
|
|
4114
4681
|
if (data.steps !== void 0) {
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
4119
|
-
let data23 = data22[i1];
|
|
4120
|
-
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
4121
|
-
if (data23.events !== void 0) {
|
|
4122
|
-
let data24 = data23.events;
|
|
4123
|
-
if (Array.isArray(data24)) {
|
|
4124
|
-
const len2 = data24.length;
|
|
4125
|
-
for (let i2 = 0; i2 < len2; i2++) {
|
|
4126
|
-
let data25 = data24[i2];
|
|
4127
|
-
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
4128
|
-
if (data25.type !== void 0) {
|
|
4129
|
-
let data26 = data25.type;
|
|
4130
|
-
const _errs62 = errors;
|
|
4131
|
-
const _errs63 = errors;
|
|
4132
|
-
if (!(data26 === "commit" || data26 === "branch")) {
|
|
4133
|
-
const err23 = {};
|
|
4134
|
-
if (vErrors === null) {
|
|
4135
|
-
vErrors = [err23];
|
|
4136
|
-
} else {
|
|
4137
|
-
vErrors.push(err23);
|
|
4138
|
-
}
|
|
4139
|
-
errors++;
|
|
4140
|
-
}
|
|
4141
|
-
var valid31 = _errs63 === errors;
|
|
4142
|
-
if (valid31) {
|
|
4143
|
-
const err24 = { instancePath: instancePath + "/steps/" + i1 + "/events/" + i2 + "/type", schemaPath: "#/definitions/timeSteps/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4144
|
-
if (vErrors === null) {
|
|
4145
|
-
vErrors = [err24];
|
|
4146
|
-
} else {
|
|
4147
|
-
vErrors.push(err24);
|
|
4148
|
-
}
|
|
4149
|
-
errors++;
|
|
4150
|
-
} else {
|
|
4151
|
-
errors = _errs62;
|
|
4152
|
-
if (vErrors !== null) {
|
|
4153
|
-
if (_errs62) {
|
|
4154
|
-
vErrors.length = _errs62;
|
|
4155
|
-
} else {
|
|
4156
|
-
vErrors = null;
|
|
4157
|
-
}
|
|
4158
|
-
}
|
|
4159
|
-
}
|
|
4160
|
-
}
|
|
4161
|
-
}
|
|
4162
|
-
}
|
|
4163
|
-
}
|
|
4164
|
-
}
|
|
4165
|
-
}
|
|
4166
|
-
}
|
|
4682
|
+
if (!validate20(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
4683
|
+
vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);
|
|
4684
|
+
errors = vErrors.length;
|
|
4167
4685
|
}
|
|
4168
4686
|
}
|
|
4169
4687
|
if (data.state !== void 0) {
|
|
4170
|
-
const
|
|
4688
|
+
const err23 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4171
4689
|
if (vErrors === null) {
|
|
4172
|
-
vErrors = [
|
|
4690
|
+
vErrors = [err23];
|
|
4173
4691
|
} else {
|
|
4174
|
-
vErrors.push(
|
|
4692
|
+
vErrors.push(err23);
|
|
4175
4693
|
}
|
|
4176
4694
|
errors++;
|
|
4177
4695
|
}
|
|
4178
4696
|
if (data.git !== void 0) {
|
|
4179
|
-
const
|
|
4697
|
+
const err24 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4180
4698
|
if (vErrors === null) {
|
|
4181
|
-
vErrors = [
|
|
4699
|
+
vErrors = [err24];
|
|
4182
4700
|
} else {
|
|
4183
|
-
vErrors.push(
|
|
4701
|
+
vErrors.push(err24);
|
|
4184
4702
|
}
|
|
4185
4703
|
errors++;
|
|
4186
4704
|
}
|
|
4187
4705
|
if (data.regions !== void 0) {
|
|
4188
|
-
const
|
|
4706
|
+
const err25 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4189
4707
|
if (vErrors === null) {
|
|
4190
|
-
vErrors = [
|
|
4708
|
+
vErrors = [err25];
|
|
4191
4709
|
} else {
|
|
4192
|
-
vErrors.push(
|
|
4710
|
+
vErrors.push(err25);
|
|
4193
4711
|
}
|
|
4194
4712
|
errors++;
|
|
4195
4713
|
}
|
|
@@ -4198,72 +4716,178 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4198
4716
|
valid21 = _valid3;
|
|
4199
4717
|
ifClause3 = "then";
|
|
4200
4718
|
} else {
|
|
4201
|
-
const
|
|
4719
|
+
const _errs66 = errors;
|
|
4720
|
+
const _errs67 = errors;
|
|
4721
|
+
let valid27 = true;
|
|
4722
|
+
const _errs68 = errors;
|
|
4202
4723
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4203
|
-
if (data.
|
|
4204
|
-
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4207
|
-
|
|
4724
|
+
if (data.kind === void 0 && ("kind")) {
|
|
4725
|
+
const err26 = {};
|
|
4726
|
+
if (vErrors === null) {
|
|
4727
|
+
vErrors = [err26];
|
|
4728
|
+
} else {
|
|
4729
|
+
vErrors.push(err26);
|
|
4730
|
+
}
|
|
4731
|
+
errors++;
|
|
4732
|
+
} else {
|
|
4733
|
+
if (data.kind !== void 0) {
|
|
4734
|
+
if ("tree" !== data.kind) {
|
|
4735
|
+
const err27 = {};
|
|
4208
4736
|
if (vErrors === null) {
|
|
4209
|
-
vErrors = [
|
|
4737
|
+
vErrors = [err27];
|
|
4210
4738
|
} else {
|
|
4211
|
-
vErrors.push(
|
|
4739
|
+
vErrors.push(err27);
|
|
4212
4740
|
}
|
|
4213
4741
|
errors++;
|
|
4214
4742
|
}
|
|
4215
4743
|
}
|
|
4216
4744
|
}
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4745
|
+
}
|
|
4746
|
+
var _valid4 = _errs68 === errors;
|
|
4747
|
+
errors = _errs67;
|
|
4748
|
+
if (vErrors !== null) {
|
|
4749
|
+
if (_errs67) {
|
|
4750
|
+
vErrors.length = _errs67;
|
|
4751
|
+
} else {
|
|
4752
|
+
vErrors = null;
|
|
4222
4753
|
}
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4754
|
+
}
|
|
4755
|
+
let ifClause4;
|
|
4756
|
+
if (_valid4) {
|
|
4757
|
+
const _errs70 = errors;
|
|
4758
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4759
|
+
if (data.steps !== void 0) {
|
|
4760
|
+
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
4761
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
4762
|
+
errors = vErrors.length;
|
|
4763
|
+
}
|
|
4227
4764
|
}
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
} else {
|
|
4234
|
-
vErrors.push(err29);
|
|
4765
|
+
if (data.strip !== void 0) {
|
|
4766
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
4767
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
4768
|
+
errors = vErrors.length;
|
|
4769
|
+
}
|
|
4235
4770
|
}
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4771
|
+
if (data.state !== void 0) {
|
|
4772
|
+
const err28 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4773
|
+
if (vErrors === null) {
|
|
4774
|
+
vErrors = [err28];
|
|
4775
|
+
} else {
|
|
4776
|
+
vErrors.push(err28);
|
|
4777
|
+
}
|
|
4778
|
+
errors++;
|
|
4779
|
+
}
|
|
4780
|
+
if (data.git !== void 0) {
|
|
4781
|
+
const err29 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4782
|
+
if (vErrors === null) {
|
|
4783
|
+
vErrors = [err29];
|
|
4784
|
+
} else {
|
|
4785
|
+
vErrors.push(err29);
|
|
4786
|
+
}
|
|
4787
|
+
errors++;
|
|
4788
|
+
}
|
|
4789
|
+
if (data.time !== void 0) {
|
|
4790
|
+
const err30 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4791
|
+
if (vErrors === null) {
|
|
4792
|
+
vErrors = [err30];
|
|
4793
|
+
} else {
|
|
4794
|
+
vErrors.push(err30);
|
|
4795
|
+
}
|
|
4796
|
+
errors++;
|
|
4797
|
+
}
|
|
4798
|
+
if (data.regions !== void 0) {
|
|
4799
|
+
const err31 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4800
|
+
if (vErrors === null) {
|
|
4801
|
+
vErrors = [err31];
|
|
4802
|
+
} else {
|
|
4803
|
+
vErrors.push(err31);
|
|
4804
|
+
}
|
|
4805
|
+
errors++;
|
|
4244
4806
|
}
|
|
4245
|
-
errors++;
|
|
4246
4807
|
}
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4808
|
+
var _valid4 = _errs70 === errors;
|
|
4809
|
+
valid27 = _valid4;
|
|
4810
|
+
ifClause4 = "then";
|
|
4811
|
+
} else {
|
|
4812
|
+
const _errs85 = errors;
|
|
4813
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4814
|
+
if (data.boxes !== void 0) {
|
|
4815
|
+
let data33 = data.boxes;
|
|
4816
|
+
if (Array.isArray(data33)) {
|
|
4817
|
+
if (data33.length < 1) {
|
|
4818
|
+
const err32 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
4819
|
+
if (vErrors === null) {
|
|
4820
|
+
vErrors = [err32];
|
|
4821
|
+
} else {
|
|
4822
|
+
vErrors.push(err32);
|
|
4823
|
+
}
|
|
4824
|
+
errors++;
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4253
4827
|
}
|
|
4254
|
-
|
|
4828
|
+
if (data.steps !== void 0) {
|
|
4829
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
4830
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
4831
|
+
errors = vErrors.length;
|
|
4832
|
+
}
|
|
4833
|
+
}
|
|
4834
|
+
if (data.strip !== void 0) {
|
|
4835
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
4836
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
4837
|
+
errors = vErrors.length;
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
if (data.state !== void 0) {
|
|
4841
|
+
const err33 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4842
|
+
if (vErrors === null) {
|
|
4843
|
+
vErrors = [err33];
|
|
4844
|
+
} else {
|
|
4845
|
+
vErrors.push(err33);
|
|
4846
|
+
}
|
|
4847
|
+
errors++;
|
|
4848
|
+
}
|
|
4849
|
+
if (data.git !== void 0) {
|
|
4850
|
+
const err34 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4851
|
+
if (vErrors === null) {
|
|
4852
|
+
vErrors = [err34];
|
|
4853
|
+
} else {
|
|
4854
|
+
vErrors.push(err34);
|
|
4855
|
+
}
|
|
4856
|
+
errors++;
|
|
4857
|
+
}
|
|
4858
|
+
if (data.time !== void 0) {
|
|
4859
|
+
const err35 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4860
|
+
if (vErrors === null) {
|
|
4861
|
+
vErrors = [err35];
|
|
4862
|
+
} else {
|
|
4863
|
+
vErrors.push(err35);
|
|
4864
|
+
}
|
|
4865
|
+
errors++;
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
var _valid4 = _errs85 === errors;
|
|
4869
|
+
valid27 = _valid4;
|
|
4870
|
+
ifClause4 = "else";
|
|
4871
|
+
}
|
|
4872
|
+
if (!valid27) {
|
|
4873
|
+
const err36 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
4874
|
+
if (vErrors === null) {
|
|
4875
|
+
vErrors = [err36];
|
|
4876
|
+
} else {
|
|
4877
|
+
vErrors.push(err36);
|
|
4255
4878
|
}
|
|
4879
|
+
errors++;
|
|
4256
4880
|
}
|
|
4257
|
-
var _valid3 =
|
|
4881
|
+
var _valid3 = _errs66 === errors;
|
|
4258
4882
|
valid21 = _valid3;
|
|
4259
4883
|
ifClause3 = "else";
|
|
4260
4884
|
}
|
|
4261
4885
|
if (!valid21) {
|
|
4262
|
-
const
|
|
4886
|
+
const err37 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
4263
4887
|
if (vErrors === null) {
|
|
4264
|
-
vErrors = [
|
|
4888
|
+
vErrors = [err37];
|
|
4265
4889
|
} else {
|
|
4266
|
-
vErrors.push(
|
|
4890
|
+
vErrors.push(err37);
|
|
4267
4891
|
}
|
|
4268
4892
|
errors++;
|
|
4269
4893
|
}
|
|
@@ -4272,11 +4896,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4272
4896
|
ifClause2 = "else";
|
|
4273
4897
|
}
|
|
4274
4898
|
if (!valid15) {
|
|
4275
|
-
const
|
|
4899
|
+
const err38 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
4276
4900
|
if (vErrors === null) {
|
|
4277
|
-
vErrors = [
|
|
4901
|
+
vErrors = [err38];
|
|
4278
4902
|
} else {
|
|
4279
|
-
vErrors.push(
|
|
4903
|
+
vErrors.push(err38);
|
|
4280
4904
|
}
|
|
4281
4905
|
errors++;
|
|
4282
4906
|
}
|
|
@@ -4285,21 +4909,21 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4285
4909
|
ifClause1 = "else";
|
|
4286
4910
|
}
|
|
4287
4911
|
if (!valid6) {
|
|
4288
|
-
const
|
|
4912
|
+
const err39 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
4289
4913
|
if (vErrors === null) {
|
|
4290
|
-
vErrors = [
|
|
4914
|
+
vErrors = [err39];
|
|
4291
4915
|
} else {
|
|
4292
|
-
vErrors.push(
|
|
4916
|
+
vErrors.push(err39);
|
|
4293
4917
|
}
|
|
4294
4918
|
errors++;
|
|
4295
4919
|
}
|
|
4296
4920
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4297
4921
|
if (data.sequence !== void 0) {
|
|
4298
|
-
const
|
|
4922
|
+
const err40 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4299
4923
|
if (vErrors === null) {
|
|
4300
|
-
vErrors = [
|
|
4924
|
+
vErrors = [err40];
|
|
4301
4925
|
} else {
|
|
4302
|
-
vErrors.push(
|
|
4926
|
+
vErrors.push(err40);
|
|
4303
4927
|
}
|
|
4304
4928
|
errors++;
|
|
4305
4929
|
}
|
|
@@ -4309,245 +4933,245 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4309
4933
|
ifClause0 = "else";
|
|
4310
4934
|
}
|
|
4311
4935
|
if (!valid0) {
|
|
4312
|
-
const
|
|
4936
|
+
const err41 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
4313
4937
|
if (vErrors === null) {
|
|
4314
|
-
vErrors = [
|
|
4938
|
+
vErrors = [err41];
|
|
4315
4939
|
} else {
|
|
4316
|
-
vErrors.push(
|
|
4940
|
+
vErrors.push(err41);
|
|
4317
4941
|
}
|
|
4318
4942
|
errors++;
|
|
4319
4943
|
}
|
|
4320
4944
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4321
4945
|
if (data.version === void 0) {
|
|
4322
|
-
const
|
|
4946
|
+
const err42 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
4323
4947
|
if (vErrors === null) {
|
|
4324
|
-
vErrors = [
|
|
4948
|
+
vErrors = [err42];
|
|
4325
4949
|
} else {
|
|
4326
|
-
vErrors.push(
|
|
4950
|
+
vErrors.push(err42);
|
|
4327
4951
|
}
|
|
4328
4952
|
errors++;
|
|
4329
4953
|
}
|
|
4330
4954
|
if (data.kind === void 0) {
|
|
4331
|
-
const
|
|
4955
|
+
const err43 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
4332
4956
|
if (vErrors === null) {
|
|
4333
|
-
vErrors = [
|
|
4957
|
+
vErrors = [err43];
|
|
4334
4958
|
} else {
|
|
4335
|
-
vErrors.push(
|
|
4959
|
+
vErrors.push(err43);
|
|
4336
4960
|
}
|
|
4337
4961
|
errors++;
|
|
4338
4962
|
}
|
|
4339
4963
|
if (data.title === void 0) {
|
|
4340
|
-
const
|
|
4964
|
+
const err44 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
4341
4965
|
if (vErrors === null) {
|
|
4342
|
-
vErrors = [
|
|
4966
|
+
vErrors = [err44];
|
|
4343
4967
|
} else {
|
|
4344
|
-
vErrors.push(
|
|
4968
|
+
vErrors.push(err44);
|
|
4345
4969
|
}
|
|
4346
4970
|
errors++;
|
|
4347
4971
|
}
|
|
4348
4972
|
if (data.boxes === void 0) {
|
|
4349
|
-
const
|
|
4973
|
+
const err45 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
4350
4974
|
if (vErrors === null) {
|
|
4351
|
-
vErrors = [
|
|
4975
|
+
vErrors = [err45];
|
|
4352
4976
|
} else {
|
|
4353
|
-
vErrors.push(
|
|
4977
|
+
vErrors.push(err45);
|
|
4354
4978
|
}
|
|
4355
4979
|
errors++;
|
|
4356
4980
|
}
|
|
4357
4981
|
if (data.steps === void 0) {
|
|
4358
|
-
const
|
|
4982
|
+
const err46 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
4359
4983
|
if (vErrors === null) {
|
|
4360
|
-
vErrors = [
|
|
4984
|
+
vErrors = [err46];
|
|
4361
4985
|
} else {
|
|
4362
|
-
vErrors.push(
|
|
4986
|
+
vErrors.push(err46);
|
|
4363
4987
|
}
|
|
4364
4988
|
errors++;
|
|
4365
4989
|
}
|
|
4366
4990
|
for (const key0 in data) {
|
|
4367
4991
|
if (!func2.call(schema11.properties, key0)) {
|
|
4368
|
-
const
|
|
4992
|
+
const err47 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
4369
4993
|
if (vErrors === null) {
|
|
4370
|
-
vErrors = [
|
|
4994
|
+
vErrors = [err47];
|
|
4371
4995
|
} else {
|
|
4372
|
-
vErrors.push(
|
|
4996
|
+
vErrors.push(err47);
|
|
4373
4997
|
}
|
|
4374
4998
|
errors++;
|
|
4375
4999
|
}
|
|
4376
5000
|
}
|
|
4377
5001
|
if (data.version !== void 0) {
|
|
4378
|
-
let
|
|
4379
|
-
if (!(typeof
|
|
4380
|
-
const
|
|
5002
|
+
let data40 = data.version;
|
|
5003
|
+
if (!(typeof data40 == "number" && (!(data40 % 1) && !isNaN(data40)) && isFinite(data40))) {
|
|
5004
|
+
const err48 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
4381
5005
|
if (vErrors === null) {
|
|
4382
|
-
vErrors = [
|
|
5006
|
+
vErrors = [err48];
|
|
4383
5007
|
} else {
|
|
4384
|
-
vErrors.push(
|
|
5008
|
+
vErrors.push(err48);
|
|
4385
5009
|
}
|
|
4386
5010
|
errors++;
|
|
4387
5011
|
}
|
|
4388
|
-
if (typeof
|
|
4389
|
-
if (
|
|
4390
|
-
const
|
|
5012
|
+
if (typeof data40 == "number" && isFinite(data40)) {
|
|
5013
|
+
if (data40 < 1 || isNaN(data40)) {
|
|
5014
|
+
const err49 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
4391
5015
|
if (vErrors === null) {
|
|
4392
|
-
vErrors = [
|
|
5016
|
+
vErrors = [err49];
|
|
4393
5017
|
} else {
|
|
4394
|
-
vErrors.push(
|
|
5018
|
+
vErrors.push(err49);
|
|
4395
5019
|
}
|
|
4396
5020
|
errors++;
|
|
4397
5021
|
}
|
|
4398
5022
|
}
|
|
4399
5023
|
}
|
|
4400
5024
|
if (data.kind !== void 0) {
|
|
4401
|
-
let
|
|
4402
|
-
if (!(
|
|
4403
|
-
const
|
|
5025
|
+
let data41 = data.kind;
|
|
5026
|
+
if (!(data41 === "sequence" || data41 === "architecture" || data41 === "state" || data41 === "git" || data41 === "time" || data41 === "tree")) {
|
|
5027
|
+
const err50 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
4404
5028
|
if (vErrors === null) {
|
|
4405
|
-
vErrors = [
|
|
5029
|
+
vErrors = [err50];
|
|
4406
5030
|
} else {
|
|
4407
|
-
vErrors.push(
|
|
5031
|
+
vErrors.push(err50);
|
|
4408
5032
|
}
|
|
4409
5033
|
errors++;
|
|
4410
5034
|
}
|
|
4411
5035
|
}
|
|
4412
5036
|
if (data.title !== void 0) {
|
|
4413
|
-
let
|
|
4414
|
-
if (typeof
|
|
4415
|
-
if (func3(
|
|
4416
|
-
const
|
|
5037
|
+
let data42 = data.title;
|
|
5038
|
+
if (typeof data42 === "string") {
|
|
5039
|
+
if (func3(data42) < 1) {
|
|
5040
|
+
const err51 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
4417
5041
|
if (vErrors === null) {
|
|
4418
|
-
vErrors = [
|
|
5042
|
+
vErrors = [err51];
|
|
4419
5043
|
} else {
|
|
4420
|
-
vErrors.push(
|
|
5044
|
+
vErrors.push(err51);
|
|
4421
5045
|
}
|
|
4422
5046
|
errors++;
|
|
4423
5047
|
}
|
|
4424
5048
|
} else {
|
|
4425
|
-
const
|
|
5049
|
+
const err52 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4426
5050
|
if (vErrors === null) {
|
|
4427
|
-
vErrors = [
|
|
5051
|
+
vErrors = [err52];
|
|
4428
5052
|
} else {
|
|
4429
|
-
vErrors.push(
|
|
5053
|
+
vErrors.push(err52);
|
|
4430
5054
|
}
|
|
4431
5055
|
errors++;
|
|
4432
5056
|
}
|
|
4433
5057
|
}
|
|
4434
5058
|
if (data.view !== void 0) {
|
|
4435
|
-
let
|
|
4436
|
-
if (!(
|
|
4437
|
-
const
|
|
5059
|
+
let data43 = data.view;
|
|
5060
|
+
if (!(data43 === "fixed" || data43 === "follow")) {
|
|
5061
|
+
const err53 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
|
|
4438
5062
|
if (vErrors === null) {
|
|
4439
|
-
vErrors = [
|
|
5063
|
+
vErrors = [err53];
|
|
4440
5064
|
} else {
|
|
4441
|
-
vErrors.push(
|
|
5065
|
+
vErrors.push(err53);
|
|
4442
5066
|
}
|
|
4443
5067
|
errors++;
|
|
4444
5068
|
}
|
|
4445
5069
|
}
|
|
4446
5070
|
if (data.regions !== void 0) {
|
|
4447
|
-
let
|
|
4448
|
-
if (Array.isArray(
|
|
4449
|
-
const
|
|
4450
|
-
for (let
|
|
4451
|
-
if (!
|
|
4452
|
-
vErrors = vErrors === null ?
|
|
5071
|
+
let data44 = data.regions;
|
|
5072
|
+
if (Array.isArray(data44)) {
|
|
5073
|
+
const len1 = data44.length;
|
|
5074
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
5075
|
+
if (!validate27(data44[i1], { instancePath: instancePath + "/regions/" + i1, parentData: data44, parentDataProperty: i1, rootData })) {
|
|
5076
|
+
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
4453
5077
|
errors = vErrors.length;
|
|
4454
5078
|
}
|
|
4455
5079
|
}
|
|
4456
5080
|
} else {
|
|
4457
|
-
const
|
|
5081
|
+
const err54 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4458
5082
|
if (vErrors === null) {
|
|
4459
|
-
vErrors = [
|
|
5083
|
+
vErrors = [err54];
|
|
4460
5084
|
} else {
|
|
4461
|
-
vErrors.push(
|
|
5085
|
+
vErrors.push(err54);
|
|
4462
5086
|
}
|
|
4463
5087
|
errors++;
|
|
4464
5088
|
}
|
|
4465
5089
|
}
|
|
4466
5090
|
if (data.boxes !== void 0) {
|
|
4467
|
-
let
|
|
4468
|
-
if (Array.isArray(
|
|
4469
|
-
const
|
|
4470
|
-
for (let
|
|
4471
|
-
if (!
|
|
4472
|
-
vErrors = vErrors === null ?
|
|
5091
|
+
let data46 = data.boxes;
|
|
5092
|
+
if (Array.isArray(data46)) {
|
|
5093
|
+
const len2 = data46.length;
|
|
5094
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
5095
|
+
if (!validate29(data46[i2], { instancePath: instancePath + "/boxes/" + i2, parentData: data46, parentDataProperty: i2, rootData })) {
|
|
5096
|
+
vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
|
|
4473
5097
|
errors = vErrors.length;
|
|
4474
5098
|
}
|
|
4475
5099
|
}
|
|
4476
5100
|
} else {
|
|
4477
|
-
const
|
|
5101
|
+
const err55 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4478
5102
|
if (vErrors === null) {
|
|
4479
|
-
vErrors = [
|
|
5103
|
+
vErrors = [err55];
|
|
4480
5104
|
} else {
|
|
4481
|
-
vErrors.push(
|
|
5105
|
+
vErrors.push(err55);
|
|
4482
5106
|
}
|
|
4483
5107
|
errors++;
|
|
4484
5108
|
}
|
|
4485
5109
|
}
|
|
4486
5110
|
if (data.strip !== void 0) {
|
|
4487
|
-
if (!
|
|
4488
|
-
vErrors = vErrors === null ?
|
|
5111
|
+
if (!validate31(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
5112
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
4489
5113
|
errors = vErrors.length;
|
|
4490
5114
|
}
|
|
4491
5115
|
}
|
|
4492
5116
|
if (data.steps !== void 0) {
|
|
4493
|
-
let
|
|
4494
|
-
if (Array.isArray(
|
|
4495
|
-
if (
|
|
4496
|
-
const
|
|
5117
|
+
let data49 = data.steps;
|
|
5118
|
+
if (Array.isArray(data49)) {
|
|
5119
|
+
if (data49.length < 1) {
|
|
5120
|
+
const err56 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
4497
5121
|
if (vErrors === null) {
|
|
4498
|
-
vErrors = [
|
|
5122
|
+
vErrors = [err56];
|
|
4499
5123
|
} else {
|
|
4500
|
-
vErrors.push(
|
|
5124
|
+
vErrors.push(err56);
|
|
4501
5125
|
}
|
|
4502
5126
|
errors++;
|
|
4503
5127
|
}
|
|
4504
|
-
const
|
|
4505
|
-
for (let
|
|
4506
|
-
if (!
|
|
4507
|
-
vErrors = vErrors === null ?
|
|
5128
|
+
const len3 = data49.length;
|
|
5129
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
5130
|
+
if (!validate35(data49[i3], { instancePath: instancePath + "/steps/" + i3, parentData: data49, parentDataProperty: i3, rootData })) {
|
|
5131
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
4508
5132
|
errors = vErrors.length;
|
|
4509
5133
|
}
|
|
4510
5134
|
}
|
|
4511
5135
|
} else {
|
|
4512
|
-
const
|
|
5136
|
+
const err57 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4513
5137
|
if (vErrors === null) {
|
|
4514
|
-
vErrors = [
|
|
5138
|
+
vErrors = [err57];
|
|
4515
5139
|
} else {
|
|
4516
|
-
vErrors.push(
|
|
5140
|
+
vErrors.push(err57);
|
|
4517
5141
|
}
|
|
4518
5142
|
errors++;
|
|
4519
5143
|
}
|
|
4520
5144
|
}
|
|
4521
5145
|
if (data.sequence !== void 0) {
|
|
4522
|
-
if (!
|
|
4523
|
-
vErrors = vErrors === null ?
|
|
5146
|
+
if (!validate43(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
5147
|
+
vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);
|
|
4524
5148
|
errors = vErrors.length;
|
|
4525
5149
|
}
|
|
4526
5150
|
}
|
|
4527
5151
|
if (data.state !== void 0) {
|
|
4528
|
-
if (!
|
|
4529
|
-
vErrors = vErrors === null ?
|
|
5152
|
+
if (!validate45(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
5153
|
+
vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
|
|
4530
5154
|
errors = vErrors.length;
|
|
4531
5155
|
}
|
|
4532
5156
|
}
|
|
4533
5157
|
if (data.git !== void 0) {
|
|
4534
|
-
if (!
|
|
4535
|
-
vErrors = vErrors === null ?
|
|
5158
|
+
if (!validate49(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
5159
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
4536
5160
|
errors = vErrors.length;
|
|
4537
5161
|
}
|
|
4538
5162
|
}
|
|
4539
5163
|
if (data.time !== void 0) {
|
|
4540
|
-
if (!
|
|
4541
|
-
vErrors = vErrors === null ?
|
|
5164
|
+
if (!validate53(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
5165
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
4542
5166
|
errors = vErrors.length;
|
|
4543
5167
|
}
|
|
4544
5168
|
}
|
|
4545
5169
|
} else {
|
|
4546
|
-
const
|
|
5170
|
+
const err58 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4547
5171
|
if (vErrors === null) {
|
|
4548
|
-
vErrors = [
|
|
5172
|
+
vErrors = [err58];
|
|
4549
5173
|
} else {
|
|
4550
|
-
vErrors.push(
|
|
5174
|
+
vErrors.push(err58);
|
|
4551
5175
|
}
|
|
4552
5176
|
errors++;
|
|
4553
5177
|
}
|
|
@@ -4557,7 +5181,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4557
5181
|
var STATE_ENDS = ["start", "finish"];
|
|
4558
5182
|
|
|
4559
5183
|
// src/schema.ts
|
|
4560
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span"];
|
|
5184
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
4561
5185
|
var ABSENT = "#/definitions/absent/not";
|
|
4562
5186
|
var ABSENT_KINDS = { regions: "sequence / architecture / state", at: "time", into: "time", color: "time", meters: "time" };
|
|
4563
5187
|
var NOT_ALLOWED = {
|
|
@@ -4568,6 +5192,8 @@ var GIT_EVENT = /\/events\/items\/properties\/type\/not$/u;
|
|
|
4568
5192
|
var GIT_EVENTS = ["commit", "branch"];
|
|
4569
5193
|
var TIME_EVENT = /\/events\/items\/not$/u;
|
|
4570
5194
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
5195
|
+
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
5196
|
+
var TREE_EVENTS = ["leaf", "node"];
|
|
4571
5197
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
4572
5198
|
var RATIO = /%\)\$$/u;
|
|
4573
5199
|
var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -4598,6 +5224,7 @@ function toFieldError(error, errors, m) {
|
|
|
4598
5224
|
if (RESERVED_ID.test(error.schemaPath)) return { pointer: at, message: m.reserved(STATE_ENDS) };
|
|
4599
5225
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
4600
5226
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
5227
|
+
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
4601
5228
|
const last = at.slice(at.lastIndexOf("/") + 1);
|
|
4602
5229
|
if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
4603
5230
|
const allowed = NOT_ALLOWED[last];
|