table 6.6.0 → 6.7.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 +407 -429
- package/dist/alignString.js +4 -9
- package/dist/alignTableData.js +2 -11
- package/dist/drawBorder.d.ts +2 -1
- package/dist/drawBorder.js +47 -4
- package/dist/drawContent.d.ts +1 -3
- package/dist/drawContent.js +4 -4
- package/dist/drawHeader.d.ts +2 -0
- package/dist/drawHeader.js +29 -0
- package/dist/drawRow.js +9 -3
- package/dist/drawTable.js +13 -3
- package/dist/generated/validators.d.ts +2 -2
- package/dist/generated/validators.js +659 -317
- package/dist/getBorderCharacters.js +4 -0
- package/dist/index.js +1 -0
- package/dist/makeStreamConfig.js +7 -8
- package/dist/{makeConfig.d.ts → makeTableConfig.d.ts} +1 -1
- package/dist/{makeConfig.js → makeTableConfig.js} +21 -6
- package/dist/mapDataUsingRowHeights.js +24 -9
- package/dist/padTableData.d.ts +1 -0
- package/dist/padTableData.js +7 -3
- package/dist/table.js +2 -2
- package/dist/truncateTableData.d.ts +1 -0
- package/dist/truncateTableData.js +7 -5
- package/dist/types/api.d.ts +16 -3
- package/dist/utils.js +3 -3
- package/package.json +4 -5
|
@@ -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,107 +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
|
-
"
|
|
433
|
+
"type": "integer",
|
|
434
|
+
"minimum": 1
|
|
345
435
|
},
|
|
346
436
|
"wrapWord": {
|
|
347
437
|
"type": "boolean"
|
|
348
438
|
},
|
|
349
439
|
"truncate": {
|
|
350
|
-
"type": "
|
|
440
|
+
"type": "integer"
|
|
351
441
|
},
|
|
352
442
|
"paddingLeft": {
|
|
353
|
-
"type": "
|
|
443
|
+
"type": "integer"
|
|
354
444
|
},
|
|
355
445
|
"paddingRight": {
|
|
356
|
-
"type": "
|
|
446
|
+
"type": "integer"
|
|
357
447
|
}
|
|
358
448
|
},
|
|
359
449
|
"additionalProperties": false
|
|
360
450
|
};
|
|
361
|
-
|
|
362
|
-
const schema19 = {
|
|
363
|
-
"type": "number",
|
|
364
|
-
"minimum": 1,
|
|
365
|
-
"multipleOf": 1
|
|
366
|
-
};
|
|
367
|
-
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
451
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
368
452
|
let vErrors = null;
|
|
369
453
|
let errors = 0;
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
if (vErrors === null) {
|
|
383
|
-
vErrors = [err0];
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
vErrors.push(err0);
|
|
387
|
-
}
|
|
388
|
-
errors++;
|
|
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];
|
|
389
466
|
}
|
|
390
|
-
|
|
391
|
-
|
|
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++;
|
|
467
|
+
else {
|
|
468
|
+
vErrors.push(err0);
|
|
408
469
|
}
|
|
470
|
+
errors++;
|
|
409
471
|
}
|
|
410
|
-
|
|
411
|
-
const
|
|
472
|
+
if (!((((data === "left") || (data === "right")) || (data === "center")) || (data === "justify"))) {
|
|
473
|
+
const err1 = {
|
|
412
474
|
instancePath,
|
|
413
|
-
schemaPath: "#/
|
|
414
|
-
keyword: "
|
|
475
|
+
schemaPath: "#/enum",
|
|
476
|
+
keyword: "enum",
|
|
415
477
|
params: {
|
|
416
|
-
|
|
478
|
+
allowedValues: schema17.enum
|
|
417
479
|
},
|
|
418
|
-
message: "must be
|
|
480
|
+
message: "must be equal to one of the allowed values"
|
|
419
481
|
};
|
|
420
482
|
if (vErrors === null) {
|
|
421
|
-
vErrors = [
|
|
483
|
+
vErrors = [err1];
|
|
422
484
|
}
|
|
423
485
|
else {
|
|
424
|
-
vErrors.push(
|
|
486
|
+
vErrors.push(err1);
|
|
425
487
|
}
|
|
426
488
|
errors++;
|
|
427
489
|
}
|
|
428
|
-
|
|
490
|
+
validate68.errors = vErrors;
|
|
429
491
|
return errors === 0;
|
|
430
492
|
}
|
|
431
|
-
function
|
|
493
|
+
function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
432
494
|
let vErrors = null;
|
|
433
495
|
let errors = 0;
|
|
434
496
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
435
497
|
for (const key0 in data) {
|
|
436
|
-
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"))) {
|
|
437
499
|
const err0 = {
|
|
438
500
|
instancePath,
|
|
439
501
|
schemaPath: "#/additionalProperties",
|
|
@@ -453,11 +515,22 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
453
515
|
}
|
|
454
516
|
}
|
|
455
517
|
if (data.alignment !== undefined) {
|
|
456
|
-
|
|
457
|
-
|
|
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") {
|
|
458
531
|
const err1 = {
|
|
459
|
-
instancePath: instancePath + "/
|
|
460
|
-
schemaPath: "#/properties/
|
|
532
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
533
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
461
534
|
keyword: "type",
|
|
462
535
|
params: {
|
|
463
536
|
type: "string"
|
|
@@ -472,13 +545,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
472
545
|
}
|
|
473
546
|
errors++;
|
|
474
547
|
}
|
|
475
|
-
if (!(((
|
|
548
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
476
549
|
const err2 = {
|
|
477
|
-
instancePath: instancePath + "/
|
|
478
|
-
schemaPath: "#/properties/
|
|
550
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
551
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
479
552
|
keyword: "enum",
|
|
480
553
|
params: {
|
|
481
|
-
allowedValues:
|
|
554
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
482
555
|
},
|
|
483
556
|
message: "must be equal to one of the allowed values"
|
|
484
557
|
};
|
|
@@ -492,19 +565,50 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
492
565
|
}
|
|
493
566
|
}
|
|
494
567
|
if (data.width !== undefined) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
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 = {
|
|
590
|
+
instancePath: instancePath + "/width",
|
|
591
|
+
schemaPath: "#/properties/width/minimum",
|
|
592
|
+
keyword: "minimum",
|
|
593
|
+
params: {
|
|
594
|
+
comparison: ">=",
|
|
595
|
+
limit: 1
|
|
596
|
+
},
|
|
597
|
+
message: "must be >= 1"
|
|
598
|
+
};
|
|
599
|
+
if (vErrors === null) {
|
|
600
|
+
vErrors = [err4];
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
vErrors.push(err4);
|
|
604
|
+
}
|
|
605
|
+
errors++;
|
|
606
|
+
}
|
|
503
607
|
}
|
|
504
608
|
}
|
|
505
609
|
if (data.wrapWord !== undefined) {
|
|
506
610
|
if (typeof data.wrapWord !== "boolean") {
|
|
507
|
-
const
|
|
611
|
+
const err5 = {
|
|
508
612
|
instancePath: instancePath + "/wrapWord",
|
|
509
613
|
schemaPath: "#/properties/wrapWord/type",
|
|
510
614
|
keyword: "type",
|
|
@@ -514,80 +618,80 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
514
618
|
message: "must be boolean"
|
|
515
619
|
};
|
|
516
620
|
if (vErrors === null) {
|
|
517
|
-
vErrors = [
|
|
621
|
+
vErrors = [err5];
|
|
518
622
|
}
|
|
519
623
|
else {
|
|
520
|
-
vErrors.push(
|
|
624
|
+
vErrors.push(err5);
|
|
521
625
|
}
|
|
522
626
|
errors++;
|
|
523
627
|
}
|
|
524
628
|
}
|
|
525
629
|
if (data.truncate !== undefined) {
|
|
526
|
-
let
|
|
527
|
-
if (!((typeof
|
|
528
|
-
const
|
|
630
|
+
let data4 = data.truncate;
|
|
631
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
632
|
+
const err6 = {
|
|
529
633
|
instancePath: instancePath + "/truncate",
|
|
530
634
|
schemaPath: "#/properties/truncate/type",
|
|
531
635
|
keyword: "type",
|
|
532
636
|
params: {
|
|
533
|
-
type: "
|
|
637
|
+
type: "integer"
|
|
534
638
|
},
|
|
535
|
-
message: "must be
|
|
639
|
+
message: "must be integer"
|
|
536
640
|
};
|
|
537
641
|
if (vErrors === null) {
|
|
538
|
-
vErrors = [
|
|
642
|
+
vErrors = [err6];
|
|
539
643
|
}
|
|
540
644
|
else {
|
|
541
|
-
vErrors.push(
|
|
645
|
+
vErrors.push(err6);
|
|
542
646
|
}
|
|
543
647
|
errors++;
|
|
544
648
|
}
|
|
545
649
|
}
|
|
546
650
|
if (data.paddingLeft !== undefined) {
|
|
547
|
-
let
|
|
548
|
-
if (!((typeof
|
|
549
|
-
const
|
|
651
|
+
let data5 = data.paddingLeft;
|
|
652
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
653
|
+
const err7 = {
|
|
550
654
|
instancePath: instancePath + "/paddingLeft",
|
|
551
655
|
schemaPath: "#/properties/paddingLeft/type",
|
|
552
656
|
keyword: "type",
|
|
553
657
|
params: {
|
|
554
|
-
type: "
|
|
658
|
+
type: "integer"
|
|
555
659
|
},
|
|
556
|
-
message: "must be
|
|
660
|
+
message: "must be integer"
|
|
557
661
|
};
|
|
558
662
|
if (vErrors === null) {
|
|
559
|
-
vErrors = [
|
|
663
|
+
vErrors = [err7];
|
|
560
664
|
}
|
|
561
665
|
else {
|
|
562
|
-
vErrors.push(
|
|
666
|
+
vErrors.push(err7);
|
|
563
667
|
}
|
|
564
668
|
errors++;
|
|
565
669
|
}
|
|
566
670
|
}
|
|
567
671
|
if (data.paddingRight !== undefined) {
|
|
568
|
-
let
|
|
569
|
-
if (!((typeof
|
|
570
|
-
const
|
|
672
|
+
let data6 = data.paddingRight;
|
|
673
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
674
|
+
const err8 = {
|
|
571
675
|
instancePath: instancePath + "/paddingRight",
|
|
572
676
|
schemaPath: "#/properties/paddingRight/type",
|
|
573
677
|
keyword: "type",
|
|
574
678
|
params: {
|
|
575
|
-
type: "
|
|
679
|
+
type: "integer"
|
|
576
680
|
},
|
|
577
|
-
message: "must be
|
|
681
|
+
message: "must be integer"
|
|
578
682
|
};
|
|
579
683
|
if (vErrors === null) {
|
|
580
|
-
vErrors = [
|
|
684
|
+
vErrors = [err8];
|
|
581
685
|
}
|
|
582
686
|
else {
|
|
583
|
-
vErrors.push(
|
|
687
|
+
vErrors.push(err8);
|
|
584
688
|
}
|
|
585
689
|
errors++;
|
|
586
690
|
}
|
|
587
691
|
}
|
|
588
692
|
}
|
|
589
693
|
else {
|
|
590
|
-
const
|
|
694
|
+
const err9 = {
|
|
591
695
|
instancePath,
|
|
592
696
|
schemaPath: "#/type",
|
|
593
697
|
keyword: "type",
|
|
@@ -597,17 +701,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
597
701
|
message: "must be object"
|
|
598
702
|
};
|
|
599
703
|
if (vErrors === null) {
|
|
600
|
-
vErrors = [
|
|
704
|
+
vErrors = [err9];
|
|
601
705
|
}
|
|
602
706
|
else {
|
|
603
|
-
vErrors.push(
|
|
707
|
+
vErrors.push(err9);
|
|
604
708
|
}
|
|
605
709
|
errors++;
|
|
606
710
|
}
|
|
607
|
-
|
|
711
|
+
validate67.errors = vErrors;
|
|
608
712
|
return errors === 0;
|
|
609
713
|
}
|
|
610
|
-
function
|
|
714
|
+
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
611
715
|
let vErrors = null;
|
|
612
716
|
let errors = 0;
|
|
613
717
|
const _errs0 = errors;
|
|
@@ -637,13 +741,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
637
741
|
}
|
|
638
742
|
for (const key1 in data) {
|
|
639
743
|
if (pattern0.test(key1)) {
|
|
640
|
-
if (!(
|
|
744
|
+
if (!(validate67(data[key1], {
|
|
641
745
|
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
642
746
|
parentData: data,
|
|
643
747
|
parentDataProperty: key1,
|
|
644
748
|
rootData
|
|
645
749
|
}))) {
|
|
646
|
-
vErrors = vErrors === null ?
|
|
750
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
647
751
|
errors = vErrors.length;
|
|
648
752
|
}
|
|
649
753
|
}
|
|
@@ -676,13 +780,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
676
780
|
if (Array.isArray(data)) {
|
|
677
781
|
const len0 = data.length;
|
|
678
782
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
679
|
-
if (!(
|
|
783
|
+
if (!(validate67(data[i0], {
|
|
680
784
|
instancePath: instancePath + "/" + i0,
|
|
681
785
|
parentData: data,
|
|
682
786
|
parentDataProperty: i0,
|
|
683
787
|
rootData
|
|
684
788
|
}))) {
|
|
685
|
-
vErrors = vErrors === null ?
|
|
789
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
686
790
|
errors = vErrors.length;
|
|
687
791
|
}
|
|
688
792
|
}
|
|
@@ -745,15 +849,15 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
745
849
|
}
|
|
746
850
|
}
|
|
747
851
|
}
|
|
748
|
-
|
|
852
|
+
validate66.errors = vErrors;
|
|
749
853
|
return errors === 0;
|
|
750
854
|
}
|
|
751
|
-
function
|
|
855
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
752
856
|
let vErrors = null;
|
|
753
857
|
let errors = 0;
|
|
754
858
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
755
859
|
for (const key0 in data) {
|
|
756
|
-
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"))) {
|
|
757
861
|
const err0 = {
|
|
758
862
|
instancePath,
|
|
759
863
|
schemaPath: "#/additionalProperties",
|
|
@@ -773,11 +877,22 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
773
877
|
}
|
|
774
878
|
}
|
|
775
879
|
if (data.alignment !== undefined) {
|
|
776
|
-
|
|
777
|
-
|
|
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") {
|
|
778
893
|
const err1 = {
|
|
779
|
-
instancePath: instancePath + "/
|
|
780
|
-
schemaPath: "#/properties/
|
|
894
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
895
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
781
896
|
keyword: "type",
|
|
782
897
|
params: {
|
|
783
898
|
type: "string"
|
|
@@ -792,13 +907,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
792
907
|
}
|
|
793
908
|
errors++;
|
|
794
909
|
}
|
|
795
|
-
if (!(((
|
|
910
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
796
911
|
const err2 = {
|
|
797
|
-
instancePath: instancePath + "/
|
|
798
|
-
schemaPath: "#/properties/
|
|
912
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
913
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
799
914
|
keyword: "enum",
|
|
800
915
|
params: {
|
|
801
|
-
allowedValues:
|
|
916
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
802
917
|
},
|
|
803
918
|
message: "must be equal to one of the allowed values"
|
|
804
919
|
};
|
|
@@ -812,19 +927,50 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
812
927
|
}
|
|
813
928
|
}
|
|
814
929
|
if (data.width !== undefined) {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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 = {
|
|
952
|
+
instancePath: instancePath + "/width",
|
|
953
|
+
schemaPath: "#/properties/width/minimum",
|
|
954
|
+
keyword: "minimum",
|
|
955
|
+
params: {
|
|
956
|
+
comparison: ">=",
|
|
957
|
+
limit: 1
|
|
958
|
+
},
|
|
959
|
+
message: "must be >= 1"
|
|
960
|
+
};
|
|
961
|
+
if (vErrors === null) {
|
|
962
|
+
vErrors = [err4];
|
|
963
|
+
}
|
|
964
|
+
else {
|
|
965
|
+
vErrors.push(err4);
|
|
966
|
+
}
|
|
967
|
+
errors++;
|
|
968
|
+
}
|
|
823
969
|
}
|
|
824
970
|
}
|
|
825
971
|
if (data.wrapWord !== undefined) {
|
|
826
972
|
if (typeof data.wrapWord !== "boolean") {
|
|
827
|
-
const
|
|
973
|
+
const err5 = {
|
|
828
974
|
instancePath: instancePath + "/wrapWord",
|
|
829
975
|
schemaPath: "#/properties/wrapWord/type",
|
|
830
976
|
keyword: "type",
|
|
@@ -834,80 +980,80 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
834
980
|
message: "must be boolean"
|
|
835
981
|
};
|
|
836
982
|
if (vErrors === null) {
|
|
837
|
-
vErrors = [
|
|
983
|
+
vErrors = [err5];
|
|
838
984
|
}
|
|
839
985
|
else {
|
|
840
|
-
vErrors.push(
|
|
986
|
+
vErrors.push(err5);
|
|
841
987
|
}
|
|
842
988
|
errors++;
|
|
843
989
|
}
|
|
844
990
|
}
|
|
845
991
|
if (data.truncate !== undefined) {
|
|
846
|
-
let
|
|
847
|
-
if (!((typeof
|
|
848
|
-
const
|
|
992
|
+
let data4 = data.truncate;
|
|
993
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
994
|
+
const err6 = {
|
|
849
995
|
instancePath: instancePath + "/truncate",
|
|
850
996
|
schemaPath: "#/properties/truncate/type",
|
|
851
997
|
keyword: "type",
|
|
852
998
|
params: {
|
|
853
|
-
type: "
|
|
999
|
+
type: "integer"
|
|
854
1000
|
},
|
|
855
|
-
message: "must be
|
|
1001
|
+
message: "must be integer"
|
|
856
1002
|
};
|
|
857
1003
|
if (vErrors === null) {
|
|
858
|
-
vErrors = [
|
|
1004
|
+
vErrors = [err6];
|
|
859
1005
|
}
|
|
860
1006
|
else {
|
|
861
|
-
vErrors.push(
|
|
1007
|
+
vErrors.push(err6);
|
|
862
1008
|
}
|
|
863
1009
|
errors++;
|
|
864
1010
|
}
|
|
865
1011
|
}
|
|
866
1012
|
if (data.paddingLeft !== undefined) {
|
|
867
|
-
let
|
|
868
|
-
if (!((typeof
|
|
869
|
-
const
|
|
1013
|
+
let data5 = data.paddingLeft;
|
|
1014
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1015
|
+
const err7 = {
|
|
870
1016
|
instancePath: instancePath + "/paddingLeft",
|
|
871
1017
|
schemaPath: "#/properties/paddingLeft/type",
|
|
872
1018
|
keyword: "type",
|
|
873
1019
|
params: {
|
|
874
|
-
type: "
|
|
1020
|
+
type: "integer"
|
|
875
1021
|
},
|
|
876
|
-
message: "must be
|
|
1022
|
+
message: "must be integer"
|
|
877
1023
|
};
|
|
878
1024
|
if (vErrors === null) {
|
|
879
|
-
vErrors = [
|
|
1025
|
+
vErrors = [err7];
|
|
880
1026
|
}
|
|
881
1027
|
else {
|
|
882
|
-
vErrors.push(
|
|
1028
|
+
vErrors.push(err7);
|
|
883
1029
|
}
|
|
884
1030
|
errors++;
|
|
885
1031
|
}
|
|
886
1032
|
}
|
|
887
1033
|
if (data.paddingRight !== undefined) {
|
|
888
|
-
let
|
|
889
|
-
if (!((typeof
|
|
890
|
-
const
|
|
1034
|
+
let data6 = data.paddingRight;
|
|
1035
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
1036
|
+
const err8 = {
|
|
891
1037
|
instancePath: instancePath + "/paddingRight",
|
|
892
1038
|
schemaPath: "#/properties/paddingRight/type",
|
|
893
1039
|
keyword: "type",
|
|
894
1040
|
params: {
|
|
895
|
-
type: "
|
|
1041
|
+
type: "integer"
|
|
896
1042
|
},
|
|
897
|
-
message: "must be
|
|
1043
|
+
message: "must be integer"
|
|
898
1044
|
};
|
|
899
1045
|
if (vErrors === null) {
|
|
900
|
-
vErrors = [
|
|
1046
|
+
vErrors = [err8];
|
|
901
1047
|
}
|
|
902
1048
|
else {
|
|
903
|
-
vErrors.push(
|
|
1049
|
+
vErrors.push(err8);
|
|
904
1050
|
}
|
|
905
1051
|
errors++;
|
|
906
1052
|
}
|
|
907
1053
|
}
|
|
908
1054
|
}
|
|
909
1055
|
else {
|
|
910
|
-
const
|
|
1056
|
+
const err9 = {
|
|
911
1057
|
instancePath,
|
|
912
1058
|
schemaPath: "#/type",
|
|
913
1059
|
keyword: "type",
|
|
@@ -917,14 +1063,14 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
917
1063
|
message: "must be object"
|
|
918
1064
|
};
|
|
919
1065
|
if (vErrors === null) {
|
|
920
|
-
vErrors = [
|
|
1066
|
+
vErrors = [err9];
|
|
921
1067
|
}
|
|
922
1068
|
else {
|
|
923
|
-
vErrors.push(
|
|
1069
|
+
vErrors.push(err9);
|
|
924
1070
|
}
|
|
925
1071
|
errors++;
|
|
926
1072
|
}
|
|
927
|
-
|
|
1073
|
+
validate73.errors = vErrors;
|
|
928
1074
|
return errors === 0;
|
|
929
1075
|
}
|
|
930
1076
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -933,7 +1079,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
933
1079
|
let errors = 0;
|
|
934
1080
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
935
1081
|
for (const key0 in data) {
|
|
936
|
-
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"))) {
|
|
937
1083
|
const err0 = {
|
|
938
1084
|
instancePath,
|
|
939
1085
|
schemaPath: "#/additionalProperties",
|
|
@@ -963,31 +1109,206 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
963
1109
|
errors = vErrors.length;
|
|
964
1110
|
}
|
|
965
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
|
+
}
|
|
966
1287
|
if (data.columns !== undefined) {
|
|
967
|
-
if (!(
|
|
1288
|
+
if (!(validate66(data.columns, {
|
|
968
1289
|
instancePath: instancePath + "/columns",
|
|
969
1290
|
parentData: data,
|
|
970
1291
|
parentDataProperty: "columns",
|
|
971
1292
|
rootData
|
|
972
1293
|
}))) {
|
|
973
|
-
vErrors = vErrors === null ?
|
|
1294
|
+
vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);
|
|
974
1295
|
errors = vErrors.length;
|
|
975
1296
|
}
|
|
976
1297
|
}
|
|
977
1298
|
if (data.columnDefault !== undefined) {
|
|
978
|
-
if (!(
|
|
1299
|
+
if (!(validate73(data.columnDefault, {
|
|
979
1300
|
instancePath: instancePath + "/columnDefault",
|
|
980
1301
|
parentData: data,
|
|
981
1302
|
parentDataProperty: "columnDefault",
|
|
982
1303
|
rootData
|
|
983
1304
|
}))) {
|
|
984
|
-
vErrors = vErrors === null ?
|
|
1305
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
985
1306
|
errors = vErrors.length;
|
|
986
1307
|
}
|
|
987
1308
|
}
|
|
988
1309
|
if (data.drawVerticalLine !== undefined) {
|
|
989
1310
|
if (typeof data.drawVerticalLine != "function") {
|
|
990
|
-
const
|
|
1311
|
+
const err9 = {
|
|
991
1312
|
instancePath: instancePath + "/drawVerticalLine",
|
|
992
1313
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
993
1314
|
keyword: "typeof",
|
|
@@ -995,17 +1316,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
995
1316
|
message: "should pass \"typeof\" keyword validation"
|
|
996
1317
|
};
|
|
997
1318
|
if (vErrors === null) {
|
|
998
|
-
vErrors = [
|
|
1319
|
+
vErrors = [err9];
|
|
999
1320
|
}
|
|
1000
1321
|
else {
|
|
1001
|
-
vErrors.push(
|
|
1322
|
+
vErrors.push(err9);
|
|
1002
1323
|
}
|
|
1003
1324
|
errors++;
|
|
1004
1325
|
}
|
|
1005
1326
|
}
|
|
1006
1327
|
if (data.drawHorizontalLine !== undefined) {
|
|
1007
1328
|
if (typeof data.drawHorizontalLine != "function") {
|
|
1008
|
-
const
|
|
1329
|
+
const err10 = {
|
|
1009
1330
|
instancePath: instancePath + "/drawHorizontalLine",
|
|
1010
1331
|
schemaPath: "#/properties/drawHorizontalLine/typeof",
|
|
1011
1332
|
keyword: "typeof",
|
|
@@ -1013,17 +1334,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1013
1334
|
message: "should pass \"typeof\" keyword validation"
|
|
1014
1335
|
};
|
|
1015
1336
|
if (vErrors === null) {
|
|
1016
|
-
vErrors = [
|
|
1337
|
+
vErrors = [err10];
|
|
1017
1338
|
}
|
|
1018
1339
|
else {
|
|
1019
|
-
vErrors.push(
|
|
1340
|
+
vErrors.push(err10);
|
|
1020
1341
|
}
|
|
1021
1342
|
errors++;
|
|
1022
1343
|
}
|
|
1023
1344
|
}
|
|
1024
1345
|
if (data.singleLine !== undefined) {
|
|
1025
1346
|
if (typeof data.singleLine != "boolean") {
|
|
1026
|
-
const
|
|
1347
|
+
const err11 = {
|
|
1027
1348
|
instancePath: instancePath + "/singleLine",
|
|
1028
1349
|
schemaPath: "#/properties/singleLine/typeof",
|
|
1029
1350
|
keyword: "typeof",
|
|
@@ -1031,17 +1352,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1031
1352
|
message: "should pass \"typeof\" keyword validation"
|
|
1032
1353
|
};
|
|
1033
1354
|
if (vErrors === null) {
|
|
1034
|
-
vErrors = [
|
|
1355
|
+
vErrors = [err11];
|
|
1035
1356
|
}
|
|
1036
1357
|
else {
|
|
1037
|
-
vErrors.push(
|
|
1358
|
+
vErrors.push(err11);
|
|
1038
1359
|
}
|
|
1039
1360
|
errors++;
|
|
1040
1361
|
}
|
|
1041
1362
|
}
|
|
1042
1363
|
}
|
|
1043
1364
|
else {
|
|
1044
|
-
const
|
|
1365
|
+
const err12 = {
|
|
1045
1366
|
instancePath,
|
|
1046
1367
|
schemaPath: "#/type",
|
|
1047
1368
|
keyword: "type",
|
|
@@ -1051,18 +1372,18 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1051
1372
|
message: "must be object"
|
|
1052
1373
|
};
|
|
1053
1374
|
if (vErrors === null) {
|
|
1054
|
-
vErrors = [
|
|
1375
|
+
vErrors = [err12];
|
|
1055
1376
|
}
|
|
1056
1377
|
else {
|
|
1057
|
-
vErrors.push(
|
|
1378
|
+
vErrors.push(err12);
|
|
1058
1379
|
}
|
|
1059
1380
|
errors++;
|
|
1060
1381
|
}
|
|
1061
1382
|
validate43.errors = vErrors;
|
|
1062
1383
|
return errors === 0;
|
|
1063
1384
|
}
|
|
1064
|
-
exports["streamConfig.json"] =
|
|
1065
|
-
const
|
|
1385
|
+
exports["streamConfig.json"] = validate76;
|
|
1386
|
+
const schema22 = {
|
|
1066
1387
|
"$id": "streamConfig.json",
|
|
1067
1388
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1068
1389
|
"type": "object",
|
|
@@ -1077,7 +1398,8 @@ const schema21 = {
|
|
|
1077
1398
|
"$ref": "shared.json#/definitions/column"
|
|
1078
1399
|
},
|
|
1079
1400
|
"columnCount": {
|
|
1080
|
-
"
|
|
1401
|
+
"type": "integer",
|
|
1402
|
+
"minimum": 1
|
|
1081
1403
|
},
|
|
1082
1404
|
"drawVerticalLine": {
|
|
1083
1405
|
"typeof": "function"
|
|
@@ -1086,7 +1408,7 @@ const schema21 = {
|
|
|
1086
1408
|
"required": ["columnDefault", "columnCount"],
|
|
1087
1409
|
"additionalProperties": false
|
|
1088
1410
|
};
|
|
1089
|
-
function
|
|
1411
|
+
function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1090
1412
|
let vErrors = null;
|
|
1091
1413
|
let errors = 0;
|
|
1092
1414
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1231,6 +1553,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1231
1553
|
errors = vErrors.length;
|
|
1232
1554
|
}
|
|
1233
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
|
+
}
|
|
1234
1567
|
if (data.joinBody !== undefined) {
|
|
1235
1568
|
if (!(validate46(data.joinBody, {
|
|
1236
1569
|
instancePath: instancePath + "/joinBody",
|
|
@@ -1294,10 +1627,10 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1294
1627
|
}
|
|
1295
1628
|
errors++;
|
|
1296
1629
|
}
|
|
1297
|
-
|
|
1630
|
+
validate77.errors = vErrors;
|
|
1298
1631
|
return errors === 0;
|
|
1299
1632
|
}
|
|
1300
|
-
function
|
|
1633
|
+
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1301
1634
|
let vErrors = null;
|
|
1302
1635
|
let errors = 0;
|
|
1303
1636
|
const _errs0 = errors;
|
|
@@ -1327,13 +1660,13 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1327
1660
|
}
|
|
1328
1661
|
for (const key1 in data) {
|
|
1329
1662
|
if (pattern0.test(key1)) {
|
|
1330
|
-
if (!(
|
|
1663
|
+
if (!(validate67(data[key1], {
|
|
1331
1664
|
instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
1332
1665
|
parentData: data,
|
|
1333
1666
|
parentDataProperty: key1,
|
|
1334
1667
|
rootData
|
|
1335
1668
|
}))) {
|
|
1336
|
-
vErrors = vErrors === null ?
|
|
1669
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
1337
1670
|
errors = vErrors.length;
|
|
1338
1671
|
}
|
|
1339
1672
|
}
|
|
@@ -1366,13 +1699,13 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1366
1699
|
if (Array.isArray(data)) {
|
|
1367
1700
|
const len0 = data.length;
|
|
1368
1701
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
1369
|
-
if (!(
|
|
1702
|
+
if (!(validate67(data[i0], {
|
|
1370
1703
|
instancePath: instancePath + "/" + i0,
|
|
1371
1704
|
parentData: data,
|
|
1372
1705
|
parentDataProperty: i0,
|
|
1373
1706
|
rootData
|
|
1374
1707
|
}))) {
|
|
1375
|
-
vErrors = vErrors === null ?
|
|
1708
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
1376
1709
|
errors = vErrors.length;
|
|
1377
1710
|
}
|
|
1378
1711
|
}
|
|
@@ -1435,15 +1768,15 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1435
1768
|
}
|
|
1436
1769
|
}
|
|
1437
1770
|
}
|
|
1438
|
-
|
|
1771
|
+
validate95.errors = vErrors;
|
|
1439
1772
|
return errors === 0;
|
|
1440
1773
|
}
|
|
1441
|
-
function
|
|
1774
|
+
function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1442
1775
|
let vErrors = null;
|
|
1443
1776
|
let errors = 0;
|
|
1444
1777
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1445
1778
|
for (const key0 in data) {
|
|
1446
|
-
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"))) {
|
|
1447
1780
|
const err0 = {
|
|
1448
1781
|
instancePath,
|
|
1449
1782
|
schemaPath: "#/additionalProperties",
|
|
@@ -1463,11 +1796,22 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1463
1796
|
}
|
|
1464
1797
|
}
|
|
1465
1798
|
if (data.alignment !== undefined) {
|
|
1466
|
-
|
|
1467
|
-
|
|
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") {
|
|
1468
1812
|
const err1 = {
|
|
1469
|
-
instancePath: instancePath + "/
|
|
1470
|
-
schemaPath: "#/properties/
|
|
1813
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
1814
|
+
schemaPath: "#/properties/verticalAlignment/type",
|
|
1471
1815
|
keyword: "type",
|
|
1472
1816
|
params: {
|
|
1473
1817
|
type: "string"
|
|
@@ -1482,13 +1826,13 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1482
1826
|
}
|
|
1483
1827
|
errors++;
|
|
1484
1828
|
}
|
|
1485
|
-
if (!(((
|
|
1829
|
+
if (!(((data1 === "top") || (data1 === "middle")) || (data1 === "bottom"))) {
|
|
1486
1830
|
const err2 = {
|
|
1487
|
-
instancePath: instancePath + "/
|
|
1488
|
-
schemaPath: "#/properties/
|
|
1831
|
+
instancePath: instancePath + "/verticalAlignment",
|
|
1832
|
+
schemaPath: "#/properties/verticalAlignment/enum",
|
|
1489
1833
|
keyword: "enum",
|
|
1490
1834
|
params: {
|
|
1491
|
-
allowedValues:
|
|
1835
|
+
allowedValues: schema19.properties.verticalAlignment.enum
|
|
1492
1836
|
},
|
|
1493
1837
|
message: "must be equal to one of the allowed values"
|
|
1494
1838
|
};
|
|
@@ -1502,19 +1846,50 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1502
1846
|
}
|
|
1503
1847
|
}
|
|
1504
1848
|
if (data.width !== undefined) {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
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 = {
|
|
1871
|
+
instancePath: instancePath + "/width",
|
|
1872
|
+
schemaPath: "#/properties/width/minimum",
|
|
1873
|
+
keyword: "minimum",
|
|
1874
|
+
params: {
|
|
1875
|
+
comparison: ">=",
|
|
1876
|
+
limit: 1
|
|
1877
|
+
},
|
|
1878
|
+
message: "must be >= 1"
|
|
1879
|
+
};
|
|
1880
|
+
if (vErrors === null) {
|
|
1881
|
+
vErrors = [err4];
|
|
1882
|
+
}
|
|
1883
|
+
else {
|
|
1884
|
+
vErrors.push(err4);
|
|
1885
|
+
}
|
|
1886
|
+
errors++;
|
|
1887
|
+
}
|
|
1513
1888
|
}
|
|
1514
1889
|
}
|
|
1515
1890
|
if (data.wrapWord !== undefined) {
|
|
1516
1891
|
if (typeof data.wrapWord !== "boolean") {
|
|
1517
|
-
const
|
|
1892
|
+
const err5 = {
|
|
1518
1893
|
instancePath: instancePath + "/wrapWord",
|
|
1519
1894
|
schemaPath: "#/properties/wrapWord/type",
|
|
1520
1895
|
keyword: "type",
|
|
@@ -1524,80 +1899,80 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1524
1899
|
message: "must be boolean"
|
|
1525
1900
|
};
|
|
1526
1901
|
if (vErrors === null) {
|
|
1527
|
-
vErrors = [
|
|
1902
|
+
vErrors = [err5];
|
|
1528
1903
|
}
|
|
1529
1904
|
else {
|
|
1530
|
-
vErrors.push(
|
|
1905
|
+
vErrors.push(err5);
|
|
1531
1906
|
}
|
|
1532
1907
|
errors++;
|
|
1533
1908
|
}
|
|
1534
1909
|
}
|
|
1535
1910
|
if (data.truncate !== undefined) {
|
|
1536
|
-
let
|
|
1537
|
-
if (!((typeof
|
|
1538
|
-
const
|
|
1911
|
+
let data4 = data.truncate;
|
|
1912
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
1913
|
+
const err6 = {
|
|
1539
1914
|
instancePath: instancePath + "/truncate",
|
|
1540
1915
|
schemaPath: "#/properties/truncate/type",
|
|
1541
1916
|
keyword: "type",
|
|
1542
1917
|
params: {
|
|
1543
|
-
type: "
|
|
1918
|
+
type: "integer"
|
|
1544
1919
|
},
|
|
1545
|
-
message: "must be
|
|
1920
|
+
message: "must be integer"
|
|
1546
1921
|
};
|
|
1547
1922
|
if (vErrors === null) {
|
|
1548
|
-
vErrors = [
|
|
1923
|
+
vErrors = [err6];
|
|
1549
1924
|
}
|
|
1550
1925
|
else {
|
|
1551
|
-
vErrors.push(
|
|
1926
|
+
vErrors.push(err6);
|
|
1552
1927
|
}
|
|
1553
1928
|
errors++;
|
|
1554
1929
|
}
|
|
1555
1930
|
}
|
|
1556
1931
|
if (data.paddingLeft !== undefined) {
|
|
1557
|
-
let
|
|
1558
|
-
if (!((typeof
|
|
1559
|
-
const
|
|
1932
|
+
let data5 = data.paddingLeft;
|
|
1933
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1934
|
+
const err7 = {
|
|
1560
1935
|
instancePath: instancePath + "/paddingLeft",
|
|
1561
1936
|
schemaPath: "#/properties/paddingLeft/type",
|
|
1562
1937
|
keyword: "type",
|
|
1563
1938
|
params: {
|
|
1564
|
-
type: "
|
|
1939
|
+
type: "integer"
|
|
1565
1940
|
},
|
|
1566
|
-
message: "must be
|
|
1941
|
+
message: "must be integer"
|
|
1567
1942
|
};
|
|
1568
1943
|
if (vErrors === null) {
|
|
1569
|
-
vErrors = [
|
|
1944
|
+
vErrors = [err7];
|
|
1570
1945
|
}
|
|
1571
1946
|
else {
|
|
1572
|
-
vErrors.push(
|
|
1947
|
+
vErrors.push(err7);
|
|
1573
1948
|
}
|
|
1574
1949
|
errors++;
|
|
1575
1950
|
}
|
|
1576
1951
|
}
|
|
1577
1952
|
if (data.paddingRight !== undefined) {
|
|
1578
|
-
let
|
|
1579
|
-
if (!((typeof
|
|
1580
|
-
const
|
|
1953
|
+
let data6 = data.paddingRight;
|
|
1954
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
1955
|
+
const err8 = {
|
|
1581
1956
|
instancePath: instancePath + "/paddingRight",
|
|
1582
1957
|
schemaPath: "#/properties/paddingRight/type",
|
|
1583
1958
|
keyword: "type",
|
|
1584
1959
|
params: {
|
|
1585
|
-
type: "
|
|
1960
|
+
type: "integer"
|
|
1586
1961
|
},
|
|
1587
|
-
message: "must be
|
|
1962
|
+
message: "must be integer"
|
|
1588
1963
|
};
|
|
1589
1964
|
if (vErrors === null) {
|
|
1590
|
-
vErrors = [
|
|
1965
|
+
vErrors = [err8];
|
|
1591
1966
|
}
|
|
1592
1967
|
else {
|
|
1593
|
-
vErrors.push(
|
|
1968
|
+
vErrors.push(err8);
|
|
1594
1969
|
}
|
|
1595
1970
|
errors++;
|
|
1596
1971
|
}
|
|
1597
1972
|
}
|
|
1598
1973
|
}
|
|
1599
1974
|
else {
|
|
1600
|
-
const
|
|
1975
|
+
const err9 = {
|
|
1601
1976
|
instancePath,
|
|
1602
1977
|
schemaPath: "#/type",
|
|
1603
1978
|
keyword: "type",
|
|
@@ -1607,81 +1982,17 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1607
1982
|
message: "must be object"
|
|
1608
1983
|
};
|
|
1609
1984
|
if (vErrors === null) {
|
|
1610
|
-
vErrors = [
|
|
1985
|
+
vErrors = [err9];
|
|
1611
1986
|
}
|
|
1612
1987
|
else {
|
|
1613
|
-
vErrors.push(
|
|
1988
|
+
vErrors.push(err9);
|
|
1614
1989
|
}
|
|
1615
1990
|
errors++;
|
|
1616
1991
|
}
|
|
1617
|
-
|
|
1992
|
+
validate99.errors = vErrors;
|
|
1618
1993
|
return errors === 0;
|
|
1619
1994
|
}
|
|
1620
|
-
function
|
|
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 } = {}) {
|
|
1995
|
+
function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1685
1996
|
/*# sourceURL="streamConfig.json" */ ;
|
|
1686
1997
|
let vErrors = null;
|
|
1687
1998
|
let errors = 0;
|
|
@@ -1743,52 +2054,83 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1743
2054
|
}
|
|
1744
2055
|
}
|
|
1745
2056
|
if (data.border !== undefined) {
|
|
1746
|
-
if (!(
|
|
2057
|
+
if (!(validate77(data.border, {
|
|
1747
2058
|
instancePath: instancePath + "/border",
|
|
1748
2059
|
parentData: data,
|
|
1749
2060
|
parentDataProperty: "border",
|
|
1750
2061
|
rootData
|
|
1751
2062
|
}))) {
|
|
1752
|
-
vErrors = vErrors === null ?
|
|
2063
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
1753
2064
|
errors = vErrors.length;
|
|
1754
2065
|
}
|
|
1755
2066
|
}
|
|
1756
2067
|
if (data.columns !== undefined) {
|
|
1757
|
-
if (!(
|
|
2068
|
+
if (!(validate95(data.columns, {
|
|
1758
2069
|
instancePath: instancePath + "/columns",
|
|
1759
2070
|
parentData: data,
|
|
1760
2071
|
parentDataProperty: "columns",
|
|
1761
2072
|
rootData
|
|
1762
2073
|
}))) {
|
|
1763
|
-
vErrors = vErrors === null ?
|
|
2074
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
1764
2075
|
errors = vErrors.length;
|
|
1765
2076
|
}
|
|
1766
2077
|
}
|
|
1767
2078
|
if (data.columnDefault !== undefined) {
|
|
1768
|
-
if (!(
|
|
2079
|
+
if (!(validate99(data.columnDefault, {
|
|
1769
2080
|
instancePath: instancePath + "/columnDefault",
|
|
1770
2081
|
parentData: data,
|
|
1771
2082
|
parentDataProperty: "columnDefault",
|
|
1772
2083
|
rootData
|
|
1773
2084
|
}))) {
|
|
1774
|
-
vErrors = vErrors === null ?
|
|
2085
|
+
vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors);
|
|
1775
2086
|
errors = vErrors.length;
|
|
1776
2087
|
}
|
|
1777
2088
|
}
|
|
1778
2089
|
if (data.columnCount !== undefined) {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
2090
|
+
let data3 = data.columnCount;
|
|
2091
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2092
|
+
const err3 = {
|
|
2093
|
+
instancePath: instancePath + "/columnCount",
|
|
2094
|
+
schemaPath: "#/properties/columnCount/type",
|
|
2095
|
+
keyword: "type",
|
|
2096
|
+
params: {
|
|
2097
|
+
type: "integer"
|
|
2098
|
+
},
|
|
2099
|
+
message: "must be integer"
|
|
2100
|
+
};
|
|
2101
|
+
if (vErrors === null) {
|
|
2102
|
+
vErrors = [err3];
|
|
2103
|
+
}
|
|
2104
|
+
else {
|
|
2105
|
+
vErrors.push(err3);
|
|
2106
|
+
}
|
|
2107
|
+
errors++;
|
|
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
|
+
}
|
|
1787
2129
|
}
|
|
1788
2130
|
}
|
|
1789
2131
|
if (data.drawVerticalLine !== undefined) {
|
|
1790
2132
|
if (typeof data.drawVerticalLine != "function") {
|
|
1791
|
-
const
|
|
2133
|
+
const err5 = {
|
|
1792
2134
|
instancePath: instancePath + "/drawVerticalLine",
|
|
1793
2135
|
schemaPath: "#/properties/drawVerticalLine/typeof",
|
|
1794
2136
|
keyword: "typeof",
|
|
@@ -1796,17 +2138,17 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1796
2138
|
message: "should pass \"typeof\" keyword validation"
|
|
1797
2139
|
};
|
|
1798
2140
|
if (vErrors === null) {
|
|
1799
|
-
vErrors = [
|
|
2141
|
+
vErrors = [err5];
|
|
1800
2142
|
}
|
|
1801
2143
|
else {
|
|
1802
|
-
vErrors.push(
|
|
2144
|
+
vErrors.push(err5);
|
|
1803
2145
|
}
|
|
1804
2146
|
errors++;
|
|
1805
2147
|
}
|
|
1806
2148
|
}
|
|
1807
2149
|
}
|
|
1808
2150
|
else {
|
|
1809
|
-
const
|
|
2151
|
+
const err6 = {
|
|
1810
2152
|
instancePath,
|
|
1811
2153
|
schemaPath: "#/type",
|
|
1812
2154
|
keyword: "type",
|
|
@@ -1816,13 +2158,13 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1816
2158
|
message: "must be object"
|
|
1817
2159
|
};
|
|
1818
2160
|
if (vErrors === null) {
|
|
1819
|
-
vErrors = [
|
|
2161
|
+
vErrors = [err6];
|
|
1820
2162
|
}
|
|
1821
2163
|
else {
|
|
1822
|
-
vErrors.push(
|
|
2164
|
+
vErrors.push(err6);
|
|
1823
2165
|
}
|
|
1824
2166
|
errors++;
|
|
1825
2167
|
}
|
|
1826
|
-
|
|
2168
|
+
validate76.errors = vErrors;
|
|
1827
2169
|
return errors === 0;
|
|
1828
2170
|
}
|