table 6.5.0 → 6.7.1
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 +407 -434
- package/dist/alignString.d.ts +2 -3
- package/dist/alignString.js +23 -11
- package/dist/alignTableData.d.ts +1 -2
- package/dist/alignTableData.js +7 -14
- package/dist/calculateCellHeight.d.ts +4 -2
- package/dist/calculateCellHeight.js +8 -9
- package/dist/calculateCellWidths.d.ts +5 -0
- package/dist/{calculateCellWidthIndex.js → calculateCellWidths.js} +6 -6
- package/dist/{calculateMaximumColumnWidthIndex.d.ts → calculateColumnWidths.d.ts} +0 -0
- package/dist/calculateColumnWidths.js +16 -0
- package/dist/calculateRowHeights.d.ts +5 -0
- package/dist/calculateRowHeights.js +18 -0
- package/dist/createStream.d.ts +1 -2
- package/dist/createStream.js +29 -30
- package/dist/drawBorder.d.ts +6 -5
- package/dist/drawBorder.js +60 -14
- package/dist/drawContent.d.ts +9 -0
- package/dist/drawContent.js +26 -0
- package/dist/drawHeader.d.ts +2 -0
- package/dist/drawHeader.js +29 -0
- package/dist/drawRow.d.ts +1 -2
- package/dist/drawRow.js +16 -12
- package/dist/drawTable.d.ts +1 -2
- package/dist/drawTable.js +28 -27
- package/dist/generated/validators.d.ts +2 -2
- package/dist/generated/validators.js +653 -303
- package/dist/getBorderCharacters.d.ts +1 -2
- package/dist/getBorderCharacters.js +7 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -9
- package/dist/makeStreamConfig.d.ts +1 -2
- package/dist/makeStreamConfig.js +14 -26
- package/dist/{makeConfig.d.ts → makeTableConfig.d.ts} +1 -2
- package/dist/{makeConfig.js → makeTableConfig.js} +29 -21
- package/dist/mapDataUsingRowHeights.d.ts +2 -0
- package/dist/mapDataUsingRowHeights.js +44 -0
- package/dist/padTableData.d.ts +2 -2
- package/dist/padTableData.js +10 -4
- package/dist/stringifyTableData.d.ts +1 -2
- package/dist/stringifyTableData.js +7 -2
- package/dist/table.d.ts +1 -2
- package/dist/table.js +23 -24
- package/dist/truncateTableData.d.ts +2 -2
- package/dist/truncateTableData.js +10 -6
- package/dist/types/api.d.ts +18 -4
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +92 -0
- package/dist/validateConfig.d.ts +1 -2
- package/dist/validateConfig.js +3 -1
- package/dist/validateTableData.d.ts +1 -2
- package/dist/validateTableData.js +5 -2
- package/dist/wrapCell.d.ts +1 -2
- package/dist/wrapCell.js +9 -24
- package/dist/wrapString.d.ts +1 -2
- package/dist/wrapString.js +3 -1
- package/dist/wrapWord.d.ts +1 -2
- package/dist/wrapWord.js +3 -1
- package/package.json +4 -5
- package/dist/calculateCellWidthIndex.d.ts +0 -6
- package/dist/calculateMaximumColumnWidthIndex.js +0 -24
- package/dist/calculateRowHeightIndex.d.ts +0 -6
- package/dist/calculateRowHeightIndex.js +0 -21
- package/dist/drawHorizontalContent.d.ts +0 -11
- package/dist/drawHorizontalContent.js +0 -18
- package/dist/mapDataUsingRowHeightIndex.d.ts +0 -3
- package/dist/mapDataUsingRowHeightIndex.js +0 -26
|
@@ -8,6 +8,31 @@ const schema13 = {
|
|
|
8
8
|
"border": {
|
|
9
9
|
"$ref": "shared.json#/definitions/borders"
|
|
10
10
|
},
|
|
11
|
+
"header": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"content": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"alignment": {
|
|
18
|
+
"$ref": "shared.json#/definitions/alignment"
|
|
19
|
+
},
|
|
20
|
+
"wrapWord": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"truncate": {
|
|
24
|
+
"type": "integer"
|
|
25
|
+
},
|
|
26
|
+
"paddingLeft": {
|
|
27
|
+
"type": "integer"
|
|
28
|
+
},
|
|
29
|
+
"paddingRight": {
|
|
30
|
+
"type": "integer"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["content"],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
},
|
|
11
36
|
"columns": {
|
|
12
37
|
"$ref": "shared.json#/definitions/columns"
|
|
13
38
|
},
|
|
@@ -62,6 +87,9 @@ const schema15 = {
|
|
|
62
87
|
"bodyJoin": {
|
|
63
88
|
"$ref": "#/definitions/border"
|
|
64
89
|
},
|
|
90
|
+
"headerJoin": {
|
|
91
|
+
"$ref": "#/definitions/border"
|
|
92
|
+
},
|
|
65
93
|
"joinBody": {
|
|
66
94
|
"$ref": "#/definitions/border"
|
|
67
95
|
},
|
|
@@ -250,6 +278,17 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
250
278
|
errors = vErrors.length;
|
|
251
279
|
}
|
|
252
280
|
}
|
|
281
|
+
if (data.headerJoin !== undefined) {
|
|
282
|
+
if (!(validate46(data.headerJoin, {
|
|
283
|
+
instancePath: instancePath + "/headerJoin",
|
|
284
|
+
parentData: data,
|
|
285
|
+
parentDataProperty: "headerJoin",
|
|
286
|
+
rootData
|
|
287
|
+
}))) {
|
|
288
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
289
|
+
errors = vErrors.length;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
253
292
|
if (data.joinBody !== undefined) {
|
|
254
293
|
if (!(validate46(data.joinBody, {
|
|
255
294
|
instancePath: instancePath + "/joinBody",
|
|
@@ -317,6 +356,53 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
317
356
|
return errors === 0;
|
|
318
357
|
}
|
|
319
358
|
const schema17 = {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"enum": ["left", "right", "center", "justify"]
|
|
361
|
+
};
|
|
362
|
+
const func0 = require("ajv/dist/runtime/equal").default;
|
|
363
|
+
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
364
|
+
let vErrors = null;
|
|
365
|
+
let errors = 0;
|
|
366
|
+
if (typeof data !== "string") {
|
|
367
|
+
const err0 = {
|
|
368
|
+
instancePath,
|
|
369
|
+
schemaPath: "#/type",
|
|
370
|
+
keyword: "type",
|
|
371
|
+
params: {
|
|
372
|
+
type: "string"
|
|
373
|
+
},
|
|
374
|
+
message: "must be string"
|
|
375
|
+
};
|
|
376
|
+
if (vErrors === null) {
|
|
377
|
+
vErrors = [err0];
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
vErrors.push(err0);
|
|
381
|
+
}
|
|
382
|
+
errors++;
|
|
383
|
+
}
|
|
384
|
+
if (!((((data === "left") || (data === "right")) || (data === "center")) || (data === "justify"))) {
|
|
385
|
+
const err1 = {
|
|
386
|
+
instancePath,
|
|
387
|
+
schemaPath: "#/enum",
|
|
388
|
+
keyword: "enum",
|
|
389
|
+
params: {
|
|
390
|
+
allowedValues: schema17.enum
|
|
391
|
+
},
|
|
392
|
+
message: "must be equal to one of the allowed values"
|
|
393
|
+
};
|
|
394
|
+
if (vErrors === null) {
|
|
395
|
+
vErrors = [err1];
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
vErrors.push(err1);
|
|
399
|
+
}
|
|
400
|
+
errors++;
|
|
401
|
+
}
|
|
402
|
+
validate64.errors = vErrors;
|
|
403
|
+
return errors === 0;
|
|
404
|
+
}
|
|
405
|
+
const schema18 = {
|
|
320
406
|
"oneOf": [{
|
|
321
407
|
"type": "object",
|
|
322
408
|
"patternProperties": {
|
|
@@ -333,40 +419,83 @@ const schema17 = {
|
|
|
333
419
|
}]
|
|
334
420
|
};
|
|
335
421
|
const pattern0 = new RegExp("^[0-9]+$", "u");
|
|
336
|
-
const
|
|
422
|
+
const schema19 = {
|
|
337
423
|
"type": "object",
|
|
338
424
|
"properties": {
|
|
339
425
|
"alignment": {
|
|
426
|
+
"$ref": "#/definitions/alignment"
|
|
427
|
+
},
|
|
428
|
+
"verticalAlignment": {
|
|
340
429
|
"type": "string",
|
|
341
|
-
"enum": ["
|
|
430
|
+
"enum": ["top", "middle", "bottom"]
|
|
342
431
|
},
|
|
343
432
|
"width": {
|
|
344
|
-
"type": "
|
|
345
|
-
"minimum": 1
|
|
346
|
-
"multipleOf": 1
|
|
433
|
+
"type": "integer",
|
|
434
|
+
"minimum": 1
|
|
347
435
|
},
|
|
348
436
|
"wrapWord": {
|
|
349
437
|
"type": "boolean"
|
|
350
438
|
},
|
|
351
439
|
"truncate": {
|
|
352
|
-
"type": "
|
|
440
|
+
"type": "integer"
|
|
353
441
|
},
|
|
354
442
|
"paddingLeft": {
|
|
355
|
-
"type": "
|
|
443
|
+
"type": "integer"
|
|
356
444
|
},
|
|
357
445
|
"paddingRight": {
|
|
358
|
-
"type": "
|
|
446
|
+
"type": "integer"
|
|
359
447
|
}
|
|
360
448
|
},
|
|
361
449
|
"additionalProperties": false
|
|
362
450
|
};
|
|
363
|
-
|
|
364
|
-
|
|
451
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
452
|
+
let vErrors = null;
|
|
453
|
+
let errors = 0;
|
|
454
|
+
if (typeof data !== "string") {
|
|
455
|
+
const err0 = {
|
|
456
|
+
instancePath,
|
|
457
|
+
schemaPath: "#/type",
|
|
458
|
+
keyword: "type",
|
|
459
|
+
params: {
|
|
460
|
+
type: "string"
|
|
461
|
+
},
|
|
462
|
+
message: "must be string"
|
|
463
|
+
};
|
|
464
|
+
if (vErrors === null) {
|
|
465
|
+
vErrors = [err0];
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
vErrors.push(err0);
|
|
469
|
+
}
|
|
470
|
+
errors++;
|
|
471
|
+
}
|
|
472
|
+
if (!((((data === "left") || (data === "right")) || (data === "center")) || (data === "justify"))) {
|
|
473
|
+
const err1 = {
|
|
474
|
+
instancePath,
|
|
475
|
+
schemaPath: "#/enum",
|
|
476
|
+
keyword: "enum",
|
|
477
|
+
params: {
|
|
478
|
+
allowedValues: schema17.enum
|
|
479
|
+
},
|
|
480
|
+
message: "must be equal to one of the allowed values"
|
|
481
|
+
};
|
|
482
|
+
if (vErrors === null) {
|
|
483
|
+
vErrors = [err1];
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
vErrors.push(err1);
|
|
487
|
+
}
|
|
488
|
+
errors++;
|
|
489
|
+
}
|
|
490
|
+
validate68.errors = vErrors;
|
|
491
|
+
return errors === 0;
|
|
492
|
+
}
|
|
493
|
+
function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
365
494
|
let vErrors = null;
|
|
366
495
|
let errors = 0;
|
|
367
496
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
368
497
|
for (const key0 in data) {
|
|
369
|
-
if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
498
|
+
if (!(((((((key0 === "alignment") || (key0 === "verticalAlignment")) || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
370
499
|
const err0 = {
|
|
371
500
|
instancePath,
|
|
372
501
|
schemaPath: "#/additionalProperties",
|
|
@@ -386,11 +515,22 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
386
515
|
}
|
|
387
516
|
}
|
|
388
517
|
if (data.alignment !== undefined) {
|
|
389
|
-
|
|
390
|
-
|
|
518
|
+
if (!(validate68(data.alignment, {
|
|
519
|
+
instancePath: instancePath + "/alignment",
|
|
520
|
+
parentData: data,
|
|
521
|
+
parentDataProperty: "alignment",
|
|
522
|
+
rootData
|
|
523
|
+
}))) {
|
|
524
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
525
|
+
errors = vErrors.length;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
if (data.verticalAlignment !== undefined) {
|
|
529
|
+
let data1 = data.verticalAlignment;
|
|
530
|
+
if (typeof data1 !== "string") {
|
|
391
531
|
const err1 = {
|
|
392
|
-
instancePath: instancePath + "/
|
|
393
|
-
schemaPath: "#/properties/
|
|
532
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
533
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
394
534
|
keyword: "type",
|
|
395
535
|
params: {
|
|
396
536
|
type: "string"
|
|
@@ -405,13 +545,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
405
545
|
}
|
|
406
546
|
errors++;
|
|
407
547
|
}
|
|
408
|
-
if (!(((
|
|
548
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
409
549
|
const err2 = {
|
|
410
|
-
instancePath: instancePath + "/
|
|
411
|
-
schemaPath: "#/properties/
|
|
550
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
551
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
412
552
|
keyword: "enum",
|
|
413
553
|
params: {
|
|
414
|
-
allowedValues:
|
|
554
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
415
555
|
},
|
|
416
556
|
message: "must be equal to one of the allowed values"
|
|
417
557
|
};
|
|
@@ -425,10 +565,28 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
425
565
|
}
|
|
426
566
|
}
|
|
427
567
|
if (data.width !== undefined) {
|
|
428
|
-
let
|
|
429
|
-
if ((typeof
|
|
430
|
-
|
|
431
|
-
|
|
568
|
+
let data2 = data.width;
|
|
569
|
+
if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
|
|
570
|
+
const err3 = {
|
|
571
|
+
instancePath: instancePath + "/width",
|
|
572
|
+
schemaPath: "#/properties/width/type",
|
|
573
|
+
keyword: "type",
|
|
574
|
+
params: {
|
|
575
|
+
type: "integer"
|
|
576
|
+
},
|
|
577
|
+
message: "must be integer"
|
|
578
|
+
};
|
|
579
|
+
if (vErrors === null) {
|
|
580
|
+
vErrors = [err3];
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
vErrors.push(err3);
|
|
584
|
+
}
|
|
585
|
+
errors++;
|
|
586
|
+
}
|
|
587
|
+
if ((typeof data2 == "number") && (isFinite(data2))) {
|
|
588
|
+
if (data2 < 1 || isNaN(data2)) {
|
|
589
|
+
const err4 = {
|
|
432
590
|
instancePath: instancePath + "/width",
|
|
433
591
|
schemaPath: "#/properties/width/minimum",
|
|
434
592
|
keyword: "minimum",
|
|
@@ -438,25 +596,6 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
438
596
|
},
|
|
439
597
|
message: "must be >= 1"
|
|
440
598
|
};
|
|
441
|
-
if (vErrors === null) {
|
|
442
|
-
vErrors = [err3];
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
vErrors.push(err3);
|
|
446
|
-
}
|
|
447
|
-
errors++;
|
|
448
|
-
}
|
|
449
|
-
let res0;
|
|
450
|
-
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
451
|
-
const err4 = {
|
|
452
|
-
instancePath: instancePath + "/width",
|
|
453
|
-
schemaPath: "#/properties/width/multipleOf",
|
|
454
|
-
keyword: "multipleOf",
|
|
455
|
-
params: {
|
|
456
|
-
multipleOf: 1
|
|
457
|
-
},
|
|
458
|
-
message: "must be multiple of 1"
|
|
459
|
-
};
|
|
460
599
|
if (vErrors === null) {
|
|
461
600
|
vErrors = [err4];
|
|
462
601
|
}
|
|
@@ -466,28 +605,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
466
605
|
errors++;
|
|
467
606
|
}
|
|
468
607
|
}
|
|
469
|
-
else {
|
|
470
|
-
const err5 = {
|
|
471
|
-
instancePath: instancePath + "/width",
|
|
472
|
-
schemaPath: "#/properties/width/type",
|
|
473
|
-
keyword: "type",
|
|
474
|
-
params: {
|
|
475
|
-
type: "number"
|
|
476
|
-
},
|
|
477
|
-
message: "must be number"
|
|
478
|
-
};
|
|
479
|
-
if (vErrors === null) {
|
|
480
|
-
vErrors = [err5];
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
vErrors.push(err5);
|
|
484
|
-
}
|
|
485
|
-
errors++;
|
|
486
|
-
}
|
|
487
608
|
}
|
|
488
609
|
if (data.wrapWord !== undefined) {
|
|
489
610
|
if (typeof data.wrapWord !== "boolean") {
|
|
490
|
-
const
|
|
611
|
+
const err5 = {
|
|
491
612
|
instancePath: instancePath + "/wrapWord",
|
|
492
613
|
schemaPath: "#/properties/wrapWord/type",
|
|
493
614
|
keyword: "type",
|
|
@@ -497,80 +618,80 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
497
618
|
message: "must be boolean"
|
|
498
619
|
};
|
|
499
620
|
if (vErrors === null) {
|
|
500
|
-
vErrors = [
|
|
621
|
+
vErrors = [err5];
|
|
501
622
|
}
|
|
502
623
|
else {
|
|
503
|
-
vErrors.push(
|
|
624
|
+
vErrors.push(err5);
|
|
504
625
|
}
|
|
505
626
|
errors++;
|
|
506
627
|
}
|
|
507
628
|
}
|
|
508
629
|
if (data.truncate !== undefined) {
|
|
509
|
-
let
|
|
510
|
-
if (!((typeof
|
|
511
|
-
const
|
|
630
|
+
let data4 = data.truncate;
|
|
631
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
632
|
+
const err6 = {
|
|
512
633
|
instancePath: instancePath + "/truncate",
|
|
513
634
|
schemaPath: "#/properties/truncate/type",
|
|
514
635
|
keyword: "type",
|
|
515
636
|
params: {
|
|
516
|
-
type: "
|
|
637
|
+
type: "integer"
|
|
517
638
|
},
|
|
518
|
-
message: "must be
|
|
639
|
+
message: "must be integer"
|
|
519
640
|
};
|
|
520
641
|
if (vErrors === null) {
|
|
521
|
-
vErrors = [
|
|
642
|
+
vErrors = [err6];
|
|
522
643
|
}
|
|
523
644
|
else {
|
|
524
|
-
vErrors.push(
|
|
645
|
+
vErrors.push(err6);
|
|
525
646
|
}
|
|
526
647
|
errors++;
|
|
527
648
|
}
|
|
528
649
|
}
|
|
529
650
|
if (data.paddingLeft !== undefined) {
|
|
530
|
-
let
|
|
531
|
-
if (!((typeof
|
|
532
|
-
const
|
|
651
|
+
let data5 = data.paddingLeft;
|
|
652
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
653
|
+
const err7 = {
|
|
533
654
|
instancePath: instancePath + "/paddingLeft",
|
|
534
655
|
schemaPath: "#/properties/paddingLeft/type",
|
|
535
656
|
keyword: "type",
|
|
536
657
|
params: {
|
|
537
|
-
type: "
|
|
658
|
+
type: "integer"
|
|
538
659
|
},
|
|
539
|
-
message: "must be
|
|
660
|
+
message: "must be integer"
|
|
540
661
|
};
|
|
541
662
|
if (vErrors === null) {
|
|
542
|
-
vErrors = [
|
|
663
|
+
vErrors = [err7];
|
|
543
664
|
}
|
|
544
665
|
else {
|
|
545
|
-
vErrors.push(
|
|
666
|
+
vErrors.push(err7);
|
|
546
667
|
}
|
|
547
668
|
errors++;
|
|
548
669
|
}
|
|
549
670
|
}
|
|
550
671
|
if (data.paddingRight !== undefined) {
|
|
551
|
-
let
|
|
552
|
-
if (!((typeof
|
|
553
|
-
const
|
|
672
|
+
let data6 = data.paddingRight;
|
|
673
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
674
|
+
const err8 = {
|
|
554
675
|
instancePath: instancePath + "/paddingRight",
|
|
555
676
|
schemaPath: "#/properties/paddingRight/type",
|
|
556
677
|
keyword: "type",
|
|
557
678
|
params: {
|
|
558
|
-
type: "
|
|
679
|
+
type: "integer"
|
|
559
680
|
},
|
|
560
|
-
message: "must be
|
|
681
|
+
message: "must be integer"
|
|
561
682
|
};
|
|
562
683
|
if (vErrors === null) {
|
|
563
|
-
vErrors = [
|
|
684
|
+
vErrors = [err8];
|
|
564
685
|
}
|
|
565
686
|
else {
|
|
566
|
-
vErrors.push(
|
|
687
|
+
vErrors.push(err8);
|
|
567
688
|
}
|
|
568
689
|
errors++;
|
|
569
690
|
}
|
|
570
691
|
}
|
|
571
692
|
}
|
|
572
693
|
else {
|
|
573
|
-
const
|
|
694
|
+
const err9 = {
|
|
574
695
|
instancePath,
|
|
575
696
|
schemaPath: "#/type",
|
|
576
697
|
keyword: "type",
|
|
@@ -580,17 +701,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
580
701
|
message: "must be object"
|
|
581
702
|
};
|
|
582
703
|
if (vErrors === null) {
|
|
583
|
-
vErrors = [
|
|
704
|
+
vErrors = [err9];
|
|
584
705
|
}
|
|
585
706
|
else {
|
|
586
|
-
vErrors.push(
|
|
707
|
+
vErrors.push(err9);
|
|
587
708
|
}
|
|
588
709
|
errors++;
|
|
589
710
|
}
|
|
590
|
-
|
|
711
|
+
validate67.errors = vErrors;
|
|
591
712
|
return errors === 0;
|
|
592
713
|
}
|
|
593
|
-
function
|
|
714
|
+
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
594
715
|
let vErrors = null;
|
|
595
716
|
let errors = 0;
|
|
596
717
|
const _errs0 = errors;
|
|
@@ -620,13 +741,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
620
741
|
}
|
|
621
742
|
for (const key1 in data) {
|
|
622
743
|
if (pattern0.test(key1)) {
|
|
623
|
-
if (!(
|
|
744
|
+
if (!(validate67(data[key1], {
|
|
624
745
|
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
625
746
|
parentData: data,
|
|
626
747
|
parentDataProperty: key1,
|
|
627
748
|
rootData
|
|
628
749
|
}))) {
|
|
629
|
-
vErrors = vErrors === null ?
|
|
750
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
630
751
|
errors = vErrors.length;
|
|
631
752
|
}
|
|
632
753
|
}
|
|
@@ -659,13 +780,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
659
780
|
if (Array.isArray(data)) {
|
|
660
781
|
const len0 = data.length;
|
|
661
782
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
662
|
-
if (!(
|
|
783
|
+
if (!(validate67(data[i0], {
|
|
663
784
|
instancePath: instancePath + "/" + i0,
|
|
664
785
|
parentData: data,
|
|
665
786
|
parentDataProperty: i0,
|
|
666
787
|
rootData
|
|
667
788
|
}))) {
|
|
668
|
-
vErrors = vErrors === null ?
|
|
789
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
669
790
|
errors = vErrors.length;
|
|
670
791
|
}
|
|
671
792
|
}
|
|
@@ -728,15 +849,15 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
728
849
|
}
|
|
729
850
|
}
|
|
730
851
|
}
|
|
731
|
-
|
|
852
|
+
validate66.errors = vErrors;
|
|
732
853
|
return errors === 0;
|
|
733
854
|
}
|
|
734
|
-
function
|
|
855
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
735
856
|
let vErrors = null;
|
|
736
857
|
let errors = 0;
|
|
737
858
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
738
859
|
for (const key0 in data) {
|
|
739
|
-
if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
860
|
+
if (!(((((((key0 === "alignment") || (key0 === "verticalAlignment")) || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
740
861
|
const err0 = {
|
|
741
862
|
instancePath,
|
|
742
863
|
schemaPath: "#/additionalProperties",
|
|
@@ -756,11 +877,22 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
756
877
|
}
|
|
757
878
|
}
|
|
758
879
|
if (data.alignment !== undefined) {
|
|
759
|
-
|
|
760
|
-
|
|
880
|
+
if (!(validate68(data.alignment, {
|
|
881
|
+
instancePath: instancePath + "/alignment",
|
|
882
|
+
parentData: data,
|
|
883
|
+
parentDataProperty: "alignment",
|
|
884
|
+
rootData
|
|
885
|
+
}))) {
|
|
886
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
887
|
+
errors = vErrors.length;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
if (data.verticalAlignment !== undefined) {
|
|
891
|
+
let data1 = data.verticalAlignment;
|
|
892
|
+
if (typeof data1 !== "string") {
|
|
761
893
|
const err1 = {
|
|
762
|
-
instancePath: instancePath + "/
|
|
763
|
-
schemaPath: "#/properties/
|
|
894
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
895
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
764
896
|
keyword: "type",
|
|
765
897
|
params: {
|
|
766
898
|
type: "string"
|
|
@@ -775,13 +907,13 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
775
907
|
}
|
|
776
908
|
errors++;
|
|
777
909
|
}
|
|
778
|
-
if (!(((
|
|
910
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
779
911
|
const err2 = {
|
|
780
|
-
instancePath: instancePath + "/
|
|
781
|
-
schemaPath: "#/properties/
|
|
912
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
913
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
782
914
|
keyword: "enum",
|
|
783
915
|
params: {
|
|
784
|
-
allowedValues:
|
|
916
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
785
917
|
},
|
|
786
918
|
message: "must be equal to one of the allowed values"
|
|
787
919
|
};
|
|
@@ -795,10 +927,28 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
795
927
|
}
|
|
796
928
|
}
|
|
797
929
|
if (data.width !== undefined) {
|
|
798
|
-
let
|
|
799
|
-
if ((typeof
|
|
800
|
-
|
|
801
|
-
|
|
930
|
+
let data2 = data.width;
|
|
931
|
+
if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
|
|
932
|
+
const err3 = {
|
|
933
|
+
instancePath: instancePath + "/width",
|
|
934
|
+
schemaPath: "#/properties/width/type",
|
|
935
|
+
keyword: "type",
|
|
936
|
+
params: {
|
|
937
|
+
type: "integer"
|
|
938
|
+
},
|
|
939
|
+
message: "must be integer"
|
|
940
|
+
};
|
|
941
|
+
if (vErrors === null) {
|
|
942
|
+
vErrors = [err3];
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
vErrors.push(err3);
|
|
946
|
+
}
|
|
947
|
+
errors++;
|
|
948
|
+
}
|
|
949
|
+
if ((typeof data2 == "number") && (isFinite(data2))) {
|
|
950
|
+
if (data2 < 1 || isNaN(data2)) {
|
|
951
|
+
const err4 = {
|
|
802
952
|
instancePath: instancePath + "/width",
|
|
803
953
|
schemaPath: "#/properties/width/minimum",
|
|
804
954
|
keyword: "minimum",
|
|
@@ -808,25 +958,6 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
808
958
|
},
|
|
809
959
|
message: "must be >= 1"
|
|
810
960
|
};
|
|
811
|
-
if (vErrors === null) {
|
|
812
|
-
vErrors = [err3];
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
vErrors.push(err3);
|
|
816
|
-
}
|
|
817
|
-
errors++;
|
|
818
|
-
}
|
|
819
|
-
let res0;
|
|
820
|
-
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
821
|
-
const err4 = {
|
|
822
|
-
instancePath: instancePath + "/width",
|
|
823
|
-
schemaPath: "#/properties/width/multipleOf",
|
|
824
|
-
keyword: "multipleOf",
|
|
825
|
-
params: {
|
|
826
|
-
multipleOf: 1
|
|
827
|
-
},
|
|
828
|
-
message: "must be multiple of 1"
|
|
829
|
-
};
|
|
830
961
|
if (vErrors === null) {
|
|
831
962
|
vErrors = [err4];
|
|
832
963
|
}
|
|
@@ -836,28 +967,10 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
836
967
|
errors++;
|
|
837
968
|
}
|
|
838
969
|
}
|
|
839
|
-
else {
|
|
840
|
-
const err5 = {
|
|
841
|
-
instancePath: instancePath + "/width",
|
|
842
|
-
schemaPath: "#/properties/width/type",
|
|
843
|
-
keyword: "type",
|
|
844
|
-
params: {
|
|
845
|
-
type: "number"
|
|
846
|
-
},
|
|
847
|
-
message: "must be number"
|
|
848
|
-
};
|
|
849
|
-
if (vErrors === null) {
|
|
850
|
-
vErrors = [err5];
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
vErrors.push(err5);
|
|
854
|
-
}
|
|
855
|
-
errors++;
|
|
856
|
-
}
|
|
857
970
|
}
|
|
858
971
|
if (data.wrapWord !== undefined) {
|
|
859
972
|
if (typeof data.wrapWord !== "boolean") {
|
|
860
|
-
const
|
|
973
|
+
const err5 = {
|
|
861
974
|
instancePath: instancePath + "/wrapWord",
|
|
862
975
|
schemaPath: "#/properties/wrapWord/type",
|
|
863
976
|
keyword: "type",
|
|
@@ -867,80 +980,80 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
867
980
|
message: "must be boolean"
|
|
868
981
|
};
|
|
869
982
|
if (vErrors === null) {
|
|
870
|
-
vErrors = [
|
|
983
|
+
vErrors = [err5];
|
|
871
984
|
}
|
|
872
985
|
else {
|
|
873
|
-
vErrors.push(
|
|
986
|
+
vErrors.push(err5);
|
|
874
987
|
}
|
|
875
988
|
errors++;
|
|
876
989
|
}
|
|
877
990
|
}
|
|
878
991
|
if (data.truncate !== undefined) {
|
|
879
|
-
let
|
|
880
|
-
if (!((typeof
|
|
881
|
-
const
|
|
992
|
+
let data4 = data.truncate;
|
|
993
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
994
|
+
const err6 = {
|
|
882
995
|
instancePath: instancePath + "/truncate",
|
|
883
996
|
schemaPath: "#/properties/truncate/type",
|
|
884
997
|
keyword: "type",
|
|
885
998
|
params: {
|
|
886
|
-
type: "
|
|
999
|
+
type: "integer"
|
|
887
1000
|
},
|
|
888
|
-
message: "must be
|
|
1001
|
+
message: "must be integer"
|
|
889
1002
|
};
|
|
890
1003
|
if (vErrors === null) {
|
|
891
|
-
vErrors = [
|
|
1004
|
+
vErrors = [err6];
|
|
892
1005
|
}
|
|
893
1006
|
else {
|
|
894
|
-
vErrors.push(
|
|
1007
|
+
vErrors.push(err6);
|
|
895
1008
|
}
|
|
896
1009
|
errors++;
|
|
897
1010
|
}
|
|
898
1011
|
}
|
|
899
1012
|
if (data.paddingLeft !== undefined) {
|
|
900
|
-
let
|
|
901
|
-
if (!((typeof
|
|
902
|
-
const
|
|
1013
|
+
let data5 = data.paddingLeft;
|
|
1014
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1015
|
+
const err7 = {
|
|
903
1016
|
instancePath: instancePath + "/paddingLeft",
|
|
904
1017
|
schemaPath: "#/properties/paddingLeft/type",
|
|
905
1018
|
keyword: "type",
|
|
906
1019
|
params: {
|
|
907
|
-
type: "
|
|
1020
|
+
type: "integer"
|
|
908
1021
|
},
|
|
909
|
-
message: "must be
|
|
1022
|
+
message: "must be integer"
|
|
910
1023
|
};
|
|
911
1024
|
if (vErrors === null) {
|
|
912
|
-
vErrors = [
|
|
1025
|
+
vErrors = [err7];
|
|
913
1026
|
}
|
|
914
1027
|
else {
|
|
915
|
-
vErrors.push(
|
|
1028
|
+
vErrors.push(err7);
|
|
916
1029
|
}
|
|
917
1030
|
errors++;
|
|
918
1031
|
}
|
|
919
1032
|
}
|
|
920
1033
|
if (data.paddingRight !== undefined) {
|
|
921
|
-
let
|
|
922
|
-
if (!((typeof
|
|
923
|
-
const
|
|
1034
|
+
let data6 = data.paddingRight;
|
|
1035
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
1036
|
+
const err8 = {
|
|
924
1037
|
instancePath: instancePath + "/paddingRight",
|
|
925
1038
|
schemaPath: "#/properties/paddingRight/type",
|
|
926
1039
|
keyword: "type",
|
|
927
1040
|
params: {
|
|
928
|
-
type: "
|
|
1041
|
+
type: "integer"
|
|
929
1042
|
},
|
|
930
|
-
message: "must be
|
|
1043
|
+
message: "must be integer"
|
|
931
1044
|
};
|
|
932
1045
|
if (vErrors === null) {
|
|
933
|
-
vErrors = [
|
|
1046
|
+
vErrors = [err8];
|
|
934
1047
|
}
|
|
935
1048
|
else {
|
|
936
|
-
vErrors.push(
|
|
1049
|
+
vErrors.push(err8);
|
|
937
1050
|
}
|
|
938
1051
|
errors++;
|
|
939
1052
|
}
|
|
940
1053
|
}
|
|
941
1054
|
}
|
|
942
1055
|
else {
|
|
943
|
-
const
|
|
1056
|
+
const err9 = {
|
|
944
1057
|
instancePath,
|
|
945
1058
|
schemaPath: "#/type",
|
|
946
1059
|
keyword: "type",
|
|
@@ -950,14 +1063,14 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
950
1063
|
message: "must be object"
|
|
951
1064
|
};
|
|
952
1065
|
if (vErrors === null) {
|
|
953
|
-
vErrors = [
|
|
1066
|
+
vErrors = [err9];
|
|
954
1067
|
}
|
|
955
1068
|
else {
|
|
956
|
-
vErrors.push(
|
|
1069
|
+
vErrors.push(err9);
|
|
957
1070
|
}
|
|
958
1071
|
errors++;
|
|
959
1072
|
}
|
|
960
|
-
|
|
1073
|
+
validate73.errors = vErrors;
|
|
961
1074
|
return errors === 0;
|
|
962
1075
|
}
|
|
963
1076
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -966,7 +1079,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
966
1079
|
let errors = 0;
|
|
967
1080
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
968
1081
|
for (const key0 in data) {
|
|
969
|
-
if (!((((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawVerticalLine")) || (key0 === "drawHorizontalLine")) || (key0 === "singleLine"))) {
|
|
1082
|
+
if (!(((((((key0 === "border") || (key0 === "header")) || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawVerticalLine")) || (key0 === "drawHorizontalLine")) || (key0 === "singleLine"))) {
|
|
970
1083
|
const err0 = {
|
|
971
1084
|
instancePath,
|
|
972
1085
|
schemaPath: "#/additionalProperties",
|
|
@@ -996,31 +1109,206 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
996
1109
|
errors = vErrors.length;
|
|
997
1110
|
}
|
|
998
1111
|
}
|
|
1112
|
+
if (data.header !== undefined) {
|
|
1113
|
+
let data1 = data.header;
|
|
1114
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1115
|
+
if (data1.content === undefined) {
|
|
1116
|
+
const err1 = {
|
|
1117
|
+
instancePath: instancePath + "/header",
|
|
1118
|
+
schemaPath: "#/properties/header/required",
|
|
1119
|
+
keyword: "required",
|
|
1120
|
+
params: {
|
|
1121
|
+
missingProperty: "content"
|
|
1122
|
+
},
|
|
1123
|
+
message: "must have required property '" + "content" + "'"
|
|
1124
|
+
};
|
|
1125
|
+
if (vErrors === null) {
|
|
1126
|
+
vErrors = [err1];
|
|
1127
|
+
}
|
|
1128
|
+
else {
|
|
1129
|
+
vErrors.push(err1);
|
|
1130
|
+
}
|
|
1131
|
+
errors++;
|
|
1132
|
+
}
|
|
1133
|
+
for (const key1 in data1) {
|
|
1134
|
+
if (!((((((key1 === "content") || (key1 === "alignment")) || (key1 === "wrapWord")) || (key1 === "truncate")) || (key1 === "paddingLeft")) || (key1 === "paddingRight"))) {
|
|
1135
|
+
const err2 = {
|
|
1136
|
+
instancePath: instancePath + "/header",
|
|
1137
|
+
schemaPath: "#/properties/header/additionalProperties",
|
|
1138
|
+
keyword: "additionalProperties",
|
|
1139
|
+
params: {
|
|
1140
|
+
additionalProperty: key1
|
|
1141
|
+
},
|
|
1142
|
+
message: "must NOT have additional properties"
|
|
1143
|
+
};
|
|
1144
|
+
if (vErrors === null) {
|
|
1145
|
+
vErrors = [err2];
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
vErrors.push(err2);
|
|
1149
|
+
}
|
|
1150
|
+
errors++;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
if (data1.content !== undefined) {
|
|
1154
|
+
if (typeof data1.content !== "string") {
|
|
1155
|
+
const err3 = {
|
|
1156
|
+
instancePath: instancePath + "/header/content",
|
|
1157
|
+
schemaPath: "#/properties/header/properties/content/type",
|
|
1158
|
+
keyword: "type",
|
|
1159
|
+
params: {
|
|
1160
|
+
type: "string"
|
|
1161
|
+
},
|
|
1162
|
+
message: "must be string"
|
|
1163
|
+
};
|
|
1164
|
+
if (vErrors === null) {
|
|
1165
|
+
vErrors = [err3];
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
vErrors.push(err3);
|
|
1169
|
+
}
|
|
1170
|
+
errors++;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (data1.alignment !== undefined) {
|
|
1174
|
+
if (!(validate64(data1.alignment, {
|
|
1175
|
+
instancePath: instancePath + "/header/alignment",
|
|
1176
|
+
parentData: data1,
|
|
1177
|
+
parentDataProperty: "alignment",
|
|
1178
|
+
rootData
|
|
1179
|
+
}))) {
|
|
1180
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
1181
|
+
errors = vErrors.length;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
if (data1.wrapWord !== undefined) {
|
|
1185
|
+
if (typeof data1.wrapWord !== "boolean") {
|
|
1186
|
+
const err4 = {
|
|
1187
|
+
instancePath: instancePath + "/header/wrapWord",
|
|
1188
|
+
schemaPath: "#/properties/header/properties/wrapWord/type",
|
|
1189
|
+
keyword: "type",
|
|
1190
|
+
params: {
|
|
1191
|
+
type: "boolean"
|
|
1192
|
+
},
|
|
1193
|
+
message: "must be boolean"
|
|
1194
|
+
};
|
|
1195
|
+
if (vErrors === null) {
|
|
1196
|
+
vErrors = [err4];
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
vErrors.push(err4);
|
|
1200
|
+
}
|
|
1201
|
+
errors++;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
if (data1.truncate !== undefined) {
|
|
1205
|
+
let data5 = data1.truncate;
|
|
1206
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1207
|
+
const err5 = {
|
|
1208
|
+
instancePath: instancePath + "/header/truncate",
|
|
1209
|
+
schemaPath: "#/properties/header/properties/truncate/type",
|
|
1210
|
+
keyword: "type",
|
|
1211
|
+
params: {
|
|
1212
|
+
type: "integer"
|
|
1213
|
+
},
|
|
1214
|
+
message: "must be integer"
|
|
1215
|
+
};
|
|
1216
|
+
if (vErrors === null) {
|
|
1217
|
+
vErrors = [err5];
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
vErrors.push(err5);
|
|
1221
|
+
}
|
|
1222
|
+
errors++;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
if (data1.paddingLeft !== undefined) {
|
|
1226
|
+
let data6 = data1.paddingLeft;
|
|
1227
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
1228
|
+
const err6 = {
|
|
1229
|
+
instancePath: instancePath + "/header/paddingLeft",
|
|
1230
|
+
schemaPath: "#/properties/header/properties/paddingLeft/type",
|
|
1231
|
+
keyword: "type",
|
|
1232
|
+
params: {
|
|
1233
|
+
type: "integer"
|
|
1234
|
+
},
|
|
1235
|
+
message: "must be integer"
|
|
1236
|
+
};
|
|
1237
|
+
if (vErrors === null) {
|
|
1238
|
+
vErrors = [err6];
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
vErrors.push(err6);
|
|
1242
|
+
}
|
|
1243
|
+
errors++;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
if (data1.paddingRight !== undefined) {
|
|
1247
|
+
let data7 = data1.paddingRight;
|
|
1248
|
+
if (!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) {
|
|
1249
|
+
const err7 = {
|
|
1250
|
+
instancePath: instancePath + "/header/paddingRight",
|
|
1251
|
+
schemaPath: "#/properties/header/properties/paddingRight/type",
|
|
1252
|
+
keyword: "type",
|
|
1253
|
+
params: {
|
|
1254
|
+
type: "integer"
|
|
1255
|
+
},
|
|
1256
|
+
message: "must be integer"
|
|
1257
|
+
};
|
|
1258
|
+
if (vErrors === null) {
|
|
1259
|
+
vErrors = [err7];
|
|
1260
|
+
}
|
|
1261
|
+
else {
|
|
1262
|
+
vErrors.push(err7);
|
|
1263
|
+
}
|
|
1264
|
+
errors++;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
else {
|
|
1269
|
+
const err8 = {
|
|
1270
|
+
instancePath: instancePath + "/header",
|
|
1271
|
+
schemaPath: "#/properties/header/type",
|
|
1272
|
+
keyword: "type",
|
|
1273
|
+
params: {
|
|
1274
|
+
type: "object"
|
|
1275
|
+
},
|
|
1276
|
+
message: "must be object"
|
|
1277
|
+
};
|
|
1278
|
+
if (vErrors === null) {
|
|
1279
|
+
vErrors = [err8];
|
|
1280
|
+
}
|
|
1281
|
+
else {
|
|
1282
|
+
vErrors.push(err8);
|
|
1283
|
+
}
|
|
1284
|
+
errors++;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
999
1287
|
if (data.columns !== undefined) {
|
|
1000
|
-
if (!(
|
|
1288
|
+
if (!(validate66(data.columns, {
|
|
1001
1289
|
instancePath: instancePath + "/columns",
|
|
1002
1290
|
parentData: data,
|
|
1003
1291
|
parentDataProperty: "columns",
|
|
1004
1292
|
rootData
|
|
1005
1293
|
}))) {
|
|
1006
|
-
vErrors = vErrors === null ?
|
|
1294
|
+
vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);
|
|
1007
1295
|
errors = vErrors.length;
|
|
1008
1296
|
}
|
|
1009
1297
|
}
|
|
1010
1298
|
if (data.columnDefault !== undefined) {
|
|
1011
|
-
if (!(
|
|
1299
|
+
if (!(validate73(data.columnDefault, {
|
|
1012
1300
|
instancePath: instancePath + "/columnDefault",
|
|
1013
1301
|
parentData: data,
|
|
1014
1302
|
parentDataProperty: "columnDefault",
|
|
1015
1303
|
rootData
|
|
1016
1304
|
}))) {
|
|
1017
|
-
vErrors = vErrors === null ?
|
|
1305
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
1018
1306
|
errors = vErrors.length;
|
|
1019
1307
|
}
|
|
1020
1308
|
}
|
|
1021
1309
|
if (data.drawVerticalLine !== undefined) {
|
|
1022
1310
|
if (typeof data.drawVerticalLine != "function") {
|
|
1023
|
-
const
|
|
1311
|
+
const err9 = {
|
|
1024
1312
|
instancePath: instancePath + "/drawVerticalLine",
|
|
1025
1313
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
1026
1314
|
keyword: "typeof",
|
|
@@ -1028,17 +1316,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1028
1316
|
message: "should pass \"typeof\" keyword validation"
|
|
1029
1317
|
};
|
|
1030
1318
|
if (vErrors === null) {
|
|
1031
|
-
vErrors = [
|
|
1319
|
+
vErrors = [err9];
|
|
1032
1320
|
}
|
|
1033
1321
|
else {
|
|
1034
|
-
vErrors.push(
|
|
1322
|
+
vErrors.push(err9);
|
|
1035
1323
|
}
|
|
1036
1324
|
errors++;
|
|
1037
1325
|
}
|
|
1038
1326
|
}
|
|
1039
1327
|
if (data.drawHorizontalLine !== undefined) {
|
|
1040
1328
|
if (typeof data.drawHorizontalLine != "function") {
|
|
1041
|
-
const
|
|
1329
|
+
const err10 = {
|
|
1042
1330
|
instancePath: instancePath + "/drawHorizontalLine",
|
|
1043
1331
|
schemaPath: "#/properties/drawHorizontalLine/typeof",
|
|
1044
1332
|
keyword: "typeof",
|
|
@@ -1046,17 +1334,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1046
1334
|
message: "should pass \"typeof\" keyword validation"
|
|
1047
1335
|
};
|
|
1048
1336
|
if (vErrors === null) {
|
|
1049
|
-
vErrors = [
|
|
1337
|
+
vErrors = [err10];
|
|
1050
1338
|
}
|
|
1051
1339
|
else {
|
|
1052
|
-
vErrors.push(
|
|
1340
|
+
vErrors.push(err10);
|
|
1053
1341
|
}
|
|
1054
1342
|
errors++;
|
|
1055
1343
|
}
|
|
1056
1344
|
}
|
|
1057
1345
|
if (data.singleLine !== undefined) {
|
|
1058
1346
|
if (typeof data.singleLine != "boolean") {
|
|
1059
|
-
const
|
|
1347
|
+
const err11 = {
|
|
1060
1348
|
instancePath: instancePath + "/singleLine",
|
|
1061
1349
|
schemaPath: "#/properties/singleLine/typeof",
|
|
1062
1350
|
keyword: "typeof",
|
|
@@ -1064,17 +1352,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1064
1352
|
message: "should pass \"typeof\" keyword validation"
|
|
1065
1353
|
};
|
|
1066
1354
|
if (vErrors === null) {
|
|
1067
|
-
vErrors = [
|
|
1355
|
+
vErrors = [err11];
|
|
1068
1356
|
}
|
|
1069
1357
|
else {
|
|
1070
|
-
vErrors.push(
|
|
1358
|
+
vErrors.push(err11);
|
|
1071
1359
|
}
|
|
1072
1360
|
errors++;
|
|
1073
1361
|
}
|
|
1074
1362
|
}
|
|
1075
1363
|
}
|
|
1076
1364
|
else {
|
|
1077
|
-
const
|
|
1365
|
+
const err12 = {
|
|
1078
1366
|
instancePath,
|
|
1079
1367
|
schemaPath: "#/type",
|
|
1080
1368
|
keyword: "type",
|
|
@@ -1084,18 +1372,18 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1084
1372
|
message: "must be object"
|
|
1085
1373
|
};
|
|
1086
1374
|
if (vErrors === null) {
|
|
1087
|
-
vErrors = [
|
|
1375
|
+
vErrors = [err12];
|
|
1088
1376
|
}
|
|
1089
1377
|
else {
|
|
1090
|
-
vErrors.push(
|
|
1378
|
+
vErrors.push(err12);
|
|
1091
1379
|
}
|
|
1092
1380
|
errors++;
|
|
1093
1381
|
}
|
|
1094
1382
|
validate43.errors = vErrors;
|
|
1095
1383
|
return errors === 0;
|
|
1096
1384
|
}
|
|
1097
|
-
exports["streamConfig.json"] =
|
|
1098
|
-
const
|
|
1385
|
+
exports["streamConfig.json"] = validate76;
|
|
1386
|
+
const schema22 = {
|
|
1099
1387
|
"$id": "streamConfig.json",
|
|
1100
1388
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1101
1389
|
"type": "object",
|
|
@@ -1110,15 +1398,17 @@ const schema20 = {
|
|
|
1110
1398
|
"$ref": "shared.json#/definitions/column"
|
|
1111
1399
|
},
|
|
1112
1400
|
"columnCount": {
|
|
1113
|
-
"type": "
|
|
1401
|
+
"type": "integer",
|
|
1402
|
+
"minimum": 1
|
|
1114
1403
|
},
|
|
1115
1404
|
"drawVerticalLine": {
|
|
1116
1405
|
"typeof": "function"
|
|
1117
1406
|
}
|
|
1118
1407
|
},
|
|
1408
|
+
"required": ["columnDefault", "columnCount"],
|
|
1119
1409
|
"additionalProperties": false
|
|
1120
1410
|
};
|
|
1121
|
-
function
|
|
1411
|
+
function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1122
1412
|
let vErrors = null;
|
|
1123
1413
|
let errors = 0;
|
|
1124
1414
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1263,6 +1553,17 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1263
1553
|
errors = vErrors.length;
|
|
1264
1554
|
}
|
|
1265
1555
|
}
|
|
1556
|
+
if (data.headerJoin !== undefined) {
|
|
1557
|
+
if (!(validate46(data.headerJoin, {
|
|
1558
|
+
instancePath: instancePath + "/headerJoin",
|
|
1559
|
+
parentData: data,
|
|
1560
|
+
parentDataProperty: "headerJoin",
|
|
1561
|
+
rootData
|
|
1562
|
+
}))) {
|
|
1563
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
1564
|
+
errors = vErrors.length;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1266
1567
|
if (data.joinBody !== undefined) {
|
|
1267
1568
|
if (!(validate46(data.joinBody, {
|
|
1268
1569
|
instancePath: instancePath + "/joinBody",
|
|
@@ -1326,10 +1627,10 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1326
1627
|
}
|
|
1327
1628
|
errors++;
|
|
1328
1629
|
}
|
|
1329
|
-
|
|
1630
|
+
validate77.errors = vErrors;
|
|
1330
1631
|
return errors === 0;
|
|
1331
1632
|
}
|
|
1332
|
-
function
|
|
1633
|
+
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1333
1634
|
let vErrors = null;
|
|
1334
1635
|
let errors = 0;
|
|
1335
1636
|
const _errs0 = errors;
|
|
@@ -1359,13 +1660,13 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1359
1660
|
}
|
|
1360
1661
|
for (const key1 in data) {
|
|
1361
1662
|
if (pattern0.test(key1)) {
|
|
1362
|
-
if (!(
|
|
1663
|
+
if (!(validate67(data[key1], {
|
|
1363
1664
|
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
1364
1665
|
parentData: data,
|
|
1365
1666
|
parentDataProperty: key1,
|
|
1366
1667
|
rootData
|
|
1367
1668
|
}))) {
|
|
1368
|
-
vErrors = vErrors === null ?
|
|
1669
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
1369
1670
|
errors = vErrors.length;
|
|
1370
1671
|
}
|
|
1371
1672
|
}
|
|
@@ -1398,13 +1699,13 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1398
1699
|
if (Array.isArray(data)) {
|
|
1399
1700
|
const len0 = data.length;
|
|
1400
1701
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
1401
|
-
if (!(
|
|
1702
|
+
if (!(validate67(data[i0], {
|
|
1402
1703
|
instancePath: instancePath + "/" + i0,
|
|
1403
1704
|
parentData: data,
|
|
1404
1705
|
parentDataProperty: i0,
|
|
1405
1706
|
rootData
|
|
1406
1707
|
}))) {
|
|
1407
|
-
vErrors = vErrors === null ?
|
|
1708
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
1408
1709
|
errors = vErrors.length;
|
|
1409
1710
|
}
|
|
1410
1711
|
}
|
|
@@ -1467,15 +1768,15 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1467
1768
|
}
|
|
1468
1769
|
}
|
|
1469
1770
|
}
|
|
1470
|
-
|
|
1771
|
+
validate95.errors = vErrors;
|
|
1471
1772
|
return errors === 0;
|
|
1472
1773
|
}
|
|
1473
|
-
function
|
|
1774
|
+
function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1474
1775
|
let vErrors = null;
|
|
1475
1776
|
let errors = 0;
|
|
1476
1777
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1477
1778
|
for (const key0 in data) {
|
|
1478
|
-
if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
1779
|
+
if (!(((((((key0 === "alignment") || (key0 === "verticalAlignment")) || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
|
|
1479
1780
|
const err0 = {
|
|
1480
1781
|
instancePath,
|
|
1481
1782
|
schemaPath: "#/additionalProperties",
|
|
@@ -1495,11 +1796,22 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1495
1796
|
}
|
|
1496
1797
|
}
|
|
1497
1798
|
if (data.alignment !== undefined) {
|
|
1498
|
-
|
|
1499
|
-
|
|
1799
|
+
if (!(validate68(data.alignment, {
|
|
1800
|
+
instancePath: instancePath + "/alignment",
|
|
1801
|
+
parentData: data,
|
|
1802
|
+
parentDataProperty: "alignment",
|
|
1803
|
+
rootData
|
|
1804
|
+
}))) {
|
|
1805
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
1806
|
+
errors = vErrors.length;
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
if (data.verticalAlignment !== undefined) {
|
|
1810
|
+
let data1 = data.verticalAlignment;
|
|
1811
|
+
if (typeof data1 !== "string") {
|
|
1500
1812
|
const err1 = {
|
|
1501
|
-
instancePath: instancePath + "/
|
|
1502
|
-
schemaPath: "#/properties/
|
|
1813
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
1814
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
1503
1815
|
keyword: "type",
|
|
1504
1816
|
params: {
|
|
1505
1817
|
type: "string"
|
|
@@ -1514,13 +1826,13 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1514
1826
|
}
|
|
1515
1827
|
errors++;
|
|
1516
1828
|
}
|
|
1517
|
-
if (!(((
|
|
1829
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
1518
1830
|
const err2 = {
|
|
1519
|
-
instancePath: instancePath + "/
|
|
1520
|
-
schemaPath: "#/properties/
|
|
1831
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
1832
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
1521
1833
|
keyword: "enum",
|
|
1522
1834
|
params: {
|
|
1523
|
-
allowedValues:
|
|
1835
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
1524
1836
|
},
|
|
1525
1837
|
message: "must be equal to one of the allowed values"
|
|
1526
1838
|
};
|
|
@@ -1534,10 +1846,28 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1534
1846
|
}
|
|
1535
1847
|
}
|
|
1536
1848
|
if (data.width !== undefined) {
|
|
1537
|
-
let
|
|
1538
|
-
if ((typeof
|
|
1539
|
-
|
|
1540
|
-
|
|
1849
|
+
let data2 = data.width;
|
|
1850
|
+
if (!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) {
|
|
1851
|
+
const err3 = {
|
|
1852
|
+
instancePath: instancePath + "/width",
|
|
1853
|
+
schemaPath: "#/properties/width/type",
|
|
1854
|
+
keyword: "type",
|
|
1855
|
+
params: {
|
|
1856
|
+
type: "integer"
|
|
1857
|
+
},
|
|
1858
|
+
message: "must be integer"
|
|
1859
|
+
};
|
|
1860
|
+
if (vErrors === null) {
|
|
1861
|
+
vErrors = [err3];
|
|
1862
|
+
}
|
|
1863
|
+
else {
|
|
1864
|
+
vErrors.push(err3);
|
|
1865
|
+
}
|
|
1866
|
+
errors++;
|
|
1867
|
+
}
|
|
1868
|
+
if ((typeof data2 == "number") && (isFinite(data2))) {
|
|
1869
|
+
if (data2 < 1 || isNaN(data2)) {
|
|
1870
|
+
const err4 = {
|
|
1541
1871
|
instancePath: instancePath + "/width",
|
|
1542
1872
|
schemaPath: "#/properties/width/minimum",
|
|
1543
1873
|
keyword: "minimum",
|
|
@@ -1547,25 +1877,6 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1547
1877
|
},
|
|
1548
1878
|
message: "must be >= 1"
|
|
1549
1879
|
};
|
|
1550
|
-
if (vErrors === null) {
|
|
1551
|
-
vErrors = [err3];
|
|
1552
|
-
}
|
|
1553
|
-
else {
|
|
1554
|
-
vErrors.push(err3);
|
|
1555
|
-
}
|
|
1556
|
-
errors++;
|
|
1557
|
-
}
|
|
1558
|
-
let res0;
|
|
1559
|
-
if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
|
|
1560
|
-
const err4 = {
|
|
1561
|
-
instancePath: instancePath + "/width",
|
|
1562
|
-
schemaPath: "#/properties/width/multipleOf",
|
|
1563
|
-
keyword: "multipleOf",
|
|
1564
|
-
params: {
|
|
1565
|
-
multipleOf: 1
|
|
1566
|
-
},
|
|
1567
|
-
message: "must be multiple of 1"
|
|
1568
|
-
};
|
|
1569
1880
|
if (vErrors === null) {
|
|
1570
1881
|
vErrors = [err4];
|
|
1571
1882
|
}
|
|
@@ -1575,28 +1886,10 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1575
1886
|
errors++;
|
|
1576
1887
|
}
|
|
1577
1888
|
}
|
|
1578
|
-
else {
|
|
1579
|
-
const err5 = {
|
|
1580
|
-
instancePath: instancePath + "/width",
|
|
1581
|
-
schemaPath: "#/properties/width/type",
|
|
1582
|
-
keyword: "type",
|
|
1583
|
-
params: {
|
|
1584
|
-
type: "number"
|
|
1585
|
-
},
|
|
1586
|
-
message: "must be number"
|
|
1587
|
-
};
|
|
1588
|
-
if (vErrors === null) {
|
|
1589
|
-
vErrors = [err5];
|
|
1590
|
-
}
|
|
1591
|
-
else {
|
|
1592
|
-
vErrors.push(err5);
|
|
1593
|
-
}
|
|
1594
|
-
errors++;
|
|
1595
|
-
}
|
|
1596
1889
|
}
|
|
1597
1890
|
if (data.wrapWord !== undefined) {
|
|
1598
1891
|
if (typeof data.wrapWord !== "boolean") {
|
|
1599
|
-
const
|
|
1892
|
+
const err5 = {
|
|
1600
1893
|
instancePath: instancePath + "/wrapWord",
|
|
1601
1894
|
schemaPath: "#/properties/wrapWord/type",
|
|
1602
1895
|
keyword: "type",
|
|
@@ -1606,80 +1899,80 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1606
1899
|
message: "must be boolean"
|
|
1607
1900
|
};
|
|
1608
1901
|
if (vErrors === null) {
|
|
1609
|
-
vErrors = [
|
|
1902
|
+
vErrors = [err5];
|
|
1610
1903
|
}
|
|
1611
1904
|
else {
|
|
1612
|
-
vErrors.push(
|
|
1905
|
+
vErrors.push(err5);
|
|
1613
1906
|
}
|
|
1614
1907
|
errors++;
|
|
1615
1908
|
}
|
|
1616
1909
|
}
|
|
1617
1910
|
if (data.truncate !== undefined) {
|
|
1618
|
-
let
|
|
1619
|
-
if (!((typeof
|
|
1620
|
-
const
|
|
1911
|
+
let data4 = data.truncate;
|
|
1912
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
1913
|
+
const err6 = {
|
|
1621
1914
|
instancePath: instancePath + "/truncate",
|
|
1622
1915
|
schemaPath: "#/properties/truncate/type",
|
|
1623
1916
|
keyword: "type",
|
|
1624
1917
|
params: {
|
|
1625
|
-
type: "
|
|
1918
|
+
type: "integer"
|
|
1626
1919
|
},
|
|
1627
|
-
message: "must be
|
|
1920
|
+
message: "must be integer"
|
|
1628
1921
|
};
|
|
1629
1922
|
if (vErrors === null) {
|
|
1630
|
-
vErrors = [
|
|
1923
|
+
vErrors = [err6];
|
|
1631
1924
|
}
|
|
1632
1925
|
else {
|
|
1633
|
-
vErrors.push(
|
|
1926
|
+
vErrors.push(err6);
|
|
1634
1927
|
}
|
|
1635
1928
|
errors++;
|
|
1636
1929
|
}
|
|
1637
1930
|
}
|
|
1638
1931
|
if (data.paddingLeft !== undefined) {
|
|
1639
|
-
let
|
|
1640
|
-
if (!((typeof
|
|
1641
|
-
const
|
|
1932
|
+
let data5 = data.paddingLeft;
|
|
1933
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1934
|
+
const err7 = {
|
|
1642
1935
|
instancePath: instancePath + "/paddingLeft",
|
|
1643
1936
|
schemaPath: "#/properties/paddingLeft/type",
|
|
1644
1937
|
keyword: "type",
|
|
1645
1938
|
params: {
|
|
1646
|
-
type: "
|
|
1939
|
+
type: "integer"
|
|
1647
1940
|
},
|
|
1648
|
-
message: "must be
|
|
1941
|
+
message: "must be integer"
|
|
1649
1942
|
};
|
|
1650
1943
|
if (vErrors === null) {
|
|
1651
|
-
vErrors = [
|
|
1944
|
+
vErrors = [err7];
|
|
1652
1945
|
}
|
|
1653
1946
|
else {
|
|
1654
|
-
vErrors.push(
|
|
1947
|
+
vErrors.push(err7);
|
|
1655
1948
|
}
|
|
1656
1949
|
errors++;
|
|
1657
1950
|
}
|
|
1658
1951
|
}
|
|
1659
1952
|
if (data.paddingRight !== undefined) {
|
|
1660
|
-
let
|
|
1661
|
-
if (!((typeof
|
|
1662
|
-
const
|
|
1953
|
+
let data6 = data.paddingRight;
|
|
1954
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
1955
|
+
const err8 = {
|
|
1663
1956
|
instancePath: instancePath + "/paddingRight",
|
|
1664
1957
|
schemaPath: "#/properties/paddingRight/type",
|
|
1665
1958
|
keyword: "type",
|
|
1666
1959
|
params: {
|
|
1667
|
-
type: "
|
|
1960
|
+
type: "integer"
|
|
1668
1961
|
},
|
|
1669
|
-
message: "must be
|
|
1962
|
+
message: "must be integer"
|
|
1670
1963
|
};
|
|
1671
1964
|
if (vErrors === null) {
|
|
1672
|
-
vErrors = [
|
|
1965
|
+
vErrors = [err8];
|
|
1673
1966
|
}
|
|
1674
1967
|
else {
|
|
1675
|
-
vErrors.push(
|
|
1968
|
+
vErrors.push(err8);
|
|
1676
1969
|
}
|
|
1677
1970
|
errors++;
|
|
1678
1971
|
}
|
|
1679
1972
|
}
|
|
1680
1973
|
}
|
|
1681
1974
|
else {
|
|
1682
|
-
const
|
|
1975
|
+
const err9 = {
|
|
1683
1976
|
instancePath,
|
|
1684
1977
|
schemaPath: "#/type",
|
|
1685
1978
|
keyword: "type",
|
|
@@ -1689,24 +1982,60 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1689
1982
|
message: "must be object"
|
|
1690
1983
|
};
|
|
1691
1984
|
if (vErrors === null) {
|
|
1692
|
-
vErrors = [
|
|
1985
|
+
vErrors = [err9];
|
|
1693
1986
|
}
|
|
1694
1987
|
else {
|
|
1695
|
-
vErrors.push(
|
|
1988
|
+
vErrors.push(err9);
|
|
1696
1989
|
}
|
|
1697
1990
|
errors++;
|
|
1698
1991
|
}
|
|
1699
|
-
|
|
1992
|
+
validate99.errors = vErrors;
|
|
1700
1993
|
return errors === 0;
|
|
1701
1994
|
}
|
|
1702
|
-
function
|
|
1995
|
+
function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1703
1996
|
/*# sourceURL="streamConfig.json" */ ;
|
|
1704
1997
|
let vErrors = null;
|
|
1705
1998
|
let errors = 0;
|
|
1706
1999
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2000
|
+
if (data.columnDefault === undefined) {
|
|
2001
|
+
const err0 = {
|
|
2002
|
+
instancePath,
|
|
2003
|
+
schemaPath: "#/required",
|
|
2004
|
+
keyword: "required",
|
|
2005
|
+
params: {
|
|
2006
|
+
missingProperty: "columnDefault"
|
|
2007
|
+
},
|
|
2008
|
+
message: "must have required property '" + "columnDefault" + "'"
|
|
2009
|
+
};
|
|
2010
|
+
if (vErrors === null) {
|
|
2011
|
+
vErrors = [err0];
|
|
2012
|
+
}
|
|
2013
|
+
else {
|
|
2014
|
+
vErrors.push(err0);
|
|
2015
|
+
}
|
|
2016
|
+
errors++;
|
|
2017
|
+
}
|
|
2018
|
+
if (data.columnCount === undefined) {
|
|
2019
|
+
const err1 = {
|
|
2020
|
+
instancePath,
|
|
2021
|
+
schemaPath: "#/required",
|
|
2022
|
+
keyword: "required",
|
|
2023
|
+
params: {
|
|
2024
|
+
missingProperty: "columnCount"
|
|
2025
|
+
},
|
|
2026
|
+
message: "must have required property '" + "columnCount" + "'"
|
|
2027
|
+
};
|
|
2028
|
+
if (vErrors === null) {
|
|
2029
|
+
vErrors = [err1];
|
|
2030
|
+
}
|
|
2031
|
+
else {
|
|
2032
|
+
vErrors.push(err1);
|
|
2033
|
+
}
|
|
2034
|
+
errors++;
|
|
2035
|
+
}
|
|
1707
2036
|
for (const key0 in data) {
|
|
1708
2037
|
if (!(((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "columnCount")) || (key0 === "drawVerticalLine"))) {
|
|
1709
|
-
const
|
|
2038
|
+
const err2 = {
|
|
1710
2039
|
instancePath,
|
|
1711
2040
|
schemaPath: "#/additionalProperties",
|
|
1712
2041
|
keyword: "additionalProperties",
|
|
@@ -1716,71 +2045,92 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1716
2045
|
message: "must NOT have additional properties"
|
|
1717
2046
|
};
|
|
1718
2047
|
if (vErrors === null) {
|
|
1719
|
-
vErrors = [
|
|
2048
|
+
vErrors = [err2];
|
|
1720
2049
|
}
|
|
1721
2050
|
else {
|
|
1722
|
-
vErrors.push(
|
|
2051
|
+
vErrors.push(err2);
|
|
1723
2052
|
}
|
|
1724
2053
|
errors++;
|
|
1725
2054
|
}
|
|
1726
2055
|
}
|
|
1727
2056
|
if (data.border !== undefined) {
|
|
1728
|
-
if (!(
|
|
2057
|
+
if (!(validate77(data.border, {
|
|
1729
2058
|
instancePath: instancePath + "/border",
|
|
1730
2059
|
parentData: data,
|
|
1731
2060
|
parentDataProperty: "border",
|
|
1732
2061
|
rootData
|
|
1733
2062
|
}))) {
|
|
1734
|
-
vErrors = vErrors === null ?
|
|
2063
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
1735
2064
|
errors = vErrors.length;
|
|
1736
2065
|
}
|
|
1737
2066
|
}
|
|
1738
2067
|
if (data.columns !== undefined) {
|
|
1739
|
-
if (!(
|
|
2068
|
+
if (!(validate95(data.columns, {
|
|
1740
2069
|
instancePath: instancePath + "/columns",
|
|
1741
2070
|
parentData: data,
|
|
1742
2071
|
parentDataProperty: "columns",
|
|
1743
2072
|
rootData
|
|
1744
2073
|
}))) {
|
|
1745
|
-
vErrors = vErrors === null ?
|
|
2074
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
1746
2075
|
errors = vErrors.length;
|
|
1747
2076
|
}
|
|
1748
2077
|
}
|
|
1749
2078
|
if (data.columnDefault !== undefined) {
|
|
1750
|
-
if (!(
|
|
2079
|
+
if (!(validate99(data.columnDefault, {
|
|
1751
2080
|
instancePath: instancePath + "/columnDefault",
|
|
1752
2081
|
parentData: data,
|
|
1753
2082
|
parentDataProperty: "columnDefault",
|
|
1754
2083
|
rootData
|
|
1755
2084
|
}))) {
|
|
1756
|
-
vErrors = vErrors === null ?
|
|
2085
|
+
vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors);
|
|
1757
2086
|
errors = vErrors.length;
|
|
1758
2087
|
}
|
|
1759
2088
|
}
|
|
1760
2089
|
if (data.columnCount !== undefined) {
|
|
1761
2090
|
let data3 = data.columnCount;
|
|
1762
|
-
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
1763
|
-
const
|
|
2091
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2092
|
+
const err3 = {
|
|
1764
2093
|
instancePath: instancePath + "/columnCount",
|
|
1765
2094
|
schemaPath: "#/properties/columnCount/type",
|
|
1766
2095
|
keyword: "type",
|
|
1767
2096
|
params: {
|
|
1768
|
-
type: "
|
|
2097
|
+
type: "integer"
|
|
1769
2098
|
},
|
|
1770
|
-
message: "must be
|
|
2099
|
+
message: "must be integer"
|
|
1771
2100
|
};
|
|
1772
2101
|
if (vErrors === null) {
|
|
1773
|
-
vErrors = [
|
|
2102
|
+
vErrors = [err3];
|
|
1774
2103
|
}
|
|
1775
2104
|
else {
|
|
1776
|
-
vErrors.push(
|
|
2105
|
+
vErrors.push(err3);
|
|
1777
2106
|
}
|
|
1778
2107
|
errors++;
|
|
1779
2108
|
}
|
|
2109
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
2110
|
+
if (data3 < 1 || isNaN(data3)) {
|
|
2111
|
+
const err4 = {
|
|
2112
|
+
instancePath: instancePath + "/columnCount",
|
|
2113
|
+
schemaPath: "#/properties/columnCount/minimum",
|
|
2114
|
+
keyword: "minimum",
|
|
2115
|
+
params: {
|
|
2116
|
+
comparison: ">=",
|
|
2117
|
+
limit: 1
|
|
2118
|
+
},
|
|
2119
|
+
message: "must be >= 1"
|
|
2120
|
+
};
|
|
2121
|
+
if (vErrors === null) {
|
|
2122
|
+
vErrors = [err4];
|
|
2123
|
+
}
|
|
2124
|
+
else {
|
|
2125
|
+
vErrors.push(err4);
|
|
2126
|
+
}
|
|
2127
|
+
errors++;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
1780
2130
|
}
|
|
1781
2131
|
if (data.drawVerticalLine !== undefined) {
|
|
1782
2132
|
if (typeof data.drawVerticalLine != "function") {
|
|
1783
|
-
const
|
|
2133
|
+
const err5 = {
|
|
1784
2134
|
instancePath: instancePath + "/drawVerticalLine",
|
|
1785
2135
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
1786
2136
|
keyword: "typeof",
|
|
@@ -1788,17 +2138,17 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1788
2138
|
message: "should pass \"typeof\" keyword validation"
|
|
1789
2139
|
};
|
|
1790
2140
|
if (vErrors === null) {
|
|
1791
|
-
vErrors = [
|
|
2141
|
+
vErrors = [err5];
|
|
1792
2142
|
}
|
|
1793
2143
|
else {
|
|
1794
|
-
vErrors.push(
|
|
2144
|
+
vErrors.push(err5);
|
|
1795
2145
|
}
|
|
1796
2146
|
errors++;
|
|
1797
2147
|
}
|
|
1798
2148
|
}
|
|
1799
2149
|
}
|
|
1800
2150
|
else {
|
|
1801
|
-
const
|
|
2151
|
+
const err6 = {
|
|
1802
2152
|
instancePath,
|
|
1803
2153
|
schemaPath: "#/type",
|
|
1804
2154
|
keyword: "type",
|
|
@@ -1808,13 +2158,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1808
2158
|
message: "must be object"
|
|
1809
2159
|
};
|
|
1810
2160
|
if (vErrors === null) {
|
|
1811
|
-
vErrors = [
|
|
2161
|
+
vErrors = [err6];
|
|
1812
2162
|
}
|
|
1813
2163
|
else {
|
|
1814
|
-
vErrors.push(
|
|
2164
|
+
vErrors.push(err6);
|
|
1815
2165
|
}
|
|
1816
2166
|
errors++;
|
|
1817
2167
|
}
|
|
1818
|
-
|
|
2168
|
+
validate76.errors = vErrors;
|
|
1819
2169
|
return errors === 0;
|
|
1820
2170
|
}
|