table 6.5.1 → 6.6.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 +20 -25
- package/dist/alignString.d.ts +2 -3
- package/dist/alignString.js +21 -4
- package/dist/alignTableData.d.ts +1 -2
- package/dist/alignTableData.js +7 -5
- 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 +4 -4
- package/dist/drawBorder.js +16 -13
- package/dist/drawContent.d.ts +11 -0
- package/dist/drawContent.js +26 -0
- package/dist/drawRow.d.ts +1 -2
- package/dist/drawRow.js +11 -13
- package/dist/drawTable.d.ts +1 -2
- package/dist/drawTable.js +20 -40
- package/dist/generated/validators.d.ts +2 -2
- package/dist/generated/validators.js +282 -274
- package/dist/getBorderCharacters.d.ts +1 -2
- package/dist/getBorderCharacters.js +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -9
- package/dist/makeConfig.d.ts +1 -2
- package/dist/makeConfig.js +12 -19
- package/dist/makeStreamConfig.d.ts +1 -2
- package/dist/makeStreamConfig.js +8 -19
- package/dist/mapDataUsingRowHeights.d.ts +2 -0
- package/dist/mapDataUsingRowHeights.js +29 -0
- package/dist/padTableData.d.ts +1 -2
- package/dist/padTableData.js +6 -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 +1 -2
- package/dist/truncateTableData.js +6 -4
- package/dist/types/api.d.ts +2 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +93 -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 +1 -1
- 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
|
@@ -338,12 +338,10 @@ const schema18 = {
|
|
|
338
338
|
"properties": {
|
|
339
339
|
"alignment": {
|
|
340
340
|
"type": "string",
|
|
341
|
-
"enum": ["left", "right", "center"]
|
|
341
|
+
"enum": ["left", "right", "center", "justify"]
|
|
342
342
|
},
|
|
343
343
|
"width": {
|
|
344
|
-
"
|
|
345
|
-
"minimum": 1,
|
|
346
|
-
"multipleOf": 1
|
|
344
|
+
"$ref": "#/definitions/naturalNumber"
|
|
347
345
|
},
|
|
348
346
|
"wrapWord": {
|
|
349
347
|
"type": "boolean"
|
|
@@ -361,6 +359,75 @@ const schema18 = {
|
|
|
361
359
|
"additionalProperties": false
|
|
362
360
|
};
|
|
363
361
|
const func0 = require("ajv/dist/runtime/equal").default;
|
|
362
|
+
const schema19 = {
|
|
363
|
+
"type": "number",
|
|
364
|
+
"minimum": 1,
|
|
365
|
+
"multipleOf": 1
|
|
366
|
+
};
|
|
367
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
368
|
+
let vErrors = null;
|
|
369
|
+
let errors = 0;
|
|
370
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
371
|
+
if (data < 1 || isNaN(data)) {
|
|
372
|
+
const err0 = {
|
|
373
|
+
instancePath,
|
|
374
|
+
schemaPath: "#/minimum",
|
|
375
|
+
keyword: "minimum",
|
|
376
|
+
params: {
|
|
377
|
+
comparison: ">=",
|
|
378
|
+
limit: 1
|
|
379
|
+
},
|
|
380
|
+
message: "must be >= 1"
|
|
381
|
+
};
|
|
382
|
+
if (vErrors === null) {
|
|
383
|
+
vErrors = [err0];
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
vErrors.push(err0);
|
|
387
|
+
}
|
|
388
|
+
errors++;
|
|
389
|
+
}
|
|
390
|
+
let res0;
|
|
391
|
+
if ((1 === 0 || (res0 = data / 1, res0 !== parseInt(res0)))) {
|
|
392
|
+
const err1 = {
|
|
393
|
+
instancePath,
|
|
394
|
+
schemaPath: "#/multipleOf",
|
|
395
|
+
keyword: "multipleOf",
|
|
396
|
+
params: {
|
|
397
|
+
multipleOf: 1
|
|
398
|
+
},
|
|
399
|
+
message: "must be multiple of 1"
|
|
400
|
+
};
|
|
401
|
+
if (vErrors === null) {
|
|
402
|
+
vErrors = [err1];
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
vErrors.push(err1);
|
|
406
|
+
}
|
|
407
|
+
errors++;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
const err2 = {
|
|
412
|
+
instancePath,
|
|
413
|
+
schemaPath: "#/type",
|
|
414
|
+
keyword: "type",
|
|
415
|
+
params: {
|
|
416
|
+
type: "number"
|
|
417
|
+
},
|
|
418
|
+
message: "must be number"
|
|
419
|
+
};
|
|
420
|
+
if (vErrors === null) {
|
|
421
|
+
vErrors = [err2];
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
vErrors.push(err2);
|
|
425
|
+
}
|
|
426
|
+
errors++;
|
|
427
|
+
}
|
|
428
|
+
validate65.errors = vErrors;
|
|
429
|
+
return errors === 0;
|
|
430
|
+
}
|
|
364
431
|
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
365
432
|
let vErrors = null;
|
|
366
433
|
let errors = 0;
|
|
@@ -405,7 +472,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
405
472
|
}
|
|
406
473
|
errors++;
|
|
407
474
|
}
|
|
408
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
475
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
409
476
|
const err2 = {
|
|
410
477
|
instancePath: instancePath + "/alignment",
|
|
411
478
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -425,69 +492,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
425
492
|
}
|
|
426
493
|
}
|
|
427
494
|
if (data.width !== undefined) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
comparison: ">=",
|
|
437
|
-
limit: 1
|
|
438
|
-
},
|
|
439
|
-
message: "must be >= 1"
|
|
440
|
-
};
|
|
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
|
-
if (vErrors === null) {
|
|
461
|
-
vErrors = [err4];
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
vErrors.push(err4);
|
|
465
|
-
}
|
|
466
|
-
errors++;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
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++;
|
|
495
|
+
if (!(validate65(data.width, {
|
|
496
|
+
instancePath: instancePath + "/width",
|
|
497
|
+
parentData: data,
|
|
498
|
+
parentDataProperty: "width",
|
|
499
|
+
rootData
|
|
500
|
+
}))) {
|
|
501
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
502
|
+
errors = vErrors.length;
|
|
486
503
|
}
|
|
487
504
|
}
|
|
488
505
|
if (data.wrapWord !== undefined) {
|
|
489
506
|
if (typeof data.wrapWord !== "boolean") {
|
|
490
|
-
const
|
|
507
|
+
const err3 = {
|
|
491
508
|
instancePath: instancePath + "/wrapWord",
|
|
492
509
|
schemaPath: "#/properties/wrapWord/type",
|
|
493
510
|
keyword: "type",
|
|
@@ -497,10 +514,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
497
514
|
message: "must be boolean"
|
|
498
515
|
};
|
|
499
516
|
if (vErrors === null) {
|
|
500
|
-
vErrors = [
|
|
517
|
+
vErrors = [err3];
|
|
501
518
|
}
|
|
502
519
|
else {
|
|
503
|
-
vErrors.push(
|
|
520
|
+
vErrors.push(err3);
|
|
504
521
|
}
|
|
505
522
|
errors++;
|
|
506
523
|
}
|
|
@@ -508,7 +525,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
508
525
|
if (data.truncate !== undefined) {
|
|
509
526
|
let data3 = data.truncate;
|
|
510
527
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
511
|
-
const
|
|
528
|
+
const err4 = {
|
|
512
529
|
instancePath: instancePath + "/truncate",
|
|
513
530
|
schemaPath: "#/properties/truncate/type",
|
|
514
531
|
keyword: "type",
|
|
@@ -518,10 +535,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
518
535
|
message: "must be number"
|
|
519
536
|
};
|
|
520
537
|
if (vErrors === null) {
|
|
521
|
-
vErrors = [
|
|
538
|
+
vErrors = [err4];
|
|
522
539
|
}
|
|
523
540
|
else {
|
|
524
|
-
vErrors.push(
|
|
541
|
+
vErrors.push(err4);
|
|
525
542
|
}
|
|
526
543
|
errors++;
|
|
527
544
|
}
|
|
@@ -529,7 +546,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
529
546
|
if (data.paddingLeft !== undefined) {
|
|
530
547
|
let data4 = data.paddingLeft;
|
|
531
548
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
532
|
-
const
|
|
549
|
+
const err5 = {
|
|
533
550
|
instancePath: instancePath + "/paddingLeft",
|
|
534
551
|
schemaPath: "#/properties/paddingLeft/type",
|
|
535
552
|
keyword: "type",
|
|
@@ -539,10 +556,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
539
556
|
message: "must be number"
|
|
540
557
|
};
|
|
541
558
|
if (vErrors === null) {
|
|
542
|
-
vErrors = [
|
|
559
|
+
vErrors = [err5];
|
|
543
560
|
}
|
|
544
561
|
else {
|
|
545
|
-
vErrors.push(
|
|
562
|
+
vErrors.push(err5);
|
|
546
563
|
}
|
|
547
564
|
errors++;
|
|
548
565
|
}
|
|
@@ -550,7 +567,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
550
567
|
if (data.paddingRight !== undefined) {
|
|
551
568
|
let data5 = data.paddingRight;
|
|
552
569
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
553
|
-
const
|
|
570
|
+
const err6 = {
|
|
554
571
|
instancePath: instancePath + "/paddingRight",
|
|
555
572
|
schemaPath: "#/properties/paddingRight/type",
|
|
556
573
|
keyword: "type",
|
|
@@ -560,17 +577,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
560
577
|
message: "must be number"
|
|
561
578
|
};
|
|
562
579
|
if (vErrors === null) {
|
|
563
|
-
vErrors = [
|
|
580
|
+
vErrors = [err6];
|
|
564
581
|
}
|
|
565
582
|
else {
|
|
566
|
-
vErrors.push(
|
|
583
|
+
vErrors.push(err6);
|
|
567
584
|
}
|
|
568
585
|
errors++;
|
|
569
586
|
}
|
|
570
587
|
}
|
|
571
588
|
}
|
|
572
589
|
else {
|
|
573
|
-
const
|
|
590
|
+
const err7 = {
|
|
574
591
|
instancePath,
|
|
575
592
|
schemaPath: "#/type",
|
|
576
593
|
keyword: "type",
|
|
@@ -580,10 +597,10 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
580
597
|
message: "must be object"
|
|
581
598
|
};
|
|
582
599
|
if (vErrors === null) {
|
|
583
|
-
vErrors = [
|
|
600
|
+
vErrors = [err7];
|
|
584
601
|
}
|
|
585
602
|
else {
|
|
586
|
-
vErrors.push(
|
|
603
|
+
vErrors.push(err7);
|
|
587
604
|
}
|
|
588
605
|
errors++;
|
|
589
606
|
}
|
|
@@ -731,7 +748,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
731
748
|
validate63.errors = vErrors;
|
|
732
749
|
return errors === 0;
|
|
733
750
|
}
|
|
734
|
-
function
|
|
751
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
735
752
|
let vErrors = null;
|
|
736
753
|
let errors = 0;
|
|
737
754
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -775,7 +792,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
775
792
|
}
|
|
776
793
|
errors++;
|
|
777
794
|
}
|
|
778
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
795
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
779
796
|
const err2 = {
|
|
780
797
|
instancePath: instancePath + "/alignment",
|
|
781
798
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -795,69 +812,19 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
795
812
|
}
|
|
796
813
|
}
|
|
797
814
|
if (data.width !== undefined) {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
comparison: ">=",
|
|
807
|
-
limit: 1
|
|
808
|
-
},
|
|
809
|
-
message: "must be >= 1"
|
|
810
|
-
};
|
|
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
|
-
if (vErrors === null) {
|
|
831
|
-
vErrors = [err4];
|
|
832
|
-
}
|
|
833
|
-
else {
|
|
834
|
-
vErrors.push(err4);
|
|
835
|
-
}
|
|
836
|
-
errors++;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
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++;
|
|
815
|
+
if (!(validate65(data.width, {
|
|
816
|
+
instancePath: instancePath + "/width",
|
|
817
|
+
parentData: data,
|
|
818
|
+
parentDataProperty: "width",
|
|
819
|
+
rootData
|
|
820
|
+
}))) {
|
|
821
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
822
|
+
errors = vErrors.length;
|
|
856
823
|
}
|
|
857
824
|
}
|
|
858
825
|
if (data.wrapWord !== undefined) {
|
|
859
826
|
if (typeof data.wrapWord !== "boolean") {
|
|
860
|
-
const
|
|
827
|
+
const err3 = {
|
|
861
828
|
instancePath: instancePath + "/wrapWord",
|
|
862
829
|
schemaPath: "#/properties/wrapWord/type",
|
|
863
830
|
keyword: "type",
|
|
@@ -867,10 +834,10 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
867
834
|
message: "must be boolean"
|
|
868
835
|
};
|
|
869
836
|
if (vErrors === null) {
|
|
870
|
-
vErrors = [
|
|
837
|
+
vErrors = [err3];
|
|
871
838
|
}
|
|
872
839
|
else {
|
|
873
|
-
vErrors.push(
|
|
840
|
+
vErrors.push(err3);
|
|
874
841
|
}
|
|
875
842
|
errors++;
|
|
876
843
|
}
|
|
@@ -878,7 +845,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
878
845
|
if (data.truncate !== undefined) {
|
|
879
846
|
let data3 = data.truncate;
|
|
880
847
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
881
|
-
const
|
|
848
|
+
const err4 = {
|
|
882
849
|
instancePath: instancePath + "/truncate",
|
|
883
850
|
schemaPath: "#/properties/truncate/type",
|
|
884
851
|
keyword: "type",
|
|
@@ -888,10 +855,10 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
888
855
|
message: "must be number"
|
|
889
856
|
};
|
|
890
857
|
if (vErrors === null) {
|
|
891
|
-
vErrors = [
|
|
858
|
+
vErrors = [err4];
|
|
892
859
|
}
|
|
893
860
|
else {
|
|
894
|
-
vErrors.push(
|
|
861
|
+
vErrors.push(err4);
|
|
895
862
|
}
|
|
896
863
|
errors++;
|
|
897
864
|
}
|
|
@@ -899,7 +866,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
899
866
|
if (data.paddingLeft !== undefined) {
|
|
900
867
|
let data4 = data.paddingLeft;
|
|
901
868
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
902
|
-
const
|
|
869
|
+
const err5 = {
|
|
903
870
|
instancePath: instancePath + "/paddingLeft",
|
|
904
871
|
schemaPath: "#/properties/paddingLeft/type",
|
|
905
872
|
keyword: "type",
|
|
@@ -909,10 +876,10 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
909
876
|
message: "must be number"
|
|
910
877
|
};
|
|
911
878
|
if (vErrors === null) {
|
|
912
|
-
vErrors = [
|
|
879
|
+
vErrors = [err5];
|
|
913
880
|
}
|
|
914
881
|
else {
|
|
915
|
-
vErrors.push(
|
|
882
|
+
vErrors.push(err5);
|
|
916
883
|
}
|
|
917
884
|
errors++;
|
|
918
885
|
}
|
|
@@ -920,7 +887,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
920
887
|
if (data.paddingRight !== undefined) {
|
|
921
888
|
let data5 = data.paddingRight;
|
|
922
889
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
923
|
-
const
|
|
890
|
+
const err6 = {
|
|
924
891
|
instancePath: instancePath + "/paddingRight",
|
|
925
892
|
schemaPath: "#/properties/paddingRight/type",
|
|
926
893
|
keyword: "type",
|
|
@@ -930,17 +897,17 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
930
897
|
message: "must be number"
|
|
931
898
|
};
|
|
932
899
|
if (vErrors === null) {
|
|
933
|
-
vErrors = [
|
|
900
|
+
vErrors = [err6];
|
|
934
901
|
}
|
|
935
902
|
else {
|
|
936
|
-
vErrors.push(
|
|
903
|
+
vErrors.push(err6);
|
|
937
904
|
}
|
|
938
905
|
errors++;
|
|
939
906
|
}
|
|
940
907
|
}
|
|
941
908
|
}
|
|
942
909
|
else {
|
|
943
|
-
const
|
|
910
|
+
const err7 = {
|
|
944
911
|
instancePath,
|
|
945
912
|
schemaPath: "#/type",
|
|
946
913
|
keyword: "type",
|
|
@@ -950,14 +917,14 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
950
917
|
message: "must be object"
|
|
951
918
|
};
|
|
952
919
|
if (vErrors === null) {
|
|
953
|
-
vErrors = [
|
|
920
|
+
vErrors = [err7];
|
|
954
921
|
}
|
|
955
922
|
else {
|
|
956
|
-
vErrors.push(
|
|
923
|
+
vErrors.push(err7);
|
|
957
924
|
}
|
|
958
925
|
errors++;
|
|
959
926
|
}
|
|
960
|
-
|
|
927
|
+
validate70.errors = vErrors;
|
|
961
928
|
return errors === 0;
|
|
962
929
|
}
|
|
963
930
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -1008,13 +975,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1008
975
|
}
|
|
1009
976
|
}
|
|
1010
977
|
if (data.columnDefault !== undefined) {
|
|
1011
|
-
if (!(
|
|
978
|
+
if (!(validate70(data.columnDefault, {
|
|
1012
979
|
instancePath: instancePath + "/columnDefault",
|
|
1013
980
|
parentData: data,
|
|
1014
981
|
parentDataProperty: "columnDefault",
|
|
1015
982
|
rootData
|
|
1016
983
|
}))) {
|
|
1017
|
-
vErrors = vErrors === null ?
|
|
984
|
+
vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
|
|
1018
985
|
errors = vErrors.length;
|
|
1019
986
|
}
|
|
1020
987
|
}
|
|
@@ -1094,8 +1061,8 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1094
1061
|
validate43.errors = vErrors;
|
|
1095
1062
|
return errors === 0;
|
|
1096
1063
|
}
|
|
1097
|
-
exports["streamConfig.json"] =
|
|
1098
|
-
const
|
|
1064
|
+
exports["streamConfig.json"] = validate73;
|
|
1065
|
+
const schema21 = {
|
|
1099
1066
|
"$id": "streamConfig.json",
|
|
1100
1067
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1101
1068
|
"type": "object",
|
|
@@ -1110,15 +1077,16 @@ const schema20 = {
|
|
|
1110
1077
|
"$ref": "shared.json#/definitions/column"
|
|
1111
1078
|
},
|
|
1112
1079
|
"columnCount": {
|
|
1113
|
-
"
|
|
1080
|
+
"$ref": "shared.json#/definitions/naturalNumber"
|
|
1114
1081
|
},
|
|
1115
1082
|
"drawVerticalLine": {
|
|
1116
1083
|
"typeof": "function"
|
|
1117
1084
|
}
|
|
1118
1085
|
},
|
|
1086
|
+
"required": ["columnDefault", "columnCount"],
|
|
1119
1087
|
"additionalProperties": false
|
|
1120
1088
|
};
|
|
1121
|
-
function
|
|
1089
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1122
1090
|
let vErrors = null;
|
|
1123
1091
|
let errors = 0;
|
|
1124
1092
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1326,10 +1294,10 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1326
1294
|
}
|
|
1327
1295
|
errors++;
|
|
1328
1296
|
}
|
|
1329
|
-
|
|
1297
|
+
validate74.errors = vErrors;
|
|
1330
1298
|
return errors === 0;
|
|
1331
1299
|
}
|
|
1332
|
-
function
|
|
1300
|
+
function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1333
1301
|
let vErrors = null;
|
|
1334
1302
|
let errors = 0;
|
|
1335
1303
|
const _errs0 = errors;
|
|
@@ -1467,10 +1435,10 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1467
1435
|
}
|
|
1468
1436
|
}
|
|
1469
1437
|
}
|
|
1470
|
-
|
|
1438
|
+
validate91.errors = vErrors;
|
|
1471
1439
|
return errors === 0;
|
|
1472
1440
|
}
|
|
1473
|
-
function
|
|
1441
|
+
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1474
1442
|
let vErrors = null;
|
|
1475
1443
|
let errors = 0;
|
|
1476
1444
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1514,7 +1482,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1514
1482
|
}
|
|
1515
1483
|
errors++;
|
|
1516
1484
|
}
|
|
1517
|
-
if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
|
|
1485
|
+
if (!((((data0 === "left") || (data0 === "right")) || (data0 === "center")) || (data0 === "justify"))) {
|
|
1518
1486
|
const err2 = {
|
|
1519
1487
|
instancePath: instancePath + "/alignment",
|
|
1520
1488
|
schemaPath: "#/properties/alignment/enum",
|
|
@@ -1534,69 +1502,19 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1534
1502
|
}
|
|
1535
1503
|
}
|
|
1536
1504
|
if (data.width !== undefined) {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
comparison: ">=",
|
|
1546
|
-
limit: 1
|
|
1547
|
-
},
|
|
1548
|
-
message: "must be >= 1"
|
|
1549
|
-
};
|
|
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
|
-
if (vErrors === null) {
|
|
1570
|
-
vErrors = [err4];
|
|
1571
|
-
}
|
|
1572
|
-
else {
|
|
1573
|
-
vErrors.push(err4);
|
|
1574
|
-
}
|
|
1575
|
-
errors++;
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
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++;
|
|
1505
|
+
if (!(validate65(data.width, {
|
|
1506
|
+
instancePath: instancePath + "/width",
|
|
1507
|
+
parentData: data,
|
|
1508
|
+
parentDataProperty: "width",
|
|
1509
|
+
rootData
|
|
1510
|
+
}))) {
|
|
1511
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
1512
|
+
errors = vErrors.length;
|
|
1595
1513
|
}
|
|
1596
1514
|
}
|
|
1597
1515
|
if (data.wrapWord !== undefined) {
|
|
1598
1516
|
if (typeof data.wrapWord !== "boolean") {
|
|
1599
|
-
const
|
|
1517
|
+
const err3 = {
|
|
1600
1518
|
instancePath: instancePath + "/wrapWord",
|
|
1601
1519
|
schemaPath: "#/properties/wrapWord/type",
|
|
1602
1520
|
keyword: "type",
|
|
@@ -1606,10 +1524,10 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1606
1524
|
message: "must be boolean"
|
|
1607
1525
|
};
|
|
1608
1526
|
if (vErrors === null) {
|
|
1609
|
-
vErrors = [
|
|
1527
|
+
vErrors = [err3];
|
|
1610
1528
|
}
|
|
1611
1529
|
else {
|
|
1612
|
-
vErrors.push(
|
|
1530
|
+
vErrors.push(err3);
|
|
1613
1531
|
}
|
|
1614
1532
|
errors++;
|
|
1615
1533
|
}
|
|
@@ -1617,7 +1535,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1617
1535
|
if (data.truncate !== undefined) {
|
|
1618
1536
|
let data3 = data.truncate;
|
|
1619
1537
|
if (!((typeof data3 == "number") && (isFinite(data3)))) {
|
|
1620
|
-
const
|
|
1538
|
+
const err4 = {
|
|
1621
1539
|
instancePath: instancePath + "/truncate",
|
|
1622
1540
|
schemaPath: "#/properties/truncate/type",
|
|
1623
1541
|
keyword: "type",
|
|
@@ -1627,10 +1545,10 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1627
1545
|
message: "must be number"
|
|
1628
1546
|
};
|
|
1629
1547
|
if (vErrors === null) {
|
|
1630
|
-
vErrors = [
|
|
1548
|
+
vErrors = [err4];
|
|
1631
1549
|
}
|
|
1632
1550
|
else {
|
|
1633
|
-
vErrors.push(
|
|
1551
|
+
vErrors.push(err4);
|
|
1634
1552
|
}
|
|
1635
1553
|
errors++;
|
|
1636
1554
|
}
|
|
@@ -1638,7 +1556,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1638
1556
|
if (data.paddingLeft !== undefined) {
|
|
1639
1557
|
let data4 = data.paddingLeft;
|
|
1640
1558
|
if (!((typeof data4 == "number") && (isFinite(data4)))) {
|
|
1641
|
-
const
|
|
1559
|
+
const err5 = {
|
|
1642
1560
|
instancePath: instancePath + "/paddingLeft",
|
|
1643
1561
|
schemaPath: "#/properties/paddingLeft/type",
|
|
1644
1562
|
keyword: "type",
|
|
@@ -1648,10 +1566,10 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1648
1566
|
message: "must be number"
|
|
1649
1567
|
};
|
|
1650
1568
|
if (vErrors === null) {
|
|
1651
|
-
vErrors = [
|
|
1569
|
+
vErrors = [err5];
|
|
1652
1570
|
}
|
|
1653
1571
|
else {
|
|
1654
|
-
vErrors.push(
|
|
1572
|
+
vErrors.push(err5);
|
|
1655
1573
|
}
|
|
1656
1574
|
errors++;
|
|
1657
1575
|
}
|
|
@@ -1659,7 +1577,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1659
1577
|
if (data.paddingRight !== undefined) {
|
|
1660
1578
|
let data5 = data.paddingRight;
|
|
1661
1579
|
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
1662
|
-
const
|
|
1580
|
+
const err6 = {
|
|
1663
1581
|
instancePath: instancePath + "/paddingRight",
|
|
1664
1582
|
schemaPath: "#/properties/paddingRight/type",
|
|
1665
1583
|
keyword: "type",
|
|
@@ -1669,17 +1587,17 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1669
1587
|
message: "must be number"
|
|
1670
1588
|
};
|
|
1671
1589
|
if (vErrors === null) {
|
|
1672
|
-
vErrors = [
|
|
1590
|
+
vErrors = [err6];
|
|
1673
1591
|
}
|
|
1674
1592
|
else {
|
|
1675
|
-
vErrors.push(
|
|
1593
|
+
vErrors.push(err6);
|
|
1676
1594
|
}
|
|
1677
1595
|
errors++;
|
|
1678
1596
|
}
|
|
1679
1597
|
}
|
|
1680
1598
|
}
|
|
1681
1599
|
else {
|
|
1682
|
-
const
|
|
1600
|
+
const err7 = {
|
|
1683
1601
|
instancePath,
|
|
1684
1602
|
schemaPath: "#/type",
|
|
1685
1603
|
keyword: "type",
|
|
@@ -1689,24 +1607,124 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1689
1607
|
message: "must be object"
|
|
1690
1608
|
};
|
|
1691
1609
|
if (vErrors === null) {
|
|
1692
|
-
vErrors = [
|
|
1610
|
+
vErrors = [err7];
|
|
1693
1611
|
}
|
|
1694
1612
|
else {
|
|
1695
|
-
vErrors.push(
|
|
1613
|
+
vErrors.push(err7);
|
|
1696
1614
|
}
|
|
1697
1615
|
errors++;
|
|
1698
1616
|
}
|
|
1699
|
-
|
|
1617
|
+
validate95.errors = vErrors;
|
|
1700
1618
|
return errors === 0;
|
|
1701
1619
|
}
|
|
1702
|
-
function
|
|
1620
|
+
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1621
|
+
let vErrors = null;
|
|
1622
|
+
let errors = 0;
|
|
1623
|
+
if ((typeof data == "number") && (isFinite(data))) {
|
|
1624
|
+
if (data < 1 || isNaN(data)) {
|
|
1625
|
+
const err0 = {
|
|
1626
|
+
instancePath,
|
|
1627
|
+
schemaPath: "#/minimum",
|
|
1628
|
+
keyword: "minimum",
|
|
1629
|
+
params: {
|
|
1630
|
+
comparison: ">=",
|
|
1631
|
+
limit: 1
|
|
1632
|
+
},
|
|
1633
|
+
message: "must be >= 1"
|
|
1634
|
+
};
|
|
1635
|
+
if (vErrors === null) {
|
|
1636
|
+
vErrors = [err0];
|
|
1637
|
+
}
|
|
1638
|
+
else {
|
|
1639
|
+
vErrors.push(err0);
|
|
1640
|
+
}
|
|
1641
|
+
errors++;
|
|
1642
|
+
}
|
|
1643
|
+
let res0;
|
|
1644
|
+
if ((1 === 0 || (res0 = data / 1, res0 !== parseInt(res0)))) {
|
|
1645
|
+
const err1 = {
|
|
1646
|
+
instancePath,
|
|
1647
|
+
schemaPath: "#/multipleOf",
|
|
1648
|
+
keyword: "multipleOf",
|
|
1649
|
+
params: {
|
|
1650
|
+
multipleOf: 1
|
|
1651
|
+
},
|
|
1652
|
+
message: "must be multiple of 1"
|
|
1653
|
+
};
|
|
1654
|
+
if (vErrors === null) {
|
|
1655
|
+
vErrors = [err1];
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
vErrors.push(err1);
|
|
1659
|
+
}
|
|
1660
|
+
errors++;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
else {
|
|
1664
|
+
const err2 = {
|
|
1665
|
+
instancePath,
|
|
1666
|
+
schemaPath: "#/type",
|
|
1667
|
+
keyword: "type",
|
|
1668
|
+
params: {
|
|
1669
|
+
type: "number"
|
|
1670
|
+
},
|
|
1671
|
+
message: "must be number"
|
|
1672
|
+
};
|
|
1673
|
+
if (vErrors === null) {
|
|
1674
|
+
vErrors = [err2];
|
|
1675
|
+
}
|
|
1676
|
+
else {
|
|
1677
|
+
vErrors.push(err2);
|
|
1678
|
+
}
|
|
1679
|
+
errors++;
|
|
1680
|
+
}
|
|
1681
|
+
validate98.errors = vErrors;
|
|
1682
|
+
return errors === 0;
|
|
1683
|
+
}
|
|
1684
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1703
1685
|
/*# sourceURL="streamConfig.json" */ ;
|
|
1704
1686
|
let vErrors = null;
|
|
1705
1687
|
let errors = 0;
|
|
1706
1688
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1689
|
+
if (data.columnDefault === undefined) {
|
|
1690
|
+
const err0 = {
|
|
1691
|
+
instancePath,
|
|
1692
|
+
schemaPath: "#/required",
|
|
1693
|
+
keyword: "required",
|
|
1694
|
+
params: {
|
|
1695
|
+
missingProperty: "columnDefault"
|
|
1696
|
+
},
|
|
1697
|
+
message: "must have required property '" + "columnDefault" + "'"
|
|
1698
|
+
};
|
|
1699
|
+
if (vErrors === null) {
|
|
1700
|
+
vErrors = [err0];
|
|
1701
|
+
}
|
|
1702
|
+
else {
|
|
1703
|
+
vErrors.push(err0);
|
|
1704
|
+
}
|
|
1705
|
+
errors++;
|
|
1706
|
+
}
|
|
1707
|
+
if (data.columnCount === undefined) {
|
|
1708
|
+
const err1 = {
|
|
1709
|
+
instancePath,
|
|
1710
|
+
schemaPath: "#/required",
|
|
1711
|
+
keyword: "required",
|
|
1712
|
+
params: {
|
|
1713
|
+
missingProperty: "columnCount"
|
|
1714
|
+
},
|
|
1715
|
+
message: "must have required property '" + "columnCount" + "'"
|
|
1716
|
+
};
|
|
1717
|
+
if (vErrors === null) {
|
|
1718
|
+
vErrors = [err1];
|
|
1719
|
+
}
|
|
1720
|
+
else {
|
|
1721
|
+
vErrors.push(err1);
|
|
1722
|
+
}
|
|
1723
|
+
errors++;
|
|
1724
|
+
}
|
|
1707
1725
|
for (const key0 in data) {
|
|
1708
1726
|
if (!(((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "columnCount")) || (key0 === "drawVerticalLine"))) {
|
|
1709
|
-
const
|
|
1727
|
+
const err2 = {
|
|
1710
1728
|
instancePath,
|
|
1711
1729
|
schemaPath: "#/additionalProperties",
|
|
1712
1730
|
keyword: "additionalProperties",
|
|
@@ -1716,71 +1734,61 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1716
1734
|
message: "must NOT have additional properties"
|
|
1717
1735
|
};
|
|
1718
1736
|
if (vErrors === null) {
|
|
1719
|
-
vErrors = [
|
|
1737
|
+
vErrors = [err2];
|
|
1720
1738
|
}
|
|
1721
1739
|
else {
|
|
1722
|
-
vErrors.push(
|
|
1740
|
+
vErrors.push(err2);
|
|
1723
1741
|
}
|
|
1724
1742
|
errors++;
|
|
1725
1743
|
}
|
|
1726
1744
|
}
|
|
1727
1745
|
if (data.border !== undefined) {
|
|
1728
|
-
if (!(
|
|
1746
|
+
if (!(validate74(data.border, {
|
|
1729
1747
|
instancePath: instancePath + "/border",
|
|
1730
1748
|
parentData: data,
|
|
1731
1749
|
parentDataProperty: "border",
|
|
1732
1750
|
rootData
|
|
1733
1751
|
}))) {
|
|
1734
|
-
vErrors = vErrors === null ?
|
|
1752
|
+
vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
|
|
1735
1753
|
errors = vErrors.length;
|
|
1736
1754
|
}
|
|
1737
1755
|
}
|
|
1738
1756
|
if (data.columns !== undefined) {
|
|
1739
|
-
if (!(
|
|
1757
|
+
if (!(validate91(data.columns, {
|
|
1740
1758
|
instancePath: instancePath + "/columns",
|
|
1741
1759
|
parentData: data,
|
|
1742
1760
|
parentDataProperty: "columns",
|
|
1743
1761
|
rootData
|
|
1744
1762
|
}))) {
|
|
1745
|
-
vErrors = vErrors === null ?
|
|
1763
|
+
vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
|
|
1746
1764
|
errors = vErrors.length;
|
|
1747
1765
|
}
|
|
1748
1766
|
}
|
|
1749
1767
|
if (data.columnDefault !== undefined) {
|
|
1750
|
-
if (!(
|
|
1768
|
+
if (!(validate95(data.columnDefault, {
|
|
1751
1769
|
instancePath: instancePath + "/columnDefault",
|
|
1752
1770
|
parentData: data,
|
|
1753
1771
|
parentDataProperty: "columnDefault",
|
|
1754
1772
|
rootData
|
|
1755
1773
|
}))) {
|
|
1756
|
-
vErrors = vErrors === null ?
|
|
1774
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
1757
1775
|
errors = vErrors.length;
|
|
1758
1776
|
}
|
|
1759
1777
|
}
|
|
1760
1778
|
if (data.columnCount !== undefined) {
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1770
|
-
message: "must be number"
|
|
1771
|
-
};
|
|
1772
|
-
if (vErrors === null) {
|
|
1773
|
-
vErrors = [err1];
|
|
1774
|
-
}
|
|
1775
|
-
else {
|
|
1776
|
-
vErrors.push(err1);
|
|
1777
|
-
}
|
|
1778
|
-
errors++;
|
|
1779
|
+
if (!(validate98(data.columnCount, {
|
|
1780
|
+
instancePath: instancePath + "/columnCount",
|
|
1781
|
+
parentData: data,
|
|
1782
|
+
parentDataProperty: "columnCount",
|
|
1783
|
+
rootData
|
|
1784
|
+
}))) {
|
|
1785
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
1786
|
+
errors = vErrors.length;
|
|
1779
1787
|
}
|
|
1780
1788
|
}
|
|
1781
1789
|
if (data.drawVerticalLine !== undefined) {
|
|
1782
1790
|
if (typeof data.drawVerticalLine != "function") {
|
|
1783
|
-
const
|
|
1791
|
+
const err3 = {
|
|
1784
1792
|
instancePath: instancePath + "/drawVerticalLine",
|
|
1785
1793
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
1786
1794
|
keyword: "typeof",
|
|
@@ -1788,17 +1796,17 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1788
1796
|
message: "should pass \"typeof\" keyword validation"
|
|
1789
1797
|
};
|
|
1790
1798
|
if (vErrors === null) {
|
|
1791
|
-
vErrors = [
|
|
1799
|
+
vErrors = [err3];
|
|
1792
1800
|
}
|
|
1793
1801
|
else {
|
|
1794
|
-
vErrors.push(
|
|
1802
|
+
vErrors.push(err3);
|
|
1795
1803
|
}
|
|
1796
1804
|
errors++;
|
|
1797
1805
|
}
|
|
1798
1806
|
}
|
|
1799
1807
|
}
|
|
1800
1808
|
else {
|
|
1801
|
-
const
|
|
1809
|
+
const err4 = {
|
|
1802
1810
|
instancePath,
|
|
1803
1811
|
schemaPath: "#/type",
|
|
1804
1812
|
keyword: "type",
|
|
@@ -1808,13 +1816,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1808
1816
|
message: "must be object"
|
|
1809
1817
|
};
|
|
1810
1818
|
if (vErrors === null) {
|
|
1811
|
-
vErrors = [
|
|
1819
|
+
vErrors = [err4];
|
|
1812
1820
|
}
|
|
1813
1821
|
else {
|
|
1814
|
-
vErrors.push(
|
|
1822
|
+
vErrors.push(err4);
|
|
1815
1823
|
}
|
|
1816
1824
|
errors++;
|
|
1817
1825
|
}
|
|
1818
|
-
|
|
1826
|
+
validate73.errors = vErrors;
|
|
1819
1827
|
return errors === 0;
|
|
1820
1828
|
}
|