@tightknitai/slack-block-kit-validator 0.1.9 → 0.1.10
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 +1 -1
- package/dist/helpers/check-surface-compatibility.d.ts.map +1 -1
- package/dist/helpers/check-surface-compatibility.js +15 -11
- package/dist/helpers/check-surface-compatibility.js.map +1 -1
- package/dist/slack-block-kit.schema.json +64 -0
- package/dist/standalone-validator.js +650 -76
- package/dist/types.generated.d.ts +621 -1
- package/dist/types.generated.d.ts.map +1 -1
- package/dist/validate-block-kit.d.ts.map +1 -1
- package/dist/validate-block-kit.js +1 -0
- package/dist/validate-block-kit.js.map +1 -1
- package/package.json +1 -1
|
@@ -17399,11 +17399,567 @@ function validate256(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17399
17399
|
return errors === 0;
|
|
17400
17400
|
}
|
|
17401
17401
|
validate256.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17402
|
-
|
|
17403
|
-
|
|
17402
|
+
function validate270(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17403
|
+
let vErrors = null;
|
|
17404
|
+
let errors = 0;
|
|
17405
|
+
const evaluated0 = validate270.evaluated;
|
|
17406
|
+
if (evaluated0.dynamicProps) {
|
|
17407
|
+
evaluated0.props = void 0;
|
|
17408
|
+
}
|
|
17409
|
+
if (evaluated0.dynamicItems) {
|
|
17410
|
+
evaluated0.items = void 0;
|
|
17411
|
+
}
|
|
17412
|
+
const _errs0 = errors;
|
|
17413
|
+
let valid0 = false;
|
|
17414
|
+
let passing0 = null;
|
|
17415
|
+
const _errs1 = errors;
|
|
17416
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17417
|
+
if (data.type === void 0) {
|
|
17418
|
+
const err0 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17419
|
+
if (vErrors === null) {
|
|
17420
|
+
vErrors = [err0];
|
|
17421
|
+
} else {
|
|
17422
|
+
vErrors.push(err0);
|
|
17423
|
+
}
|
|
17424
|
+
errors++;
|
|
17425
|
+
}
|
|
17426
|
+
if (data.text === void 0) {
|
|
17427
|
+
const err1 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
17428
|
+
if (vErrors === null) {
|
|
17429
|
+
vErrors = [err1];
|
|
17430
|
+
} else {
|
|
17431
|
+
vErrors.push(err1);
|
|
17432
|
+
}
|
|
17433
|
+
errors++;
|
|
17434
|
+
}
|
|
17435
|
+
for (const key0 in data) {
|
|
17436
|
+
if (!(key0 === "type" || key0 === "text")) {
|
|
17437
|
+
const err2 = { instancePath, schemaPath: "#/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17438
|
+
if (vErrors === null) {
|
|
17439
|
+
vErrors = [err2];
|
|
17440
|
+
} else {
|
|
17441
|
+
vErrors.push(err2);
|
|
17442
|
+
}
|
|
17443
|
+
errors++;
|
|
17444
|
+
}
|
|
17445
|
+
}
|
|
17446
|
+
if (data.type !== void 0) {
|
|
17447
|
+
if ("raw_text" !== data.type) {
|
|
17448
|
+
const err3 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/const", keyword: "const", params: { allowedValue: "raw_text" }, message: "must be equal to constant" };
|
|
17449
|
+
if (vErrors === null) {
|
|
17450
|
+
vErrors = [err3];
|
|
17451
|
+
} else {
|
|
17452
|
+
vErrors.push(err3);
|
|
17453
|
+
}
|
|
17454
|
+
errors++;
|
|
17455
|
+
}
|
|
17456
|
+
}
|
|
17457
|
+
if (data.text !== void 0) {
|
|
17458
|
+
let data1 = data.text;
|
|
17459
|
+
if (typeof data1 === "string") {
|
|
17460
|
+
if (func1(data1) < 1) {
|
|
17461
|
+
const err4 = { instancePath: instancePath + "/text", schemaPath: "#/oneOf/0/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17462
|
+
if (vErrors === null) {
|
|
17463
|
+
vErrors = [err4];
|
|
17464
|
+
} else {
|
|
17465
|
+
vErrors.push(err4);
|
|
17466
|
+
}
|
|
17467
|
+
errors++;
|
|
17468
|
+
}
|
|
17469
|
+
} else {
|
|
17470
|
+
const err5 = { instancePath: instancePath + "/text", schemaPath: "#/oneOf/0/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17471
|
+
if (vErrors === null) {
|
|
17472
|
+
vErrors = [err5];
|
|
17473
|
+
} else {
|
|
17474
|
+
vErrors.push(err5);
|
|
17475
|
+
}
|
|
17476
|
+
errors++;
|
|
17477
|
+
}
|
|
17478
|
+
}
|
|
17479
|
+
} else {
|
|
17480
|
+
const err6 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17481
|
+
if (vErrors === null) {
|
|
17482
|
+
vErrors = [err6];
|
|
17483
|
+
} else {
|
|
17484
|
+
vErrors.push(err6);
|
|
17485
|
+
}
|
|
17486
|
+
errors++;
|
|
17487
|
+
}
|
|
17488
|
+
var _valid0 = _errs1 === errors;
|
|
17489
|
+
if (_valid0) {
|
|
17490
|
+
valid0 = true;
|
|
17491
|
+
passing0 = 0;
|
|
17492
|
+
var props0 = true;
|
|
17493
|
+
}
|
|
17494
|
+
const _errs7 = errors;
|
|
17495
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17496
|
+
if (data.type === void 0) {
|
|
17497
|
+
const err7 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17498
|
+
if (vErrors === null) {
|
|
17499
|
+
vErrors = [err7];
|
|
17500
|
+
} else {
|
|
17501
|
+
vErrors.push(err7);
|
|
17502
|
+
}
|
|
17503
|
+
errors++;
|
|
17504
|
+
}
|
|
17505
|
+
if (data.value === void 0) {
|
|
17506
|
+
const err8 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
17507
|
+
if (vErrors === null) {
|
|
17508
|
+
vErrors = [err8];
|
|
17509
|
+
} else {
|
|
17510
|
+
vErrors.push(err8);
|
|
17511
|
+
}
|
|
17512
|
+
errors++;
|
|
17513
|
+
}
|
|
17514
|
+
for (const key1 in data) {
|
|
17515
|
+
if (!(key1 === "type" || key1 === "value" || key1 === "text")) {
|
|
17516
|
+
const err9 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
17517
|
+
if (vErrors === null) {
|
|
17518
|
+
vErrors = [err9];
|
|
17519
|
+
} else {
|
|
17520
|
+
vErrors.push(err9);
|
|
17521
|
+
}
|
|
17522
|
+
errors++;
|
|
17523
|
+
}
|
|
17524
|
+
}
|
|
17525
|
+
if (data.type !== void 0) {
|
|
17526
|
+
if ("raw_number" !== data.type) {
|
|
17527
|
+
const err10 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "raw_number" }, message: "must be equal to constant" };
|
|
17528
|
+
if (vErrors === null) {
|
|
17529
|
+
vErrors = [err10];
|
|
17530
|
+
} else {
|
|
17531
|
+
vErrors.push(err10);
|
|
17532
|
+
}
|
|
17533
|
+
errors++;
|
|
17534
|
+
}
|
|
17535
|
+
}
|
|
17536
|
+
if (data.value !== void 0) {
|
|
17537
|
+
if (!(typeof data.value == "number")) {
|
|
17538
|
+
const err11 = { instancePath: instancePath + "/value", schemaPath: "#/oneOf/1/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
17539
|
+
if (vErrors === null) {
|
|
17540
|
+
vErrors = [err11];
|
|
17541
|
+
} else {
|
|
17542
|
+
vErrors.push(err11);
|
|
17543
|
+
}
|
|
17544
|
+
errors++;
|
|
17545
|
+
}
|
|
17546
|
+
}
|
|
17547
|
+
if (data.text !== void 0) {
|
|
17548
|
+
let data4 = data.text;
|
|
17549
|
+
if (typeof data4 === "string") {
|
|
17550
|
+
if (func1(data4) < 1) {
|
|
17551
|
+
const err12 = { instancePath: instancePath + "/text", schemaPath: "#/oneOf/1/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17552
|
+
if (vErrors === null) {
|
|
17553
|
+
vErrors = [err12];
|
|
17554
|
+
} else {
|
|
17555
|
+
vErrors.push(err12);
|
|
17556
|
+
}
|
|
17557
|
+
errors++;
|
|
17558
|
+
}
|
|
17559
|
+
} else {
|
|
17560
|
+
const err13 = { instancePath: instancePath + "/text", schemaPath: "#/oneOf/1/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17561
|
+
if (vErrors === null) {
|
|
17562
|
+
vErrors = [err13];
|
|
17563
|
+
} else {
|
|
17564
|
+
vErrors.push(err13);
|
|
17565
|
+
}
|
|
17566
|
+
errors++;
|
|
17567
|
+
}
|
|
17568
|
+
}
|
|
17569
|
+
} else {
|
|
17570
|
+
const err14 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17571
|
+
if (vErrors === null) {
|
|
17572
|
+
vErrors = [err14];
|
|
17573
|
+
} else {
|
|
17574
|
+
vErrors.push(err14);
|
|
17575
|
+
}
|
|
17576
|
+
errors++;
|
|
17577
|
+
}
|
|
17578
|
+
var _valid0 = _errs7 === errors;
|
|
17579
|
+
if (_valid0 && valid0) {
|
|
17580
|
+
valid0 = false;
|
|
17581
|
+
passing0 = [passing0, 1];
|
|
17582
|
+
} else {
|
|
17583
|
+
if (_valid0) {
|
|
17584
|
+
valid0 = true;
|
|
17585
|
+
passing0 = 1;
|
|
17586
|
+
if (props0 !== true) {
|
|
17587
|
+
props0 = true;
|
|
17588
|
+
}
|
|
17589
|
+
}
|
|
17590
|
+
const _errs15 = errors;
|
|
17591
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17592
|
+
if (data.type === void 0) {
|
|
17593
|
+
const err15 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17594
|
+
if (vErrors === null) {
|
|
17595
|
+
vErrors = [err15];
|
|
17596
|
+
} else {
|
|
17597
|
+
vErrors.push(err15);
|
|
17598
|
+
}
|
|
17599
|
+
errors++;
|
|
17600
|
+
}
|
|
17601
|
+
if (data.elements === void 0) {
|
|
17602
|
+
const err16 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "elements" }, message: "must have required property 'elements'" };
|
|
17603
|
+
if (vErrors === null) {
|
|
17604
|
+
vErrors = [err16];
|
|
17605
|
+
} else {
|
|
17606
|
+
vErrors.push(err16);
|
|
17607
|
+
}
|
|
17608
|
+
errors++;
|
|
17609
|
+
}
|
|
17610
|
+
for (const key2 in data) {
|
|
17611
|
+
if (!(key2 === "type" || key2 === "elements")) {
|
|
17612
|
+
const err17 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
17613
|
+
if (vErrors === null) {
|
|
17614
|
+
vErrors = [err17];
|
|
17615
|
+
} else {
|
|
17616
|
+
vErrors.push(err17);
|
|
17617
|
+
}
|
|
17618
|
+
errors++;
|
|
17619
|
+
}
|
|
17620
|
+
}
|
|
17621
|
+
if (data.type !== void 0) {
|
|
17622
|
+
if ("rich_text" !== data.type) {
|
|
17623
|
+
const err18 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "rich_text" }, message: "must be equal to constant" };
|
|
17624
|
+
if (vErrors === null) {
|
|
17625
|
+
vErrors = [err18];
|
|
17626
|
+
} else {
|
|
17627
|
+
vErrors.push(err18);
|
|
17628
|
+
}
|
|
17629
|
+
errors++;
|
|
17630
|
+
}
|
|
17631
|
+
}
|
|
17632
|
+
if (data.elements !== void 0) {
|
|
17633
|
+
let data6 = data.elements;
|
|
17634
|
+
if (Array.isArray(data6)) {
|
|
17635
|
+
const len0 = data6.length;
|
|
17636
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
17637
|
+
if (!validate180(data6[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
17638
|
+
vErrors = vErrors === null ? validate180.errors : vErrors.concat(validate180.errors);
|
|
17639
|
+
errors = vErrors.length;
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
} else {
|
|
17643
|
+
const err19 = { instancePath: instancePath + "/elements", schemaPath: "#/oneOf/2/properties/elements/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
17644
|
+
if (vErrors === null) {
|
|
17645
|
+
vErrors = [err19];
|
|
17646
|
+
} else {
|
|
17647
|
+
vErrors.push(err19);
|
|
17648
|
+
}
|
|
17649
|
+
errors++;
|
|
17650
|
+
}
|
|
17651
|
+
}
|
|
17652
|
+
} else {
|
|
17653
|
+
const err20 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17654
|
+
if (vErrors === null) {
|
|
17655
|
+
vErrors = [err20];
|
|
17656
|
+
} else {
|
|
17657
|
+
vErrors.push(err20);
|
|
17658
|
+
}
|
|
17659
|
+
errors++;
|
|
17660
|
+
}
|
|
17661
|
+
var _valid0 = _errs15 === errors;
|
|
17662
|
+
if (_valid0 && valid0) {
|
|
17663
|
+
valid0 = false;
|
|
17664
|
+
passing0 = [passing0, 2];
|
|
17665
|
+
} else {
|
|
17666
|
+
if (_valid0) {
|
|
17667
|
+
valid0 = true;
|
|
17668
|
+
passing0 = 2;
|
|
17669
|
+
if (props0 !== true) {
|
|
17670
|
+
props0 = true;
|
|
17671
|
+
}
|
|
17672
|
+
}
|
|
17673
|
+
}
|
|
17674
|
+
}
|
|
17675
|
+
if (!valid0) {
|
|
17676
|
+
const err21 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
17677
|
+
if (vErrors === null) {
|
|
17678
|
+
vErrors = [err21];
|
|
17679
|
+
} else {
|
|
17680
|
+
vErrors.push(err21);
|
|
17681
|
+
}
|
|
17682
|
+
errors++;
|
|
17683
|
+
} else {
|
|
17684
|
+
errors = _errs0;
|
|
17685
|
+
if (vErrors !== null) {
|
|
17686
|
+
if (_errs0) {
|
|
17687
|
+
vErrors.length = _errs0;
|
|
17688
|
+
} else {
|
|
17689
|
+
vErrors = null;
|
|
17690
|
+
}
|
|
17691
|
+
}
|
|
17692
|
+
}
|
|
17693
|
+
validate270.errors = vErrors;
|
|
17694
|
+
evaluated0.props = props0;
|
|
17695
|
+
return errors === 0;
|
|
17696
|
+
}
|
|
17697
|
+
validate270.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
17698
|
+
function validate269(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17404
17699
|
let vErrors = null;
|
|
17405
17700
|
let errors = 0;
|
|
17406
|
-
const evaluated0 =
|
|
17701
|
+
const evaluated0 = validate269.evaluated;
|
|
17702
|
+
if (evaluated0.dynamicProps) {
|
|
17703
|
+
evaluated0.props = void 0;
|
|
17704
|
+
}
|
|
17705
|
+
if (evaluated0.dynamicItems) {
|
|
17706
|
+
evaluated0.items = void 0;
|
|
17707
|
+
}
|
|
17708
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17709
|
+
if (data.type === void 0) {
|
|
17710
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17711
|
+
if (vErrors === null) {
|
|
17712
|
+
vErrors = [err0];
|
|
17713
|
+
} else {
|
|
17714
|
+
vErrors.push(err0);
|
|
17715
|
+
}
|
|
17716
|
+
errors++;
|
|
17717
|
+
}
|
|
17718
|
+
if (data.caption === void 0) {
|
|
17719
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "caption" }, message: "must have required property 'caption'" };
|
|
17720
|
+
if (vErrors === null) {
|
|
17721
|
+
vErrors = [err1];
|
|
17722
|
+
} else {
|
|
17723
|
+
vErrors.push(err1);
|
|
17724
|
+
}
|
|
17725
|
+
errors++;
|
|
17726
|
+
}
|
|
17727
|
+
if (data.rows === void 0) {
|
|
17728
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "rows" }, message: "must have required property 'rows'" };
|
|
17729
|
+
if (vErrors === null) {
|
|
17730
|
+
vErrors = [err2];
|
|
17731
|
+
} else {
|
|
17732
|
+
vErrors.push(err2);
|
|
17733
|
+
}
|
|
17734
|
+
errors++;
|
|
17735
|
+
}
|
|
17736
|
+
for (const key0 in data) {
|
|
17737
|
+
if (!(key0 === "type" || key0 === "block_id" || key0 === "caption" || key0 === "page_size" || key0 === "row_header_column_index" || key0 === "rows")) {
|
|
17738
|
+
const err3 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17739
|
+
if (vErrors === null) {
|
|
17740
|
+
vErrors = [err3];
|
|
17741
|
+
} else {
|
|
17742
|
+
vErrors.push(err3);
|
|
17743
|
+
}
|
|
17744
|
+
errors++;
|
|
17745
|
+
}
|
|
17746
|
+
}
|
|
17747
|
+
if (data.type !== void 0) {
|
|
17748
|
+
if ("data_table" !== data.type) {
|
|
17749
|
+
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/const", keyword: "const", params: { allowedValue: "data_table" }, message: "must be equal to constant" };
|
|
17750
|
+
if (vErrors === null) {
|
|
17751
|
+
vErrors = [err4];
|
|
17752
|
+
} else {
|
|
17753
|
+
vErrors.push(err4);
|
|
17754
|
+
}
|
|
17755
|
+
errors++;
|
|
17756
|
+
}
|
|
17757
|
+
}
|
|
17758
|
+
if (data.block_id !== void 0) {
|
|
17759
|
+
let data1 = data.block_id;
|
|
17760
|
+
if (typeof data1 === "string") {
|
|
17761
|
+
if (func1(data1) > 255) {
|
|
17762
|
+
const err5 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" };
|
|
17763
|
+
if (vErrors === null) {
|
|
17764
|
+
vErrors = [err5];
|
|
17765
|
+
} else {
|
|
17766
|
+
vErrors.push(err5);
|
|
17767
|
+
}
|
|
17768
|
+
errors++;
|
|
17769
|
+
}
|
|
17770
|
+
if (func1(data1) < 1) {
|
|
17771
|
+
const err6 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17772
|
+
if (vErrors === null) {
|
|
17773
|
+
vErrors = [err6];
|
|
17774
|
+
} else {
|
|
17775
|
+
vErrors.push(err6);
|
|
17776
|
+
}
|
|
17777
|
+
errors++;
|
|
17778
|
+
}
|
|
17779
|
+
} else {
|
|
17780
|
+
const err7 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17781
|
+
if (vErrors === null) {
|
|
17782
|
+
vErrors = [err7];
|
|
17783
|
+
} else {
|
|
17784
|
+
vErrors.push(err7);
|
|
17785
|
+
}
|
|
17786
|
+
errors++;
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
if (data.caption !== void 0) {
|
|
17790
|
+
let data2 = data.caption;
|
|
17791
|
+
if (typeof data2 === "string") {
|
|
17792
|
+
if (func1(data2) < 1) {
|
|
17793
|
+
const err8 = { instancePath: instancePath + "/caption", schemaPath: "#/properties/caption/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17794
|
+
if (vErrors === null) {
|
|
17795
|
+
vErrors = [err8];
|
|
17796
|
+
} else {
|
|
17797
|
+
vErrors.push(err8);
|
|
17798
|
+
}
|
|
17799
|
+
errors++;
|
|
17800
|
+
}
|
|
17801
|
+
} else {
|
|
17802
|
+
const err9 = { instancePath: instancePath + "/caption", schemaPath: "#/properties/caption/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17803
|
+
if (vErrors === null) {
|
|
17804
|
+
vErrors = [err9];
|
|
17805
|
+
} else {
|
|
17806
|
+
vErrors.push(err9);
|
|
17807
|
+
}
|
|
17808
|
+
errors++;
|
|
17809
|
+
}
|
|
17810
|
+
}
|
|
17811
|
+
if (data.page_size !== void 0) {
|
|
17812
|
+
let data3 = data.page_size;
|
|
17813
|
+
if (!(typeof data3 == "number" && (!(data3 % 1) && !isNaN(data3)))) {
|
|
17814
|
+
const err10 = { instancePath: instancePath + "/page_size", schemaPath: "#/properties/page_size/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
17815
|
+
if (vErrors === null) {
|
|
17816
|
+
vErrors = [err10];
|
|
17817
|
+
} else {
|
|
17818
|
+
vErrors.push(err10);
|
|
17819
|
+
}
|
|
17820
|
+
errors++;
|
|
17821
|
+
}
|
|
17822
|
+
if (typeof data3 == "number") {
|
|
17823
|
+
if (data3 > 100 || isNaN(data3)) {
|
|
17824
|
+
const err11 = { instancePath: instancePath + "/page_size", schemaPath: "#/properties/page_size/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
|
|
17825
|
+
if (vErrors === null) {
|
|
17826
|
+
vErrors = [err11];
|
|
17827
|
+
} else {
|
|
17828
|
+
vErrors.push(err11);
|
|
17829
|
+
}
|
|
17830
|
+
errors++;
|
|
17831
|
+
}
|
|
17832
|
+
if (data3 < 1 || isNaN(data3)) {
|
|
17833
|
+
const err12 = { instancePath: instancePath + "/page_size", schemaPath: "#/properties/page_size/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
17834
|
+
if (vErrors === null) {
|
|
17835
|
+
vErrors = [err12];
|
|
17836
|
+
} else {
|
|
17837
|
+
vErrors.push(err12);
|
|
17838
|
+
}
|
|
17839
|
+
errors++;
|
|
17840
|
+
}
|
|
17841
|
+
}
|
|
17842
|
+
}
|
|
17843
|
+
if (data.row_header_column_index !== void 0) {
|
|
17844
|
+
let data4 = data.row_header_column_index;
|
|
17845
|
+
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)))) {
|
|
17846
|
+
const err13 = { instancePath: instancePath + "/row_header_column_index", schemaPath: "#/properties/row_header_column_index/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
17847
|
+
if (vErrors === null) {
|
|
17848
|
+
vErrors = [err13];
|
|
17849
|
+
} else {
|
|
17850
|
+
vErrors.push(err13);
|
|
17851
|
+
}
|
|
17852
|
+
errors++;
|
|
17853
|
+
}
|
|
17854
|
+
if (typeof data4 == "number") {
|
|
17855
|
+
if (data4 > 19 || isNaN(data4)) {
|
|
17856
|
+
const err14 = { instancePath: instancePath + "/row_header_column_index", schemaPath: "#/properties/row_header_column_index/maximum", keyword: "maximum", params: { comparison: "<=", limit: 19 }, message: "must be <= 19" };
|
|
17857
|
+
if (vErrors === null) {
|
|
17858
|
+
vErrors = [err14];
|
|
17859
|
+
} else {
|
|
17860
|
+
vErrors.push(err14);
|
|
17861
|
+
}
|
|
17862
|
+
errors++;
|
|
17863
|
+
}
|
|
17864
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
17865
|
+
const err15 = { instancePath: instancePath + "/row_header_column_index", schemaPath: "#/properties/row_header_column_index/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
17866
|
+
if (vErrors === null) {
|
|
17867
|
+
vErrors = [err15];
|
|
17868
|
+
} else {
|
|
17869
|
+
vErrors.push(err15);
|
|
17870
|
+
}
|
|
17871
|
+
errors++;
|
|
17872
|
+
}
|
|
17873
|
+
}
|
|
17874
|
+
}
|
|
17875
|
+
if (data.rows !== void 0) {
|
|
17876
|
+
let data5 = data.rows;
|
|
17877
|
+
if (Array.isArray(data5)) {
|
|
17878
|
+
if (data5.length > 101) {
|
|
17879
|
+
const err16 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/maxItems", keyword: "maxItems", params: { limit: 101 }, message: "must NOT have more than 101 items" };
|
|
17880
|
+
if (vErrors === null) {
|
|
17881
|
+
vErrors = [err16];
|
|
17882
|
+
} else {
|
|
17883
|
+
vErrors.push(err16);
|
|
17884
|
+
}
|
|
17885
|
+
errors++;
|
|
17886
|
+
}
|
|
17887
|
+
if (data5.length < 2) {
|
|
17888
|
+
const err17 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/minItems", keyword: "minItems", params: { limit: 2 }, message: "must NOT have fewer than 2 items" };
|
|
17889
|
+
if (vErrors === null) {
|
|
17890
|
+
vErrors = [err17];
|
|
17891
|
+
} else {
|
|
17892
|
+
vErrors.push(err17);
|
|
17893
|
+
}
|
|
17894
|
+
errors++;
|
|
17895
|
+
}
|
|
17896
|
+
const len0 = data5.length;
|
|
17897
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
17898
|
+
let data6 = data5[i0];
|
|
17899
|
+
if (Array.isArray(data6)) {
|
|
17900
|
+
if (data6.length > 20) {
|
|
17901
|
+
const err18 = { instancePath: instancePath + "/rows/" + i0, schemaPath: "#/properties/rows/items/maxItems", keyword: "maxItems", params: { limit: 20 }, message: "must NOT have more than 20 items" };
|
|
17902
|
+
if (vErrors === null) {
|
|
17903
|
+
vErrors = [err18];
|
|
17904
|
+
} else {
|
|
17905
|
+
vErrors.push(err18);
|
|
17906
|
+
}
|
|
17907
|
+
errors++;
|
|
17908
|
+
}
|
|
17909
|
+
if (data6.length < 1) {
|
|
17910
|
+
const err19 = { instancePath: instancePath + "/rows/" + i0, schemaPath: "#/properties/rows/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
17911
|
+
if (vErrors === null) {
|
|
17912
|
+
vErrors = [err19];
|
|
17913
|
+
} else {
|
|
17914
|
+
vErrors.push(err19);
|
|
17915
|
+
}
|
|
17916
|
+
errors++;
|
|
17917
|
+
}
|
|
17918
|
+
const len1 = data6.length;
|
|
17919
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
17920
|
+
if (!validate270(data6[i1], { instancePath: instancePath + "/rows/" + i0 + "/" + i1, parentData: data6, parentDataProperty: i1, rootData, dynamicAnchors })) {
|
|
17921
|
+
vErrors = vErrors === null ? validate270.errors : vErrors.concat(validate270.errors);
|
|
17922
|
+
errors = vErrors.length;
|
|
17923
|
+
}
|
|
17924
|
+
}
|
|
17925
|
+
} else {
|
|
17926
|
+
const err20 = { instancePath: instancePath + "/rows/" + i0, schemaPath: "#/properties/rows/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
17927
|
+
if (vErrors === null) {
|
|
17928
|
+
vErrors = [err20];
|
|
17929
|
+
} else {
|
|
17930
|
+
vErrors.push(err20);
|
|
17931
|
+
}
|
|
17932
|
+
errors++;
|
|
17933
|
+
}
|
|
17934
|
+
}
|
|
17935
|
+
} else {
|
|
17936
|
+
const err21 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
17937
|
+
if (vErrors === null) {
|
|
17938
|
+
vErrors = [err21];
|
|
17939
|
+
} else {
|
|
17940
|
+
vErrors.push(err21);
|
|
17941
|
+
}
|
|
17942
|
+
errors++;
|
|
17943
|
+
}
|
|
17944
|
+
}
|
|
17945
|
+
} else {
|
|
17946
|
+
const err22 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17947
|
+
if (vErrors === null) {
|
|
17948
|
+
vErrors = [err22];
|
|
17949
|
+
} else {
|
|
17950
|
+
vErrors.push(err22);
|
|
17951
|
+
}
|
|
17952
|
+
errors++;
|
|
17953
|
+
}
|
|
17954
|
+
validate269.errors = vErrors;
|
|
17955
|
+
return errors === 0;
|
|
17956
|
+
}
|
|
17957
|
+
validate269.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17958
|
+
var schema204 = { "description": "The chart rendered by a data_visualization block. line/bar/area charts use series + axis_config; pie charts use segments.", "oneOf": [{ "description": "Cartesian chart \u2014 line, bar, or area. 1\u20136 series; axis_config required.", "type": "object", "additionalProperties": false, "required": ["type", "series", "axis_config"], "properties": { "type": { "enum": ["line", "bar", "area"] }, "series": { "type": "array", "minItems": 1, "maxItems": 6, "items": { "$ref": "#/$defs/data_visualization_series" } }, "axis_config": { "$ref": "#/$defs/data_visualization_axis_config" } } }, { "description": "Pie chart. 1\u20136 segments.", "type": "object", "additionalProperties": false, "required": ["type", "segments"], "properties": { "type": { "const": "pie" }, "segments": { "type": "array", "minItems": 1, "maxItems": 6, "items": { "$ref": "#/$defs/data_visualization_segment" } } } }] };
|
|
17959
|
+
function validate276(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17960
|
+
let vErrors = null;
|
|
17961
|
+
let errors = 0;
|
|
17962
|
+
const evaluated0 = validate276.evaluated;
|
|
17407
17963
|
if (evaluated0.dynamicProps) {
|
|
17408
17964
|
evaluated0.props = void 0;
|
|
17409
17965
|
}
|
|
@@ -17596,14 +18152,14 @@ function validate271(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17596
18152
|
}
|
|
17597
18153
|
errors++;
|
|
17598
18154
|
}
|
|
17599
|
-
|
|
18155
|
+
validate276.errors = vErrors;
|
|
17600
18156
|
return errors === 0;
|
|
17601
18157
|
}
|
|
17602
|
-
|
|
17603
|
-
function
|
|
18158
|
+
validate276.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18159
|
+
function validate275(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17604
18160
|
let vErrors = null;
|
|
17605
18161
|
let errors = 0;
|
|
17606
|
-
const evaluated0 =
|
|
18162
|
+
const evaluated0 = validate275.evaluated;
|
|
17607
18163
|
if (evaluated0.dynamicProps) {
|
|
17608
18164
|
evaluated0.props = void 0;
|
|
17609
18165
|
}
|
|
@@ -17656,7 +18212,7 @@ function validate270(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17656
18212
|
if (data.type !== void 0) {
|
|
17657
18213
|
let data0 = data.type;
|
|
17658
18214
|
if (!(data0 === "line" || data0 === "bar" || data0 === "area")) {
|
|
17659
|
-
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
18215
|
+
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/enum", keyword: "enum", params: { allowedValues: schema204.oneOf[0].properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
17660
18216
|
if (vErrors === null) {
|
|
17661
18217
|
vErrors = [err4];
|
|
17662
18218
|
} else {
|
|
@@ -17688,8 +18244,8 @@ function validate270(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17688
18244
|
}
|
|
17689
18245
|
const len0 = data1.length;
|
|
17690
18246
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
17691
|
-
if (!
|
|
17692
|
-
vErrors = vErrors === null ?
|
|
18247
|
+
if (!validate276(data1[i0], { instancePath: instancePath + "/series/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
18248
|
+
vErrors = vErrors === null ? validate276.errors : vErrors.concat(validate276.errors);
|
|
17693
18249
|
errors = vErrors.length;
|
|
17694
18250
|
}
|
|
17695
18251
|
}
|
|
@@ -18049,15 +18605,15 @@ function validate270(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18049
18605
|
}
|
|
18050
18606
|
}
|
|
18051
18607
|
}
|
|
18052
|
-
|
|
18608
|
+
validate275.errors = vErrors;
|
|
18053
18609
|
evaluated0.props = props0;
|
|
18054
18610
|
return errors === 0;
|
|
18055
18611
|
}
|
|
18056
|
-
|
|
18057
|
-
function
|
|
18612
|
+
validate275.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
18613
|
+
function validate274(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18058
18614
|
let vErrors = null;
|
|
18059
18615
|
let errors = 0;
|
|
18060
|
-
const evaluated0 =
|
|
18616
|
+
const evaluated0 = validate274.evaluated;
|
|
18061
18617
|
if (evaluated0.dynamicProps) {
|
|
18062
18618
|
evaluated0.props = void 0;
|
|
18063
18619
|
}
|
|
@@ -18177,8 +18733,8 @@ function validate269(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18177
18733
|
}
|
|
18178
18734
|
}
|
|
18179
18735
|
if (data.chart !== void 0) {
|
|
18180
|
-
if (!
|
|
18181
|
-
vErrors = vErrors === null ?
|
|
18736
|
+
if (!validate275(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors })) {
|
|
18737
|
+
vErrors = vErrors === null ? validate275.errors : vErrors.concat(validate275.errors);
|
|
18182
18738
|
errors = vErrors.length;
|
|
18183
18739
|
}
|
|
18184
18740
|
}
|
|
@@ -18191,14 +18747,14 @@ function validate269(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18191
18747
|
}
|
|
18192
18748
|
errors++;
|
|
18193
18749
|
}
|
|
18194
|
-
|
|
18750
|
+
validate274.errors = vErrors;
|
|
18195
18751
|
return errors === 0;
|
|
18196
18752
|
}
|
|
18197
|
-
|
|
18198
|
-
function
|
|
18753
|
+
validate274.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18754
|
+
function validate285(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18199
18755
|
let vErrors = null;
|
|
18200
18756
|
let errors = 0;
|
|
18201
|
-
const evaluated0 =
|
|
18757
|
+
const evaluated0 = validate285.evaluated;
|
|
18202
18758
|
if (evaluated0.dynamicProps) {
|
|
18203
18759
|
evaluated0.props = void 0;
|
|
18204
18760
|
}
|
|
@@ -18317,15 +18873,15 @@ function validate280(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18317
18873
|
}
|
|
18318
18874
|
errors++;
|
|
18319
18875
|
}
|
|
18320
|
-
|
|
18876
|
+
validate285.errors = vErrors;
|
|
18321
18877
|
return errors === 0;
|
|
18322
18878
|
}
|
|
18323
|
-
|
|
18324
|
-
var
|
|
18325
|
-
function
|
|
18879
|
+
validate285.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18880
|
+
var schema214 = { "description": "A task card as it appears inline within a plan_block tasks array \u2014 the docs' example omits the type discriminator.", "type": "object", "additionalProperties": false, "required": ["task_id", "title"], "properties": { "type": { "const": "task_card" }, "task_id": { "type": "string", "minLength": 1 }, "title": { "type": "string", "minLength": 1 }, "details": { "$ref": "#/$defs/rich_text_block" }, "output": { "$ref": "#/$defs/rich_text_block" }, "sources": { "type": "array", "items": { "$ref": "#/$defs/url_source_element" } }, "status": { "enum": ["pending", "in_progress", "complete", "error"] }, "block_id": { "$ref": "#/$defs/block_id" } } };
|
|
18881
|
+
function validate288(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18326
18882
|
let vErrors = null;
|
|
18327
18883
|
let errors = 0;
|
|
18328
|
-
const evaluated0 =
|
|
18884
|
+
const evaluated0 = validate288.evaluated;
|
|
18329
18885
|
if (evaluated0.dynamicProps) {
|
|
18330
18886
|
evaluated0.props = void 0;
|
|
18331
18887
|
}
|
|
@@ -18552,7 +19108,7 @@ function validate283(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18552
19108
|
if (data.status !== void 0) {
|
|
18553
19109
|
let data10 = data.status;
|
|
18554
19110
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
18555
|
-
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
19111
|
+
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema214.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
18556
19112
|
if (vErrors === null) {
|
|
18557
19113
|
vErrors = [err19];
|
|
18558
19114
|
} else {
|
|
@@ -18601,14 +19157,14 @@ function validate283(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18601
19157
|
}
|
|
18602
19158
|
errors++;
|
|
18603
19159
|
}
|
|
18604
|
-
|
|
19160
|
+
validate288.errors = vErrors;
|
|
18605
19161
|
return errors === 0;
|
|
18606
19162
|
}
|
|
18607
|
-
|
|
18608
|
-
function
|
|
19163
|
+
validate288.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19164
|
+
function validate287(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18609
19165
|
let vErrors = null;
|
|
18610
19166
|
let errors = 0;
|
|
18611
|
-
const evaluated0 =
|
|
19167
|
+
const evaluated0 = validate287.evaluated;
|
|
18612
19168
|
if (evaluated0.dynamicProps) {
|
|
18613
19169
|
evaluated0.props = void 0;
|
|
18614
19170
|
}
|
|
@@ -18844,8 +19400,8 @@ function validate282(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18844
19400
|
if (Array.isArray(data6)) {
|
|
18845
19401
|
const len0 = data6.length;
|
|
18846
19402
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
18847
|
-
if (!
|
|
18848
|
-
vErrors = vErrors === null ?
|
|
19403
|
+
if (!validate288(data6[i0], { instancePath: instancePath + "/tasks/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
19404
|
+
vErrors = vErrors === null ? validate288.errors : vErrors.concat(validate288.errors);
|
|
18849
19405
|
errors = vErrors.length;
|
|
18850
19406
|
}
|
|
18851
19407
|
}
|
|
@@ -18868,15 +19424,15 @@ function validate282(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18868
19424
|
}
|
|
18869
19425
|
errors++;
|
|
18870
19426
|
}
|
|
18871
|
-
|
|
19427
|
+
validate287.errors = vErrors;
|
|
18872
19428
|
return errors === 0;
|
|
18873
19429
|
}
|
|
18874
|
-
|
|
18875
|
-
var
|
|
18876
|
-
function
|
|
19430
|
+
validate287.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19431
|
+
var schema217 = { "description": "Standalone task_card block (also embeddable inline within plan_block).", "type": "object", "additionalProperties": false, "required": ["type", "task_id", "title"], "properties": { "type": { "const": "task_card" }, "task_id": { "type": "string", "minLength": 1 }, "title": { "type": "string", "minLength": 1 }, "details": { "$ref": "#/$defs/rich_text_block" }, "output": { "$ref": "#/$defs/rich_text_block" }, "sources": { "type": "array", "items": { "$ref": "#/$defs/url_source_element" } }, "status": { "enum": ["pending", "in_progress", "complete", "error"] }, "block_id": { "$ref": "#/$defs/block_id" } } };
|
|
19432
|
+
function validate296(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18877
19433
|
let vErrors = null;
|
|
18878
19434
|
let errors = 0;
|
|
18879
|
-
const evaluated0 =
|
|
19435
|
+
const evaluated0 = validate296.evaluated;
|
|
18880
19436
|
if (evaluated0.dynamicProps) {
|
|
18881
19437
|
evaluated0.props = void 0;
|
|
18882
19438
|
}
|
|
@@ -19112,7 +19668,7 @@ function validate291(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19112
19668
|
if (data.status !== void 0) {
|
|
19113
19669
|
let data10 = data.status;
|
|
19114
19670
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
19115
|
-
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
19671
|
+
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema217.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
19116
19672
|
if (vErrors === null) {
|
|
19117
19673
|
vErrors = [err20];
|
|
19118
19674
|
} else {
|
|
@@ -19161,10 +19717,10 @@ function validate291(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19161
19717
|
}
|
|
19162
19718
|
errors++;
|
|
19163
19719
|
}
|
|
19164
|
-
|
|
19720
|
+
validate296.errors = vErrors;
|
|
19165
19721
|
return errors === 0;
|
|
19166
19722
|
}
|
|
19167
|
-
|
|
19723
|
+
validate296.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19168
19724
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19169
19725
|
let vErrors = null;
|
|
19170
19726
|
let errors = 0;
|
|
@@ -19309,8 +19865,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19309
19865
|
}
|
|
19310
19866
|
}
|
|
19311
19867
|
const _errs9 = errors;
|
|
19312
|
-
if (!
|
|
19313
|
-
vErrors = vErrors === null ?
|
|
19868
|
+
if (!validate274(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19869
|
+
vErrors = vErrors === null ? validate274.errors : vErrors.concat(validate274.errors);
|
|
19314
19870
|
errors = vErrors.length;
|
|
19315
19871
|
}
|
|
19316
19872
|
var _valid0 = _errs9 === errors;
|
|
@@ -19326,8 +19882,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19326
19882
|
}
|
|
19327
19883
|
}
|
|
19328
19884
|
const _errs10 = errors;
|
|
19329
|
-
if (!
|
|
19330
|
-
vErrors = vErrors === null ?
|
|
19885
|
+
if (!validate141(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19886
|
+
vErrors = vErrors === null ? validate141.errors : vErrors.concat(validate141.errors);
|
|
19331
19887
|
errors = vErrors.length;
|
|
19332
19888
|
}
|
|
19333
19889
|
var _valid0 = _errs10 === errors;
|
|
@@ -19343,8 +19899,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19343
19899
|
}
|
|
19344
19900
|
}
|
|
19345
19901
|
const _errs11 = errors;
|
|
19346
|
-
if (!
|
|
19347
|
-
vErrors = vErrors === null ?
|
|
19902
|
+
if (!validate143(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19903
|
+
vErrors = vErrors === null ? validate143.errors : vErrors.concat(validate143.errors);
|
|
19348
19904
|
errors = vErrors.length;
|
|
19349
19905
|
}
|
|
19350
19906
|
var _valid0 = _errs11 === errors;
|
|
@@ -19360,8 +19916,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19360
19916
|
}
|
|
19361
19917
|
}
|
|
19362
19918
|
const _errs12 = errors;
|
|
19363
|
-
if (!
|
|
19364
|
-
vErrors = vErrors === null ?
|
|
19919
|
+
if (!validate145(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19920
|
+
vErrors = vErrors === null ? validate145.errors : vErrors.concat(validate145.errors);
|
|
19365
19921
|
errors = vErrors.length;
|
|
19366
19922
|
}
|
|
19367
19923
|
var _valid0 = _errs12 === errors;
|
|
@@ -19377,8 +19933,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19377
19933
|
}
|
|
19378
19934
|
}
|
|
19379
19935
|
const _errs13 = errors;
|
|
19380
|
-
if (!
|
|
19381
|
-
vErrors = vErrors === null ?
|
|
19936
|
+
if (!validate147(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19937
|
+
vErrors = vErrors === null ? validate147.errors : vErrors.concat(validate147.errors);
|
|
19382
19938
|
errors = vErrors.length;
|
|
19383
19939
|
}
|
|
19384
19940
|
var _valid0 = _errs13 === errors;
|
|
@@ -19394,8 +19950,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19394
19950
|
}
|
|
19395
19951
|
}
|
|
19396
19952
|
const _errs14 = errors;
|
|
19397
|
-
if (!
|
|
19398
|
-
vErrors = vErrors === null ?
|
|
19953
|
+
if (!validate149(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19954
|
+
vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
|
|
19399
19955
|
errors = vErrors.length;
|
|
19400
19956
|
}
|
|
19401
19957
|
var _valid0 = _errs14 === errors;
|
|
@@ -19411,8 +19967,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19411
19967
|
}
|
|
19412
19968
|
}
|
|
19413
19969
|
const _errs15 = errors;
|
|
19414
|
-
if (!
|
|
19415
|
-
vErrors = vErrors === null ?
|
|
19970
|
+
if (!validate285(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19971
|
+
vErrors = vErrors === null ? validate285.errors : vErrors.concat(validate285.errors);
|
|
19416
19972
|
errors = vErrors.length;
|
|
19417
19973
|
}
|
|
19418
19974
|
var _valid0 = _errs15 === errors;
|
|
@@ -19428,8 +19984,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19428
19984
|
}
|
|
19429
19985
|
}
|
|
19430
19986
|
const _errs16 = errors;
|
|
19431
|
-
if (!
|
|
19432
|
-
vErrors = vErrors === null ?
|
|
19987
|
+
if (!validate287(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
19988
|
+
vErrors = vErrors === null ? validate287.errors : vErrors.concat(validate287.errors);
|
|
19433
19989
|
errors = vErrors.length;
|
|
19434
19990
|
}
|
|
19435
19991
|
var _valid0 = _errs16 === errors;
|
|
@@ -19445,8 +20001,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19445
20001
|
}
|
|
19446
20002
|
}
|
|
19447
20003
|
const _errs17 = errors;
|
|
19448
|
-
if (!
|
|
19449
|
-
vErrors = vErrors === null ?
|
|
20004
|
+
if (!validate179(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20005
|
+
vErrors = vErrors === null ? validate179.errors : vErrors.concat(validate179.errors);
|
|
19450
20006
|
errors = vErrors.length;
|
|
19451
20007
|
}
|
|
19452
20008
|
var _valid0 = _errs17 === errors;
|
|
@@ -19462,8 +20018,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19462
20018
|
}
|
|
19463
20019
|
}
|
|
19464
20020
|
const _errs18 = errors;
|
|
19465
|
-
if (!
|
|
19466
|
-
vErrors = vErrors === null ?
|
|
20021
|
+
if (!validate223(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20022
|
+
vErrors = vErrors === null ? validate223.errors : vErrors.concat(validate223.errors);
|
|
19467
20023
|
errors = vErrors.length;
|
|
19468
20024
|
}
|
|
19469
20025
|
var _valid0 = _errs18 === errors;
|
|
@@ -19479,8 +20035,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19479
20035
|
}
|
|
19480
20036
|
}
|
|
19481
20037
|
const _errs19 = errors;
|
|
19482
|
-
if (!
|
|
19483
|
-
vErrors = vErrors === null ?
|
|
20038
|
+
if (!validate247(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20039
|
+
vErrors = vErrors === null ? validate247.errors : vErrors.concat(validate247.errors);
|
|
19484
20040
|
errors = vErrors.length;
|
|
19485
20041
|
}
|
|
19486
20042
|
var _valid0 = _errs19 === errors;
|
|
@@ -19496,8 +20052,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19496
20052
|
}
|
|
19497
20053
|
}
|
|
19498
20054
|
const _errs20 = errors;
|
|
19499
|
-
if (!
|
|
19500
|
-
vErrors = vErrors === null ?
|
|
20055
|
+
if (!validate296(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20056
|
+
vErrors = vErrors === null ? validate296.errors : vErrors.concat(validate296.errors);
|
|
19501
20057
|
errors = vErrors.length;
|
|
19502
20058
|
}
|
|
19503
20059
|
var _valid0 = _errs20 === errors;
|
|
@@ -19512,6 +20068,24 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19512
20068
|
props0 = true;
|
|
19513
20069
|
}
|
|
19514
20070
|
}
|
|
20071
|
+
const _errs21 = errors;
|
|
20072
|
+
if (!validate252(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20073
|
+
vErrors = vErrors === null ? validate252.errors : vErrors.concat(validate252.errors);
|
|
20074
|
+
errors = vErrors.length;
|
|
20075
|
+
}
|
|
20076
|
+
var _valid0 = _errs21 === errors;
|
|
20077
|
+
if (_valid0 && valid0) {
|
|
20078
|
+
valid0 = false;
|
|
20079
|
+
passing0 = [passing0, 20];
|
|
20080
|
+
} else {
|
|
20081
|
+
if (_valid0) {
|
|
20082
|
+
valid0 = true;
|
|
20083
|
+
passing0 = 20;
|
|
20084
|
+
if (props0 !== true) {
|
|
20085
|
+
props0 = true;
|
|
20086
|
+
}
|
|
20087
|
+
}
|
|
20088
|
+
}
|
|
19515
20089
|
}
|
|
19516
20090
|
}
|
|
19517
20091
|
}
|
|
@@ -19604,12 +20178,12 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19604
20178
|
return errors === 0;
|
|
19605
20179
|
}
|
|
19606
20180
|
validate21.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
19607
|
-
var validateModal =
|
|
19608
|
-
var
|
|
19609
|
-
function
|
|
20181
|
+
var validateModal = validate311;
|
|
20182
|
+
var schema221 = { "description": "Modal view surface (views.open / views.push / views.update payload). title/submit/close text capped at 24 chars. When blocks contain any input block, submit is required (per docs).", "type": "object", "additionalProperties": false, "required": ["type", "title", "blocks"], "properties": { "type": { "const": "modal" }, "title": { "allOf": [{ "$ref": "#/$defs/plain_text_object" }, { "properties": { "text": { "maxLength": 24 } } }] }, "blocks": { "type": "array", "minItems": 1, "maxItems": 100, "items": { "$ref": "#/$defs/block" } }, "close": { "allOf": [{ "$ref": "#/$defs/plain_text_object" }, { "properties": { "text": { "maxLength": 24 } } }] }, "submit": { "allOf": [{ "$ref": "#/$defs/plain_text_object" }, { "properties": { "text": { "maxLength": 24 } } }] }, "private_metadata": { "type": "string", "maxLength": 3e3 }, "callback_id": { "type": "string", "maxLength": 255 }, "clear_on_close": { "type": "boolean" }, "notify_on_close": { "type": "boolean" }, "external_id": { "type": "string", "maxLength": 255 }, "submit_disabled": { "type": "boolean" } }, "allOf": [{ "if": { "properties": { "blocks": { "contains": { "type": "object", "properties": { "type": { "const": "input" } }, "required": ["type"] } } } }, "then": { "required": ["submit"] } }] };
|
|
20183
|
+
function validate311(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19610
20184
|
let vErrors = null;
|
|
19611
20185
|
let errors = 0;
|
|
19612
|
-
const evaluated0 =
|
|
20186
|
+
const evaluated0 = validate311.evaluated;
|
|
19613
20187
|
if (evaluated0.dynamicProps) {
|
|
19614
20188
|
evaluated0.props = void 0;
|
|
19615
20189
|
}
|
|
@@ -19751,7 +20325,7 @@ function validate306(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19751
20325
|
errors++;
|
|
19752
20326
|
}
|
|
19753
20327
|
for (const key0 in data) {
|
|
19754
|
-
if (!func81.call(
|
|
20328
|
+
if (!func81.call(schema221.properties, key0)) {
|
|
19755
20329
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
19756
20330
|
if (vErrors === null) {
|
|
19757
20331
|
vErrors = [err9];
|
|
@@ -20251,15 +20825,15 @@ function validate306(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20251
20825
|
}
|
|
20252
20826
|
errors++;
|
|
20253
20827
|
}
|
|
20254
|
-
|
|
20828
|
+
validate311.errors = vErrors;
|
|
20255
20829
|
return errors === 0;
|
|
20256
20830
|
}
|
|
20257
|
-
|
|
20258
|
-
var validateHome =
|
|
20259
|
-
function
|
|
20831
|
+
validate311.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20832
|
+
var validateHome = validate313;
|
|
20833
|
+
function validate313(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20260
20834
|
let vErrors = null;
|
|
20261
20835
|
let errors = 0;
|
|
20262
|
-
const evaluated0 =
|
|
20836
|
+
const evaluated0 = validate313.evaluated;
|
|
20263
20837
|
if (evaluated0.dynamicProps) {
|
|
20264
20838
|
evaluated0.props = void 0;
|
|
20265
20839
|
}
|
|
@@ -20420,10 +20994,10 @@ function validate308(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20420
20994
|
}
|
|
20421
20995
|
errors++;
|
|
20422
20996
|
}
|
|
20423
|
-
|
|
20997
|
+
validate313.errors = vErrors;
|
|
20424
20998
|
return errors === 0;
|
|
20425
20999
|
}
|
|
20426
|
-
|
|
21000
|
+
validate313.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20427
21001
|
export {
|
|
20428
21002
|
validateBlocks,
|
|
20429
21003
|
validateHome,
|