@tightknitai/slack-block-kit-validator 0.1.18 → 0.1.19
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/dist/precompiled-validators.js +571 -265
- package/dist/slack-block-kit.schema.json +59 -35
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.generated.d.ts +35 -15
- package/dist/types.generated.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -17576,6 +17576,360 @@ function validate258(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17576
17576
|
return errors === 0;
|
|
17577
17577
|
}
|
|
17578
17578
|
validate258.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17579
|
+
function validate273(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17580
|
+
let vErrors = null;
|
|
17581
|
+
let errors = 0;
|
|
17582
|
+
const evaluated0 = validate273.evaluated;
|
|
17583
|
+
if (evaluated0.dynamicProps) {
|
|
17584
|
+
evaluated0.props = void 0;
|
|
17585
|
+
}
|
|
17586
|
+
if (evaluated0.dynamicItems) {
|
|
17587
|
+
evaluated0.items = void 0;
|
|
17588
|
+
}
|
|
17589
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17590
|
+
if (data.type === void 0) {
|
|
17591
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17592
|
+
if (vErrors === null) {
|
|
17593
|
+
vErrors = [err0];
|
|
17594
|
+
} else {
|
|
17595
|
+
vErrors.push(err0);
|
|
17596
|
+
}
|
|
17597
|
+
errors++;
|
|
17598
|
+
}
|
|
17599
|
+
if (data.elements === void 0) {
|
|
17600
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "elements" }, message: "must have required property 'elements'" };
|
|
17601
|
+
if (vErrors === null) {
|
|
17602
|
+
vErrors = [err1];
|
|
17603
|
+
} else {
|
|
17604
|
+
vErrors.push(err1);
|
|
17605
|
+
}
|
|
17606
|
+
errors++;
|
|
17607
|
+
}
|
|
17608
|
+
for (const key0 in data) {
|
|
17609
|
+
if (!(key0 === "type" || key0 === "elements")) {
|
|
17610
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17611
|
+
if (vErrors === null) {
|
|
17612
|
+
vErrors = [err2];
|
|
17613
|
+
} else {
|
|
17614
|
+
vErrors.push(err2);
|
|
17615
|
+
}
|
|
17616
|
+
errors++;
|
|
17617
|
+
}
|
|
17618
|
+
}
|
|
17619
|
+
if (data.type !== void 0) {
|
|
17620
|
+
if ("rich_text" !== data.type) {
|
|
17621
|
+
const err3 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/const", keyword: "const", params: { allowedValue: "rich_text" }, message: "must be equal to constant" };
|
|
17622
|
+
if (vErrors === null) {
|
|
17623
|
+
vErrors = [err3];
|
|
17624
|
+
} else {
|
|
17625
|
+
vErrors.push(err3);
|
|
17626
|
+
}
|
|
17627
|
+
errors++;
|
|
17628
|
+
}
|
|
17629
|
+
}
|
|
17630
|
+
if (data.elements !== void 0) {
|
|
17631
|
+
let data1 = data.elements;
|
|
17632
|
+
if (Array.isArray(data1)) {
|
|
17633
|
+
const len0 = data1.length;
|
|
17634
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
17635
|
+
if (!validate133(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
17636
|
+
vErrors = vErrors === null ? validate133.errors : vErrors.concat(validate133.errors);
|
|
17637
|
+
errors = vErrors.length;
|
|
17638
|
+
}
|
|
17639
|
+
}
|
|
17640
|
+
} else {
|
|
17641
|
+
const err4 = { instancePath: instancePath + "/elements", schemaPath: "#/properties/elements/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
17642
|
+
if (vErrors === null) {
|
|
17643
|
+
vErrors = [err4];
|
|
17644
|
+
} else {
|
|
17645
|
+
vErrors.push(err4);
|
|
17646
|
+
}
|
|
17647
|
+
errors++;
|
|
17648
|
+
}
|
|
17649
|
+
}
|
|
17650
|
+
} else {
|
|
17651
|
+
const err5 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17652
|
+
if (vErrors === null) {
|
|
17653
|
+
vErrors = [err5];
|
|
17654
|
+
} else {
|
|
17655
|
+
vErrors.push(err5);
|
|
17656
|
+
}
|
|
17657
|
+
errors++;
|
|
17658
|
+
}
|
|
17659
|
+
validate273.errors = vErrors;
|
|
17660
|
+
return errors === 0;
|
|
17661
|
+
}
|
|
17662
|
+
validate273.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17663
|
+
function validate276(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17664
|
+
let vErrors = null;
|
|
17665
|
+
let errors = 0;
|
|
17666
|
+
const evaluated0 = validate276.evaluated;
|
|
17667
|
+
if (evaluated0.dynamicProps) {
|
|
17668
|
+
evaluated0.props = void 0;
|
|
17669
|
+
}
|
|
17670
|
+
if (evaluated0.dynamicItems) {
|
|
17671
|
+
evaluated0.items = void 0;
|
|
17672
|
+
}
|
|
17673
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17674
|
+
if (data.type === void 0) {
|
|
17675
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17676
|
+
if (vErrors === null) {
|
|
17677
|
+
vErrors = [err0];
|
|
17678
|
+
} else {
|
|
17679
|
+
vErrors.push(err0);
|
|
17680
|
+
}
|
|
17681
|
+
errors++;
|
|
17682
|
+
}
|
|
17683
|
+
if (data.element === void 0) {
|
|
17684
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "element" }, message: "must have required property 'element'" };
|
|
17685
|
+
if (vErrors === null) {
|
|
17686
|
+
vErrors = [err1];
|
|
17687
|
+
} else {
|
|
17688
|
+
vErrors.push(err1);
|
|
17689
|
+
}
|
|
17690
|
+
errors++;
|
|
17691
|
+
}
|
|
17692
|
+
for (const key0 in data) {
|
|
17693
|
+
if (!(key0 === "type" || key0 === "element" || key0 === "fallback")) {
|
|
17694
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17695
|
+
if (vErrors === null) {
|
|
17696
|
+
vErrors = [err2];
|
|
17697
|
+
} else {
|
|
17698
|
+
vErrors.push(err2);
|
|
17699
|
+
}
|
|
17700
|
+
errors++;
|
|
17701
|
+
}
|
|
17702
|
+
}
|
|
17703
|
+
if (data.type !== void 0) {
|
|
17704
|
+
if ("action_cell" !== data.type) {
|
|
17705
|
+
const err3 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/const", keyword: "const", params: { allowedValue: "action_cell" }, message: "must be equal to constant" };
|
|
17706
|
+
if (vErrors === null) {
|
|
17707
|
+
vErrors = [err3];
|
|
17708
|
+
} else {
|
|
17709
|
+
vErrors.push(err3);
|
|
17710
|
+
}
|
|
17711
|
+
errors++;
|
|
17712
|
+
}
|
|
17713
|
+
}
|
|
17714
|
+
if (data.element !== void 0) {
|
|
17715
|
+
if (!validate25(data.element, { instancePath: instancePath + "/element", parentData: data, parentDataProperty: "element", rootData, dynamicAnchors })) {
|
|
17716
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
17717
|
+
errors = vErrors.length;
|
|
17718
|
+
}
|
|
17719
|
+
}
|
|
17720
|
+
if (data.fallback !== void 0) {
|
|
17721
|
+
let data2 = data.fallback;
|
|
17722
|
+
const _errs5 = errors;
|
|
17723
|
+
let valid1 = false;
|
|
17724
|
+
let passing0 = null;
|
|
17725
|
+
const _errs6 = errors;
|
|
17726
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
17727
|
+
if (data2.type === void 0) {
|
|
17728
|
+
const err4 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_text_cell/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17729
|
+
if (vErrors === null) {
|
|
17730
|
+
vErrors = [err4];
|
|
17731
|
+
} else {
|
|
17732
|
+
vErrors.push(err4);
|
|
17733
|
+
}
|
|
17734
|
+
errors++;
|
|
17735
|
+
}
|
|
17736
|
+
if (data2.text === void 0) {
|
|
17737
|
+
const err5 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_text_cell/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
17738
|
+
if (vErrors === null) {
|
|
17739
|
+
vErrors = [err5];
|
|
17740
|
+
} else {
|
|
17741
|
+
vErrors.push(err5);
|
|
17742
|
+
}
|
|
17743
|
+
errors++;
|
|
17744
|
+
}
|
|
17745
|
+
for (const key1 in data2) {
|
|
17746
|
+
if (!(key1 === "type" || key1 === "text")) {
|
|
17747
|
+
const err6 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_text_cell/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
17748
|
+
if (vErrors === null) {
|
|
17749
|
+
vErrors = [err6];
|
|
17750
|
+
} else {
|
|
17751
|
+
vErrors.push(err6);
|
|
17752
|
+
}
|
|
17753
|
+
errors++;
|
|
17754
|
+
}
|
|
17755
|
+
}
|
|
17756
|
+
if (data2.type !== void 0) {
|
|
17757
|
+
if ("raw_text" !== data2.type) {
|
|
17758
|
+
const err7 = { instancePath: instancePath + "/fallback/type", schemaPath: "#/$defs/data_table_raw_text_cell/properties/type/const", keyword: "const", params: { allowedValue: "raw_text" }, message: "must be equal to constant" };
|
|
17759
|
+
if (vErrors === null) {
|
|
17760
|
+
vErrors = [err7];
|
|
17761
|
+
} else {
|
|
17762
|
+
vErrors.push(err7);
|
|
17763
|
+
}
|
|
17764
|
+
errors++;
|
|
17765
|
+
}
|
|
17766
|
+
}
|
|
17767
|
+
if (data2.text !== void 0) {
|
|
17768
|
+
let data4 = data2.text;
|
|
17769
|
+
if (typeof data4 === "string") {
|
|
17770
|
+
if (func1(data4) < 1) {
|
|
17771
|
+
const err8 = { instancePath: instancePath + "/fallback/text", schemaPath: "#/$defs/data_table_raw_text_cell/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17772
|
+
if (vErrors === null) {
|
|
17773
|
+
vErrors = [err8];
|
|
17774
|
+
} else {
|
|
17775
|
+
vErrors.push(err8);
|
|
17776
|
+
}
|
|
17777
|
+
errors++;
|
|
17778
|
+
}
|
|
17779
|
+
} else {
|
|
17780
|
+
const err9 = { instancePath: instancePath + "/fallback/text", schemaPath: "#/$defs/data_table_raw_text_cell/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17781
|
+
if (vErrors === null) {
|
|
17782
|
+
vErrors = [err9];
|
|
17783
|
+
} else {
|
|
17784
|
+
vErrors.push(err9);
|
|
17785
|
+
}
|
|
17786
|
+
errors++;
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
} else {
|
|
17790
|
+
const err10 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_text_cell/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17791
|
+
if (vErrors === null) {
|
|
17792
|
+
vErrors = [err10];
|
|
17793
|
+
} else {
|
|
17794
|
+
vErrors.push(err10);
|
|
17795
|
+
}
|
|
17796
|
+
errors++;
|
|
17797
|
+
}
|
|
17798
|
+
var _valid0 = _errs6 === errors;
|
|
17799
|
+
if (_valid0) {
|
|
17800
|
+
valid1 = true;
|
|
17801
|
+
passing0 = 0;
|
|
17802
|
+
var props0 = true;
|
|
17803
|
+
}
|
|
17804
|
+
const _errs13 = errors;
|
|
17805
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
17806
|
+
if (data2.type === void 0) {
|
|
17807
|
+
const err11 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_number_cell/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17808
|
+
if (vErrors === null) {
|
|
17809
|
+
vErrors = [err11];
|
|
17810
|
+
} else {
|
|
17811
|
+
vErrors.push(err11);
|
|
17812
|
+
}
|
|
17813
|
+
errors++;
|
|
17814
|
+
}
|
|
17815
|
+
if (data2.value === void 0) {
|
|
17816
|
+
const err12 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_number_cell/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
17817
|
+
if (vErrors === null) {
|
|
17818
|
+
vErrors = [err12];
|
|
17819
|
+
} else {
|
|
17820
|
+
vErrors.push(err12);
|
|
17821
|
+
}
|
|
17822
|
+
errors++;
|
|
17823
|
+
}
|
|
17824
|
+
for (const key2 in data2) {
|
|
17825
|
+
if (!(key2 === "type" || key2 === "value" || key2 === "text")) {
|
|
17826
|
+
const err13 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_number_cell/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
17827
|
+
if (vErrors === null) {
|
|
17828
|
+
vErrors = [err13];
|
|
17829
|
+
} else {
|
|
17830
|
+
vErrors.push(err13);
|
|
17831
|
+
}
|
|
17832
|
+
errors++;
|
|
17833
|
+
}
|
|
17834
|
+
}
|
|
17835
|
+
if (data2.type !== void 0) {
|
|
17836
|
+
if ("raw_number" !== data2.type) {
|
|
17837
|
+
const err14 = { instancePath: instancePath + "/fallback/type", schemaPath: "#/$defs/data_table_raw_number_cell/properties/type/const", keyword: "const", params: { allowedValue: "raw_number" }, message: "must be equal to constant" };
|
|
17838
|
+
if (vErrors === null) {
|
|
17839
|
+
vErrors = [err14];
|
|
17840
|
+
} else {
|
|
17841
|
+
vErrors.push(err14);
|
|
17842
|
+
}
|
|
17843
|
+
errors++;
|
|
17844
|
+
}
|
|
17845
|
+
}
|
|
17846
|
+
if (data2.value !== void 0) {
|
|
17847
|
+
if (!(typeof data2.value == "number")) {
|
|
17848
|
+
const err15 = { instancePath: instancePath + "/fallback/value", schemaPath: "#/$defs/data_table_raw_number_cell/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
17849
|
+
if (vErrors === null) {
|
|
17850
|
+
vErrors = [err15];
|
|
17851
|
+
} else {
|
|
17852
|
+
vErrors.push(err15);
|
|
17853
|
+
}
|
|
17854
|
+
errors++;
|
|
17855
|
+
}
|
|
17856
|
+
}
|
|
17857
|
+
if (data2.text !== void 0) {
|
|
17858
|
+
let data7 = data2.text;
|
|
17859
|
+
if (typeof data7 === "string") {
|
|
17860
|
+
if (func1(data7) < 1) {
|
|
17861
|
+
const err16 = { instancePath: instancePath + "/fallback/text", schemaPath: "#/$defs/data_table_raw_number_cell/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17862
|
+
if (vErrors === null) {
|
|
17863
|
+
vErrors = [err16];
|
|
17864
|
+
} else {
|
|
17865
|
+
vErrors.push(err16);
|
|
17866
|
+
}
|
|
17867
|
+
errors++;
|
|
17868
|
+
}
|
|
17869
|
+
} else {
|
|
17870
|
+
const err17 = { instancePath: instancePath + "/fallback/text", schemaPath: "#/$defs/data_table_raw_number_cell/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17871
|
+
if (vErrors === null) {
|
|
17872
|
+
vErrors = [err17];
|
|
17873
|
+
} else {
|
|
17874
|
+
vErrors.push(err17);
|
|
17875
|
+
}
|
|
17876
|
+
errors++;
|
|
17877
|
+
}
|
|
17878
|
+
}
|
|
17879
|
+
} else {
|
|
17880
|
+
const err18 = { instancePath: instancePath + "/fallback", schemaPath: "#/$defs/data_table_raw_number_cell/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17881
|
+
if (vErrors === null) {
|
|
17882
|
+
vErrors = [err18];
|
|
17883
|
+
} else {
|
|
17884
|
+
vErrors.push(err18);
|
|
17885
|
+
}
|
|
17886
|
+
errors++;
|
|
17887
|
+
}
|
|
17888
|
+
var _valid0 = _errs13 === errors;
|
|
17889
|
+
if (_valid0 && valid1) {
|
|
17890
|
+
valid1 = false;
|
|
17891
|
+
passing0 = [passing0, 1];
|
|
17892
|
+
} else {
|
|
17893
|
+
if (_valid0) {
|
|
17894
|
+
valid1 = true;
|
|
17895
|
+
passing0 = 1;
|
|
17896
|
+
if (props0 !== true) {
|
|
17897
|
+
props0 = true;
|
|
17898
|
+
}
|
|
17899
|
+
}
|
|
17900
|
+
}
|
|
17901
|
+
if (!valid1) {
|
|
17902
|
+
const err19 = { instancePath: instancePath + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
17903
|
+
if (vErrors === null) {
|
|
17904
|
+
vErrors = [err19];
|
|
17905
|
+
} else {
|
|
17906
|
+
vErrors.push(err19);
|
|
17907
|
+
}
|
|
17908
|
+
errors++;
|
|
17909
|
+
} else {
|
|
17910
|
+
errors = _errs5;
|
|
17911
|
+
if (vErrors !== null) {
|
|
17912
|
+
if (_errs5) {
|
|
17913
|
+
vErrors.length = _errs5;
|
|
17914
|
+
} else {
|
|
17915
|
+
vErrors = null;
|
|
17916
|
+
}
|
|
17917
|
+
}
|
|
17918
|
+
}
|
|
17919
|
+
}
|
|
17920
|
+
} else {
|
|
17921
|
+
const err20 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17922
|
+
if (vErrors === null) {
|
|
17923
|
+
vErrors = [err20];
|
|
17924
|
+
} else {
|
|
17925
|
+
vErrors.push(err20);
|
|
17926
|
+
}
|
|
17927
|
+
errors++;
|
|
17928
|
+
}
|
|
17929
|
+
validate276.errors = vErrors;
|
|
17930
|
+
return errors === 0;
|
|
17931
|
+
}
|
|
17932
|
+
validate276.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17579
17933
|
function validate272(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17580
17934
|
let vErrors = null;
|
|
17581
17935
|
let errors = 0;
|
|
@@ -17592,7 +17946,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17592
17946
|
const _errs1 = errors;
|
|
17593
17947
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17594
17948
|
if (data.type === void 0) {
|
|
17595
|
-
const err0 = { instancePath, schemaPath: "
|
|
17949
|
+
const err0 = { instancePath, schemaPath: "#/$defs/data_table_raw_text_cell/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17596
17950
|
if (vErrors === null) {
|
|
17597
17951
|
vErrors = [err0];
|
|
17598
17952
|
} else {
|
|
@@ -17601,7 +17955,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17601
17955
|
errors++;
|
|
17602
17956
|
}
|
|
17603
17957
|
if (data.text === void 0) {
|
|
17604
|
-
const err1 = { instancePath, schemaPath: "
|
|
17958
|
+
const err1 = { instancePath, schemaPath: "#/$defs/data_table_raw_text_cell/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
17605
17959
|
if (vErrors === null) {
|
|
17606
17960
|
vErrors = [err1];
|
|
17607
17961
|
} else {
|
|
@@ -17611,7 +17965,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17611
17965
|
}
|
|
17612
17966
|
for (const key0 in data) {
|
|
17613
17967
|
if (!(key0 === "type" || key0 === "text")) {
|
|
17614
|
-
const err2 = { instancePath, schemaPath: "
|
|
17968
|
+
const err2 = { instancePath, schemaPath: "#/$defs/data_table_raw_text_cell/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17615
17969
|
if (vErrors === null) {
|
|
17616
17970
|
vErrors = [err2];
|
|
17617
17971
|
} else {
|
|
@@ -17622,7 +17976,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17622
17976
|
}
|
|
17623
17977
|
if (data.type !== void 0) {
|
|
17624
17978
|
if ("raw_text" !== data.type) {
|
|
17625
|
-
const err3 = { instancePath: instancePath + "/type", schemaPath: "
|
|
17979
|
+
const err3 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/data_table_raw_text_cell/properties/type/const", keyword: "const", params: { allowedValue: "raw_text" }, message: "must be equal to constant" };
|
|
17626
17980
|
if (vErrors === null) {
|
|
17627
17981
|
vErrors = [err3];
|
|
17628
17982
|
} else {
|
|
@@ -17635,7 +17989,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17635
17989
|
let data1 = data.text;
|
|
17636
17990
|
if (typeof data1 === "string") {
|
|
17637
17991
|
if (func1(data1) < 1) {
|
|
17638
|
-
const err4 = { instancePath: instancePath + "/text", schemaPath: "
|
|
17992
|
+
const err4 = { instancePath: instancePath + "/text", schemaPath: "#/$defs/data_table_raw_text_cell/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17639
17993
|
if (vErrors === null) {
|
|
17640
17994
|
vErrors = [err4];
|
|
17641
17995
|
} else {
|
|
@@ -17644,7 +17998,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17644
17998
|
errors++;
|
|
17645
17999
|
}
|
|
17646
18000
|
} else {
|
|
17647
|
-
const err5 = { instancePath: instancePath + "/text", schemaPath: "
|
|
18001
|
+
const err5 = { instancePath: instancePath + "/text", schemaPath: "#/$defs/data_table_raw_text_cell/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17648
18002
|
if (vErrors === null) {
|
|
17649
18003
|
vErrors = [err5];
|
|
17650
18004
|
} else {
|
|
@@ -17654,7 +18008,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17654
18008
|
}
|
|
17655
18009
|
}
|
|
17656
18010
|
} else {
|
|
17657
|
-
const err6 = { instancePath, schemaPath: "
|
|
18011
|
+
const err6 = { instancePath, schemaPath: "#/$defs/data_table_raw_text_cell/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17658
18012
|
if (vErrors === null) {
|
|
17659
18013
|
vErrors = [err6];
|
|
17660
18014
|
} else {
|
|
@@ -17668,10 +18022,10 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17668
18022
|
passing0 = 0;
|
|
17669
18023
|
var props0 = true;
|
|
17670
18024
|
}
|
|
17671
|
-
const
|
|
18025
|
+
const _errs8 = errors;
|
|
17672
18026
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17673
18027
|
if (data.type === void 0) {
|
|
17674
|
-
const err7 = { instancePath, schemaPath: "
|
|
18028
|
+
const err7 = { instancePath, schemaPath: "#/$defs/data_table_raw_number_cell/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
17675
18029
|
if (vErrors === null) {
|
|
17676
18030
|
vErrors = [err7];
|
|
17677
18031
|
} else {
|
|
@@ -17680,7 +18034,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17680
18034
|
errors++;
|
|
17681
18035
|
}
|
|
17682
18036
|
if (data.value === void 0) {
|
|
17683
|
-
const err8 = { instancePath, schemaPath: "
|
|
18037
|
+
const err8 = { instancePath, schemaPath: "#/$defs/data_table_raw_number_cell/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
17684
18038
|
if (vErrors === null) {
|
|
17685
18039
|
vErrors = [err8];
|
|
17686
18040
|
} else {
|
|
@@ -17690,7 +18044,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17690
18044
|
}
|
|
17691
18045
|
for (const key1 in data) {
|
|
17692
18046
|
if (!(key1 === "type" || key1 === "value" || key1 === "text")) {
|
|
17693
|
-
const err9 = { instancePath, schemaPath: "
|
|
18047
|
+
const err9 = { instancePath, schemaPath: "#/$defs/data_table_raw_number_cell/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
17694
18048
|
if (vErrors === null) {
|
|
17695
18049
|
vErrors = [err9];
|
|
17696
18050
|
} else {
|
|
@@ -17701,7 +18055,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17701
18055
|
}
|
|
17702
18056
|
if (data.type !== void 0) {
|
|
17703
18057
|
if ("raw_number" !== data.type) {
|
|
17704
|
-
const err10 = { instancePath: instancePath + "/type", schemaPath: "
|
|
18058
|
+
const err10 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/data_table_raw_number_cell/properties/type/const", keyword: "const", params: { allowedValue: "raw_number" }, message: "must be equal to constant" };
|
|
17705
18059
|
if (vErrors === null) {
|
|
17706
18060
|
vErrors = [err10];
|
|
17707
18061
|
} else {
|
|
@@ -17712,7 +18066,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17712
18066
|
}
|
|
17713
18067
|
if (data.value !== void 0) {
|
|
17714
18068
|
if (!(typeof data.value == "number")) {
|
|
17715
|
-
const err11 = { instancePath: instancePath + "/value", schemaPath: "
|
|
18069
|
+
const err11 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/data_table_raw_number_cell/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
17716
18070
|
if (vErrors === null) {
|
|
17717
18071
|
vErrors = [err11];
|
|
17718
18072
|
} else {
|
|
@@ -17725,7 +18079,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17725
18079
|
let data4 = data.text;
|
|
17726
18080
|
if (typeof data4 === "string") {
|
|
17727
18081
|
if (func1(data4) < 1) {
|
|
17728
|
-
const err12 = { instancePath: instancePath + "/text", schemaPath: "
|
|
18082
|
+
const err12 = { instancePath: instancePath + "/text", schemaPath: "#/$defs/data_table_raw_number_cell/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
17729
18083
|
if (vErrors === null) {
|
|
17730
18084
|
vErrors = [err12];
|
|
17731
18085
|
} else {
|
|
@@ -17734,7 +18088,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17734
18088
|
errors++;
|
|
17735
18089
|
}
|
|
17736
18090
|
} else {
|
|
17737
|
-
const err13 = { instancePath: instancePath + "/text", schemaPath: "
|
|
18091
|
+
const err13 = { instancePath: instancePath + "/text", schemaPath: "#/$defs/data_table_raw_number_cell/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
17738
18092
|
if (vErrors === null) {
|
|
17739
18093
|
vErrors = [err13];
|
|
17740
18094
|
} else {
|
|
@@ -17744,7 +18098,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17744
18098
|
}
|
|
17745
18099
|
}
|
|
17746
18100
|
} else {
|
|
17747
|
-
const err14 = { instancePath, schemaPath: "
|
|
18101
|
+
const err14 = { instancePath, schemaPath: "#/$defs/data_table_raw_number_cell/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17748
18102
|
if (vErrors === null) {
|
|
17749
18103
|
vErrors = [err14];
|
|
17750
18104
|
} else {
|
|
@@ -17752,7 +18106,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17752
18106
|
}
|
|
17753
18107
|
errors++;
|
|
17754
18108
|
}
|
|
17755
|
-
var _valid0 =
|
|
18109
|
+
var _valid0 = _errs8 === errors;
|
|
17756
18110
|
if (_valid0 && valid0) {
|
|
17757
18111
|
valid0 = false;
|
|
17758
18112
|
passing0 = [passing0, 1];
|
|
@@ -17764,78 +18118,12 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17764
18118
|
props0 = true;
|
|
17765
18119
|
}
|
|
17766
18120
|
}
|
|
17767
|
-
const
|
|
17768
|
-
if (data
|
|
17769
|
-
|
|
17770
|
-
|
|
17771
|
-
if (vErrors === null) {
|
|
17772
|
-
vErrors = [err15];
|
|
17773
|
-
} else {
|
|
17774
|
-
vErrors.push(err15);
|
|
17775
|
-
}
|
|
17776
|
-
errors++;
|
|
17777
|
-
}
|
|
17778
|
-
if (data.elements === void 0) {
|
|
17779
|
-
const err16 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "elements" }, message: "must have required property 'elements'" };
|
|
17780
|
-
if (vErrors === null) {
|
|
17781
|
-
vErrors = [err16];
|
|
17782
|
-
} else {
|
|
17783
|
-
vErrors.push(err16);
|
|
17784
|
-
}
|
|
17785
|
-
errors++;
|
|
17786
|
-
}
|
|
17787
|
-
for (const key2 in data) {
|
|
17788
|
-
if (!(key2 === "type" || key2 === "elements")) {
|
|
17789
|
-
const err17 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
17790
|
-
if (vErrors === null) {
|
|
17791
|
-
vErrors = [err17];
|
|
17792
|
-
} else {
|
|
17793
|
-
vErrors.push(err17);
|
|
17794
|
-
}
|
|
17795
|
-
errors++;
|
|
17796
|
-
}
|
|
17797
|
-
}
|
|
17798
|
-
if (data.type !== void 0) {
|
|
17799
|
-
if ("rich_text" !== data.type) {
|
|
17800
|
-
const err18 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "rich_text" }, message: "must be equal to constant" };
|
|
17801
|
-
if (vErrors === null) {
|
|
17802
|
-
vErrors = [err18];
|
|
17803
|
-
} else {
|
|
17804
|
-
vErrors.push(err18);
|
|
17805
|
-
}
|
|
17806
|
-
errors++;
|
|
17807
|
-
}
|
|
17808
|
-
}
|
|
17809
|
-
if (data.elements !== void 0) {
|
|
17810
|
-
let data6 = data.elements;
|
|
17811
|
-
if (Array.isArray(data6)) {
|
|
17812
|
-
const len0 = data6.length;
|
|
17813
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
17814
|
-
if (!validate133(data6[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
17815
|
-
vErrors = vErrors === null ? validate133.errors : vErrors.concat(validate133.errors);
|
|
17816
|
-
errors = vErrors.length;
|
|
17817
|
-
}
|
|
17818
|
-
}
|
|
17819
|
-
} else {
|
|
17820
|
-
const err19 = { instancePath: instancePath + "/elements", schemaPath: "#/oneOf/2/properties/elements/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
17821
|
-
if (vErrors === null) {
|
|
17822
|
-
vErrors = [err19];
|
|
17823
|
-
} else {
|
|
17824
|
-
vErrors.push(err19);
|
|
17825
|
-
}
|
|
17826
|
-
errors++;
|
|
17827
|
-
}
|
|
17828
|
-
}
|
|
17829
|
-
} else {
|
|
17830
|
-
const err20 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
17831
|
-
if (vErrors === null) {
|
|
17832
|
-
vErrors = [err20];
|
|
17833
|
-
} else {
|
|
17834
|
-
vErrors.push(err20);
|
|
17835
|
-
}
|
|
17836
|
-
errors++;
|
|
18121
|
+
const _errs17 = errors;
|
|
18122
|
+
if (!validate273(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18123
|
+
vErrors = vErrors === null ? validate273.errors : vErrors.concat(validate273.errors);
|
|
18124
|
+
errors = vErrors.length;
|
|
17837
18125
|
}
|
|
17838
|
-
var _valid0 =
|
|
18126
|
+
var _valid0 = _errs17 === errors;
|
|
17839
18127
|
if (_valid0 && valid0) {
|
|
17840
18128
|
valid0 = false;
|
|
17841
18129
|
passing0 = [passing0, 2];
|
|
@@ -17847,14 +18135,32 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17847
18135
|
props0 = true;
|
|
17848
18136
|
}
|
|
17849
18137
|
}
|
|
18138
|
+
const _errs18 = errors;
|
|
18139
|
+
if (!validate276(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18140
|
+
vErrors = vErrors === null ? validate276.errors : vErrors.concat(validate276.errors);
|
|
18141
|
+
errors = vErrors.length;
|
|
18142
|
+
}
|
|
18143
|
+
var _valid0 = _errs18 === errors;
|
|
18144
|
+
if (_valid0 && valid0) {
|
|
18145
|
+
valid0 = false;
|
|
18146
|
+
passing0 = [passing0, 3];
|
|
18147
|
+
} else {
|
|
18148
|
+
if (_valid0) {
|
|
18149
|
+
valid0 = true;
|
|
18150
|
+
passing0 = 3;
|
|
18151
|
+
if (props0 !== true) {
|
|
18152
|
+
props0 = true;
|
|
18153
|
+
}
|
|
18154
|
+
}
|
|
18155
|
+
}
|
|
17850
18156
|
}
|
|
17851
18157
|
}
|
|
17852
18158
|
if (!valid0) {
|
|
17853
|
-
const
|
|
18159
|
+
const err15 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
17854
18160
|
if (vErrors === null) {
|
|
17855
|
-
vErrors = [
|
|
18161
|
+
vErrors = [err15];
|
|
17856
18162
|
} else {
|
|
17857
|
-
vErrors.push(
|
|
18163
|
+
vErrors.push(err15);
|
|
17858
18164
|
}
|
|
17859
18165
|
errors++;
|
|
17860
18166
|
} else {
|
|
@@ -18052,8 +18358,8 @@ function validate271(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18052
18358
|
if (data.rows !== void 0) {
|
|
18053
18359
|
let data5 = data.rows;
|
|
18054
18360
|
if (Array.isArray(data5)) {
|
|
18055
|
-
if (data5.length >
|
|
18056
|
-
const err16 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/maxItems", keyword: "maxItems", params: { limit:
|
|
18361
|
+
if (data5.length > 201) {
|
|
18362
|
+
const err16 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/maxItems", keyword: "maxItems", params: { limit: 201 }, message: "must NOT have more than 201 items" };
|
|
18057
18363
|
if (vErrors === null) {
|
|
18058
18364
|
vErrors = [err16];
|
|
18059
18365
|
} else {
|
|
@@ -18132,11 +18438,11 @@ function validate271(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18132
18438
|
return errors === 0;
|
|
18133
18439
|
}
|
|
18134
18440
|
validate271.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18135
|
-
var
|
|
18136
|
-
function
|
|
18441
|
+
var schema209 = { "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" } } } }] };
|
|
18442
|
+
function validate283(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18137
18443
|
let vErrors = null;
|
|
18138
18444
|
let errors = 0;
|
|
18139
|
-
const evaluated0 =
|
|
18445
|
+
const evaluated0 = validate283.evaluated;
|
|
18140
18446
|
if (evaluated0.dynamicProps) {
|
|
18141
18447
|
evaluated0.props = void 0;
|
|
18142
18448
|
}
|
|
@@ -18329,14 +18635,14 @@ function validate278(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18329
18635
|
}
|
|
18330
18636
|
errors++;
|
|
18331
18637
|
}
|
|
18332
|
-
|
|
18638
|
+
validate283.errors = vErrors;
|
|
18333
18639
|
return errors === 0;
|
|
18334
18640
|
}
|
|
18335
|
-
|
|
18336
|
-
function
|
|
18641
|
+
validate283.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18642
|
+
function validate282(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18337
18643
|
let vErrors = null;
|
|
18338
18644
|
let errors = 0;
|
|
18339
|
-
const evaluated0 =
|
|
18645
|
+
const evaluated0 = validate282.evaluated;
|
|
18340
18646
|
if (evaluated0.dynamicProps) {
|
|
18341
18647
|
evaluated0.props = void 0;
|
|
18342
18648
|
}
|
|
@@ -18389,7 +18695,7 @@ function validate277(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18389
18695
|
if (data.type !== void 0) {
|
|
18390
18696
|
let data0 = data.type;
|
|
18391
18697
|
if (!(data0 === "line" || data0 === "bar" || data0 === "area")) {
|
|
18392
|
-
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
18698
|
+
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/enum", keyword: "enum", params: { allowedValues: schema209.oneOf[0].properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
18393
18699
|
if (vErrors === null) {
|
|
18394
18700
|
vErrors = [err4];
|
|
18395
18701
|
} else {
|
|
@@ -18421,8 +18727,8 @@ function validate277(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18421
18727
|
}
|
|
18422
18728
|
const len0 = data1.length;
|
|
18423
18729
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
18424
|
-
if (!
|
|
18425
|
-
vErrors = vErrors === null ?
|
|
18730
|
+
if (!validate283(data1[i0], { instancePath: instancePath + "/series/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
18731
|
+
vErrors = vErrors === null ? validate283.errors : vErrors.concat(validate283.errors);
|
|
18426
18732
|
errors = vErrors.length;
|
|
18427
18733
|
}
|
|
18428
18734
|
}
|
|
@@ -18791,15 +19097,15 @@ function validate277(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18791
19097
|
}
|
|
18792
19098
|
}
|
|
18793
19099
|
}
|
|
18794
|
-
|
|
19100
|
+
validate282.errors = vErrors;
|
|
18795
19101
|
evaluated0.props = props0;
|
|
18796
19102
|
return errors === 0;
|
|
18797
19103
|
}
|
|
18798
|
-
|
|
18799
|
-
function
|
|
19104
|
+
validate282.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19105
|
+
function validate281(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18800
19106
|
let vErrors = null;
|
|
18801
19107
|
let errors = 0;
|
|
18802
|
-
const evaluated0 =
|
|
19108
|
+
const evaluated0 = validate281.evaluated;
|
|
18803
19109
|
if (evaluated0.dynamicProps) {
|
|
18804
19110
|
evaluated0.props = void 0;
|
|
18805
19111
|
}
|
|
@@ -18919,8 +19225,8 @@ function validate276(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18919
19225
|
}
|
|
18920
19226
|
}
|
|
18921
19227
|
if (data.chart !== void 0) {
|
|
18922
|
-
if (!
|
|
18923
|
-
vErrors = vErrors === null ?
|
|
19228
|
+
if (!validate282(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors })) {
|
|
19229
|
+
vErrors = vErrors === null ? validate282.errors : vErrors.concat(validate282.errors);
|
|
18924
19230
|
errors = vErrors.length;
|
|
18925
19231
|
}
|
|
18926
19232
|
}
|
|
@@ -18933,14 +19239,14 @@ function validate276(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18933
19239
|
}
|
|
18934
19240
|
errors++;
|
|
18935
19241
|
}
|
|
18936
|
-
|
|
19242
|
+
validate281.errors = vErrors;
|
|
18937
19243
|
return errors === 0;
|
|
18938
19244
|
}
|
|
18939
|
-
|
|
18940
|
-
function
|
|
19245
|
+
validate281.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19246
|
+
function validate292(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18941
19247
|
let vErrors = null;
|
|
18942
19248
|
let errors = 0;
|
|
18943
|
-
const evaluated0 =
|
|
19249
|
+
const evaluated0 = validate292.evaluated;
|
|
18944
19250
|
if (evaluated0.dynamicProps) {
|
|
18945
19251
|
evaluated0.props = void 0;
|
|
18946
19252
|
}
|
|
@@ -19059,15 +19365,15 @@ function validate287(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19059
19365
|
}
|
|
19060
19366
|
errors++;
|
|
19061
19367
|
}
|
|
19062
|
-
|
|
19368
|
+
validate292.errors = vErrors;
|
|
19063
19369
|
return errors === 0;
|
|
19064
19370
|
}
|
|
19065
|
-
|
|
19066
|
-
var
|
|
19067
|
-
function
|
|
19371
|
+
validate292.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19372
|
+
var schema219 = { "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" } } };
|
|
19373
|
+
function validate295(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19068
19374
|
let vErrors = null;
|
|
19069
19375
|
let errors = 0;
|
|
19070
|
-
const evaluated0 =
|
|
19376
|
+
const evaluated0 = validate295.evaluated;
|
|
19071
19377
|
if (evaluated0.dynamicProps) {
|
|
19072
19378
|
evaluated0.props = void 0;
|
|
19073
19379
|
}
|
|
@@ -19294,7 +19600,7 @@ function validate290(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19294
19600
|
if (data.status !== void 0) {
|
|
19295
19601
|
let data10 = data.status;
|
|
19296
19602
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
19297
|
-
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
19603
|
+
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema219.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
19298
19604
|
if (vErrors === null) {
|
|
19299
19605
|
vErrors = [err19];
|
|
19300
19606
|
} else {
|
|
@@ -19343,14 +19649,14 @@ function validate290(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19343
19649
|
}
|
|
19344
19650
|
errors++;
|
|
19345
19651
|
}
|
|
19346
|
-
|
|
19652
|
+
validate295.errors = vErrors;
|
|
19347
19653
|
return errors === 0;
|
|
19348
19654
|
}
|
|
19349
|
-
|
|
19350
|
-
function
|
|
19655
|
+
validate295.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19656
|
+
function validate294(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19351
19657
|
let vErrors = null;
|
|
19352
19658
|
let errors = 0;
|
|
19353
|
-
const evaluated0 =
|
|
19659
|
+
const evaluated0 = validate294.evaluated;
|
|
19354
19660
|
if (evaluated0.dynamicProps) {
|
|
19355
19661
|
evaluated0.props = void 0;
|
|
19356
19662
|
}
|
|
@@ -19586,8 +19892,8 @@ function validate289(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19586
19892
|
if (Array.isArray(data6)) {
|
|
19587
19893
|
const len0 = data6.length;
|
|
19588
19894
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
19589
|
-
if (!
|
|
19590
|
-
vErrors = vErrors === null ?
|
|
19895
|
+
if (!validate295(data6[i0], { instancePath: instancePath + "/tasks/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
19896
|
+
vErrors = vErrors === null ? validate295.errors : vErrors.concat(validate295.errors);
|
|
19591
19897
|
errors = vErrors.length;
|
|
19592
19898
|
}
|
|
19593
19899
|
}
|
|
@@ -19610,15 +19916,15 @@ function validate289(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19610
19916
|
}
|
|
19611
19917
|
errors++;
|
|
19612
19918
|
}
|
|
19613
|
-
|
|
19919
|
+
validate294.errors = vErrors;
|
|
19614
19920
|
return errors === 0;
|
|
19615
19921
|
}
|
|
19616
|
-
|
|
19617
|
-
var
|
|
19618
|
-
function
|
|
19922
|
+
validate294.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19923
|
+
var schema222 = { "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" } } };
|
|
19924
|
+
function validate303(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19619
19925
|
let vErrors = null;
|
|
19620
19926
|
let errors = 0;
|
|
19621
|
-
const evaluated0 =
|
|
19927
|
+
const evaluated0 = validate303.evaluated;
|
|
19622
19928
|
if (evaluated0.dynamicProps) {
|
|
19623
19929
|
evaluated0.props = void 0;
|
|
19624
19930
|
}
|
|
@@ -19854,7 +20160,7 @@ function validate298(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19854
20160
|
if (data.status !== void 0) {
|
|
19855
20161
|
let data10 = data.status;
|
|
19856
20162
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
19857
|
-
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
20163
|
+
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema222.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
19858
20164
|
if (vErrors === null) {
|
|
19859
20165
|
vErrors = [err20];
|
|
19860
20166
|
} else {
|
|
@@ -19903,10 +20209,10 @@ function validate298(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19903
20209
|
}
|
|
19904
20210
|
errors++;
|
|
19905
20211
|
}
|
|
19906
|
-
|
|
20212
|
+
validate303.errors = vErrors;
|
|
19907
20213
|
return errors === 0;
|
|
19908
20214
|
}
|
|
19909
|
-
|
|
20215
|
+
validate303.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19910
20216
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19911
20217
|
let vErrors = null;
|
|
19912
20218
|
let errors = 0;
|
|
@@ -20051,8 +20357,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20051
20357
|
}
|
|
20052
20358
|
}
|
|
20053
20359
|
const _errs9 = errors;
|
|
20054
|
-
if (!
|
|
20055
|
-
vErrors = vErrors === null ?
|
|
20360
|
+
if (!validate281(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20361
|
+
vErrors = vErrors === null ? validate281.errors : vErrors.concat(validate281.errors);
|
|
20056
20362
|
errors = vErrors.length;
|
|
20057
20363
|
}
|
|
20058
20364
|
var _valid0 = _errs9 === errors;
|
|
@@ -20153,8 +20459,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20153
20459
|
}
|
|
20154
20460
|
}
|
|
20155
20461
|
const _errs15 = errors;
|
|
20156
|
-
if (!
|
|
20157
|
-
vErrors = vErrors === null ?
|
|
20462
|
+
if (!validate292(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20463
|
+
vErrors = vErrors === null ? validate292.errors : vErrors.concat(validate292.errors);
|
|
20158
20464
|
errors = vErrors.length;
|
|
20159
20465
|
}
|
|
20160
20466
|
var _valid0 = _errs15 === errors;
|
|
@@ -20170,8 +20476,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20170
20476
|
}
|
|
20171
20477
|
}
|
|
20172
20478
|
const _errs16 = errors;
|
|
20173
|
-
if (!
|
|
20174
|
-
vErrors = vErrors === null ?
|
|
20479
|
+
if (!validate294(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20480
|
+
vErrors = vErrors === null ? validate294.errors : vErrors.concat(validate294.errors);
|
|
20175
20481
|
errors = vErrors.length;
|
|
20176
20482
|
}
|
|
20177
20483
|
var _valid0 = _errs16 === errors;
|
|
@@ -20238,8 +20544,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20238
20544
|
}
|
|
20239
20545
|
}
|
|
20240
20546
|
const _errs20 = errors;
|
|
20241
|
-
if (!
|
|
20242
|
-
vErrors = vErrors === null ?
|
|
20547
|
+
if (!validate303(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
20548
|
+
vErrors = vErrors === null ? validate303.errors : vErrors.concat(validate303.errors);
|
|
20243
20549
|
errors = vErrors.length;
|
|
20244
20550
|
}
|
|
20245
20551
|
var _valid0 = _errs20 === errors;
|
|
@@ -20364,12 +20670,12 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20364
20670
|
return errors === 0;
|
|
20365
20671
|
}
|
|
20366
20672
|
validate21.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
20367
|
-
var validateModal =
|
|
20368
|
-
var
|
|
20369
|
-
function
|
|
20673
|
+
var validateModal = validate407;
|
|
20674
|
+
var schema226 = { "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"] } }] };
|
|
20675
|
+
function validate407(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20370
20676
|
let vErrors = null;
|
|
20371
20677
|
let errors = 0;
|
|
20372
|
-
const evaluated0 =
|
|
20678
|
+
const evaluated0 = validate407.evaluated;
|
|
20373
20679
|
if (evaluated0.dynamicProps) {
|
|
20374
20680
|
evaluated0.props = void 0;
|
|
20375
20681
|
}
|
|
@@ -20511,7 +20817,7 @@ function validate402(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20511
20817
|
errors++;
|
|
20512
20818
|
}
|
|
20513
20819
|
for (const key0 in data) {
|
|
20514
|
-
if (!func81.call(
|
|
20820
|
+
if (!func81.call(schema226.properties, key0)) {
|
|
20515
20821
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
20516
20822
|
if (vErrors === null) {
|
|
20517
20823
|
vErrors = [err9];
|
|
@@ -21011,15 +21317,15 @@ function validate402(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21011
21317
|
}
|
|
21012
21318
|
errors++;
|
|
21013
21319
|
}
|
|
21014
|
-
|
|
21320
|
+
validate407.errors = vErrors;
|
|
21015
21321
|
return errors === 0;
|
|
21016
21322
|
}
|
|
21017
|
-
|
|
21018
|
-
var validateHome =
|
|
21019
|
-
function
|
|
21323
|
+
validate407.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
21324
|
+
var validateHome = validate409;
|
|
21325
|
+
function validate409(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21020
21326
|
let vErrors = null;
|
|
21021
21327
|
let errors = 0;
|
|
21022
|
-
const evaluated0 =
|
|
21328
|
+
const evaluated0 = validate409.evaluated;
|
|
21023
21329
|
if (evaluated0.dynamicProps) {
|
|
21024
21330
|
evaluated0.props = void 0;
|
|
21025
21331
|
}
|
|
@@ -21180,15 +21486,15 @@ function validate404(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21180
21486
|
}
|
|
21181
21487
|
errors++;
|
|
21182
21488
|
}
|
|
21183
|
-
|
|
21489
|
+
validate409.errors = vErrors;
|
|
21184
21490
|
return errors === 0;
|
|
21185
21491
|
}
|
|
21186
|
-
|
|
21187
|
-
var actions_block =
|
|
21188
|
-
function
|
|
21492
|
+
validate409.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
21493
|
+
var actions_block = validate411;
|
|
21494
|
+
function validate411(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21189
21495
|
let vErrors = null;
|
|
21190
21496
|
let errors = 0;
|
|
21191
|
-
const evaluated0 =
|
|
21497
|
+
const evaluated0 = validate411.evaluated;
|
|
21192
21498
|
if (evaluated0.dynamicProps) {
|
|
21193
21499
|
evaluated0.props = void 0;
|
|
21194
21500
|
}
|
|
@@ -21314,15 +21620,15 @@ function validate406(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21314
21620
|
}
|
|
21315
21621
|
errors++;
|
|
21316
21622
|
}
|
|
21317
|
-
|
|
21623
|
+
validate411.errors = vErrors;
|
|
21318
21624
|
return errors === 0;
|
|
21319
21625
|
}
|
|
21320
|
-
|
|
21321
|
-
var alert_block =
|
|
21322
|
-
function
|
|
21626
|
+
validate411.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
21627
|
+
var alert_block = validate413;
|
|
21628
|
+
function validate413(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21323
21629
|
let vErrors = null;
|
|
21324
21630
|
let errors = 0;
|
|
21325
|
-
const evaluated0 =
|
|
21631
|
+
const evaluated0 = validate413.evaluated;
|
|
21326
21632
|
if (evaluated0.dynamicProps) {
|
|
21327
21633
|
evaluated0.props = void 0;
|
|
21328
21634
|
}
|
|
@@ -21428,15 +21734,15 @@ function validate408(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21428
21734
|
}
|
|
21429
21735
|
errors++;
|
|
21430
21736
|
}
|
|
21431
|
-
|
|
21737
|
+
validate413.errors = vErrors;
|
|
21432
21738
|
return errors === 0;
|
|
21433
21739
|
}
|
|
21434
|
-
|
|
21435
|
-
var card_block =
|
|
21436
|
-
function
|
|
21740
|
+
validate413.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
21741
|
+
var card_block = validate415;
|
|
21742
|
+
function validate415(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21437
21743
|
let vErrors = null;
|
|
21438
21744
|
let errors = 0;
|
|
21439
|
-
const evaluated0 =
|
|
21745
|
+
const evaluated0 = validate415.evaluated;
|
|
21440
21746
|
if (evaluated0.dynamicProps) {
|
|
21441
21747
|
evaluated0.props = void 0;
|
|
21442
21748
|
}
|
|
@@ -21728,15 +22034,15 @@ function validate410(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21728
22034
|
}
|
|
21729
22035
|
errors++;
|
|
21730
22036
|
}
|
|
21731
|
-
|
|
22037
|
+
validate415.errors = vErrors;
|
|
21732
22038
|
return errors === 0;
|
|
21733
22039
|
}
|
|
21734
|
-
|
|
21735
|
-
var carousel_block =
|
|
21736
|
-
function
|
|
22040
|
+
validate415.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
22041
|
+
var carousel_block = validate422;
|
|
22042
|
+
function validate422(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21737
22043
|
let vErrors = null;
|
|
21738
22044
|
let errors = 0;
|
|
21739
|
-
const evaluated0 =
|
|
22045
|
+
const evaluated0 = validate422.evaluated;
|
|
21740
22046
|
if (evaluated0.dynamicProps) {
|
|
21741
22047
|
evaluated0.props = void 0;
|
|
21742
22048
|
}
|
|
@@ -21862,15 +22168,15 @@ function validate417(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21862
22168
|
}
|
|
21863
22169
|
errors++;
|
|
21864
22170
|
}
|
|
21865
|
-
|
|
22171
|
+
validate422.errors = vErrors;
|
|
21866
22172
|
return errors === 0;
|
|
21867
22173
|
}
|
|
21868
|
-
|
|
21869
|
-
var container_block =
|
|
21870
|
-
function
|
|
22174
|
+
validate422.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
22175
|
+
var container_block = validate424;
|
|
22176
|
+
function validate424(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21871
22177
|
let vErrors = null;
|
|
21872
22178
|
let errors = 0;
|
|
21873
|
-
const evaluated0 =
|
|
22179
|
+
const evaluated0 = validate424.evaluated;
|
|
21874
22180
|
if (evaluated0.dynamicProps) {
|
|
21875
22181
|
evaluated0.props = void 0;
|
|
21876
22182
|
}
|
|
@@ -22318,15 +22624,15 @@ function validate419(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22318
22624
|
}
|
|
22319
22625
|
errors++;
|
|
22320
22626
|
}
|
|
22321
|
-
|
|
22627
|
+
validate424.errors = vErrors;
|
|
22322
22628
|
return errors === 0;
|
|
22323
22629
|
}
|
|
22324
|
-
|
|
22325
|
-
var context_block =
|
|
22326
|
-
function
|
|
22630
|
+
validate424.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
22631
|
+
var context_block = validate429;
|
|
22632
|
+
function validate429(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22327
22633
|
let vErrors = null;
|
|
22328
22634
|
let errors = 0;
|
|
22329
|
-
const evaluated0 =
|
|
22635
|
+
const evaluated0 = validate429.evaluated;
|
|
22330
22636
|
if (evaluated0.dynamicProps) {
|
|
22331
22637
|
evaluated0.props = void 0;
|
|
22332
22638
|
}
|
|
@@ -22452,15 +22758,15 @@ function validate424(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22452
22758
|
}
|
|
22453
22759
|
errors++;
|
|
22454
22760
|
}
|
|
22455
|
-
|
|
22761
|
+
validate429.errors = vErrors;
|
|
22456
22762
|
return errors === 0;
|
|
22457
22763
|
}
|
|
22458
|
-
|
|
22459
|
-
var context_actions_block =
|
|
22460
|
-
function
|
|
22764
|
+
validate429.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
22765
|
+
var context_actions_block = validate431;
|
|
22766
|
+
function validate431(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22461
22767
|
let vErrors = null;
|
|
22462
22768
|
let errors = 0;
|
|
22463
|
-
const evaluated0 =
|
|
22769
|
+
const evaluated0 = validate431.evaluated;
|
|
22464
22770
|
if (evaluated0.dynamicProps) {
|
|
22465
22771
|
evaluated0.props = void 0;
|
|
22466
22772
|
}
|
|
@@ -22586,15 +22892,15 @@ function validate426(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22586
22892
|
}
|
|
22587
22893
|
errors++;
|
|
22588
22894
|
}
|
|
22589
|
-
|
|
22895
|
+
validate431.errors = vErrors;
|
|
22590
22896
|
return errors === 0;
|
|
22591
22897
|
}
|
|
22592
|
-
|
|
22593
|
-
var data_table_block =
|
|
22594
|
-
function
|
|
22898
|
+
validate431.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
22899
|
+
var data_table_block = validate433;
|
|
22900
|
+
function validate433(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22595
22901
|
let vErrors = null;
|
|
22596
22902
|
let errors = 0;
|
|
22597
|
-
const evaluated0 =
|
|
22903
|
+
const evaluated0 = validate433.evaluated;
|
|
22598
22904
|
if (evaluated0.dynamicProps) {
|
|
22599
22905
|
evaluated0.props = void 0;
|
|
22600
22906
|
}
|
|
@@ -22771,8 +23077,8 @@ function validate428(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22771
23077
|
if (data.rows !== void 0) {
|
|
22772
23078
|
let data5 = data.rows;
|
|
22773
23079
|
if (Array.isArray(data5)) {
|
|
22774
|
-
if (data5.length >
|
|
22775
|
-
const err16 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/maxItems", keyword: "maxItems", params: { limit:
|
|
23080
|
+
if (data5.length > 201) {
|
|
23081
|
+
const err16 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/maxItems", keyword: "maxItems", params: { limit: 201 }, message: "must NOT have more than 201 items" };
|
|
22776
23082
|
if (vErrors === null) {
|
|
22777
23083
|
vErrors = [err16];
|
|
22778
23084
|
} else {
|
|
@@ -22847,15 +23153,15 @@ function validate428(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22847
23153
|
}
|
|
22848
23154
|
errors++;
|
|
22849
23155
|
}
|
|
22850
|
-
|
|
23156
|
+
validate433.errors = vErrors;
|
|
22851
23157
|
return errors === 0;
|
|
22852
23158
|
}
|
|
22853
|
-
|
|
22854
|
-
var data_visualization_block =
|
|
22855
|
-
function
|
|
23159
|
+
validate433.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
23160
|
+
var data_visualization_block = validate435;
|
|
23161
|
+
function validate435(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22856
23162
|
let vErrors = null;
|
|
22857
23163
|
let errors = 0;
|
|
22858
|
-
const evaluated0 =
|
|
23164
|
+
const evaluated0 = validate435.evaluated;
|
|
22859
23165
|
if (evaluated0.dynamicProps) {
|
|
22860
23166
|
evaluated0.props = void 0;
|
|
22861
23167
|
}
|
|
@@ -22975,8 +23281,8 @@ function validate430(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22975
23281
|
}
|
|
22976
23282
|
}
|
|
22977
23283
|
if (data.chart !== void 0) {
|
|
22978
|
-
if (!
|
|
22979
|
-
vErrors = vErrors === null ?
|
|
23284
|
+
if (!validate282(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors })) {
|
|
23285
|
+
vErrors = vErrors === null ? validate282.errors : vErrors.concat(validate282.errors);
|
|
22980
23286
|
errors = vErrors.length;
|
|
22981
23287
|
}
|
|
22982
23288
|
}
|
|
@@ -22989,15 +23295,15 @@ function validate430(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
22989
23295
|
}
|
|
22990
23296
|
errors++;
|
|
22991
23297
|
}
|
|
22992
|
-
|
|
23298
|
+
validate435.errors = vErrors;
|
|
22993
23299
|
return errors === 0;
|
|
22994
23300
|
}
|
|
22995
|
-
|
|
22996
|
-
var divider_block =
|
|
22997
|
-
function
|
|
23301
|
+
validate435.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
23302
|
+
var divider_block = validate437;
|
|
23303
|
+
function validate437(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22998
23304
|
let vErrors = null;
|
|
22999
23305
|
let errors = 0;
|
|
23000
|
-
const evaluated0 =
|
|
23306
|
+
const evaluated0 = validate437.evaluated;
|
|
23001
23307
|
if (evaluated0.dynamicProps) {
|
|
23002
23308
|
evaluated0.props = void 0;
|
|
23003
23309
|
}
|
|
@@ -23076,15 +23382,15 @@ function validate432(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
23076
23382
|
}
|
|
23077
23383
|
errors++;
|
|
23078
23384
|
}
|
|
23079
|
-
|
|
23385
|
+
validate437.errors = vErrors;
|
|
23080
23386
|
return errors === 0;
|
|
23081
23387
|
}
|
|
23082
|
-
|
|
23083
|
-
var file_block =
|
|
23084
|
-
function
|
|
23388
|
+
validate437.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
23389
|
+
var file_block = validate438;
|
|
23390
|
+
function validate438(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
23085
23391
|
let vErrors = null;
|
|
23086
23392
|
let errors = 0;
|
|
23087
|
-
const evaluated0 =
|
|
23393
|
+
const evaluated0 = validate438.evaluated;
|
|
23088
23394
|
if (evaluated0.dynamicProps) {
|
|
23089
23395
|
evaluated0.props = void 0;
|
|
23090
23396
|
}
|
|
@@ -23214,15 +23520,15 @@ function validate433(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
23214
23520
|
}
|
|
23215
23521
|
errors++;
|
|
23216
23522
|
}
|
|
23217
|
-
|
|
23523
|
+
validate438.errors = vErrors;
|
|
23218
23524
|
return errors === 0;
|
|
23219
23525
|
}
|
|
23220
|
-
|
|
23221
|
-
var header_block =
|
|
23222
|
-
function
|
|
23526
|
+
validate438.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
23527
|
+
var header_block = validate439;
|
|
23528
|
+
function validate439(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
23223
23529
|
let vErrors = null;
|
|
23224
23530
|
let errors = 0;
|
|
23225
|
-
const evaluated0 =
|
|
23531
|
+
const evaluated0 = validate439.evaluated;
|
|
23226
23532
|
if (evaluated0.dynamicProps) {
|
|
23227
23533
|
evaluated0.props = void 0;
|
|
23228
23534
|
}
|
|
@@ -23453,15 +23759,15 @@ function validate434(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
23453
23759
|
}
|
|
23454
23760
|
errors++;
|
|
23455
23761
|
}
|
|
23456
|
-
|
|
23762
|
+
validate439.errors = vErrors;
|
|
23457
23763
|
return errors === 0;
|
|
23458
23764
|
}
|
|
23459
|
-
|
|
23460
|
-
var image_block =
|
|
23461
|
-
function
|
|
23765
|
+
validate439.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
23766
|
+
var image_block = validate440;
|
|
23767
|
+
function validate440(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
23462
23768
|
let vErrors = null;
|
|
23463
23769
|
let errors = 0;
|
|
23464
|
-
const evaluated0 =
|
|
23770
|
+
const evaluated0 = validate440.evaluated;
|
|
23465
23771
|
if (evaluated0.dynamicProps) {
|
|
23466
23772
|
evaluated0.props = void 0;
|
|
23467
23773
|
}
|
|
@@ -24042,15 +24348,15 @@ function validate435(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24042
24348
|
}
|
|
24043
24349
|
errors++;
|
|
24044
24350
|
}
|
|
24045
|
-
|
|
24351
|
+
validate440.errors = vErrors;
|
|
24046
24352
|
return errors === 0;
|
|
24047
24353
|
}
|
|
24048
|
-
|
|
24049
|
-
var input_block =
|
|
24050
|
-
function
|
|
24354
|
+
validate440.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
24355
|
+
var input_block = validate441;
|
|
24356
|
+
function validate441(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
24051
24357
|
let vErrors = null;
|
|
24052
24358
|
let errors = 0;
|
|
24053
|
-
const evaluated0 =
|
|
24359
|
+
const evaluated0 = validate441.evaluated;
|
|
24054
24360
|
if (evaluated0.dynamicProps) {
|
|
24055
24361
|
evaluated0.props = void 0;
|
|
24056
24362
|
}
|
|
@@ -24481,15 +24787,15 @@ function validate436(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24481
24787
|
}
|
|
24482
24788
|
errors++;
|
|
24483
24789
|
}
|
|
24484
|
-
|
|
24790
|
+
validate441.errors = vErrors;
|
|
24485
24791
|
return errors === 0;
|
|
24486
24792
|
}
|
|
24487
|
-
|
|
24488
|
-
var markdown_block =
|
|
24489
|
-
function
|
|
24793
|
+
validate441.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
24794
|
+
var markdown_block = validate443;
|
|
24795
|
+
function validate443(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
24490
24796
|
let vErrors = null;
|
|
24491
24797
|
let errors = 0;
|
|
24492
|
-
const evaluated0 =
|
|
24798
|
+
const evaluated0 = validate443.evaluated;
|
|
24493
24799
|
if (evaluated0.dynamicProps) {
|
|
24494
24800
|
evaluated0.props = void 0;
|
|
24495
24801
|
}
|
|
@@ -24608,15 +24914,15 @@ function validate438(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24608
24914
|
}
|
|
24609
24915
|
errors++;
|
|
24610
24916
|
}
|
|
24611
|
-
|
|
24917
|
+
validate443.errors = vErrors;
|
|
24612
24918
|
return errors === 0;
|
|
24613
24919
|
}
|
|
24614
|
-
|
|
24615
|
-
var plan_block =
|
|
24616
|
-
function
|
|
24920
|
+
validate443.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
24921
|
+
var plan_block = validate444;
|
|
24922
|
+
function validate444(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
24617
24923
|
let vErrors = null;
|
|
24618
24924
|
let errors = 0;
|
|
24619
|
-
const evaluated0 =
|
|
24925
|
+
const evaluated0 = validate444.evaluated;
|
|
24620
24926
|
if (evaluated0.dynamicProps) {
|
|
24621
24927
|
evaluated0.props = void 0;
|
|
24622
24928
|
}
|
|
@@ -24852,8 +25158,8 @@ function validate439(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24852
25158
|
if (Array.isArray(data6)) {
|
|
24853
25159
|
const len0 = data6.length;
|
|
24854
25160
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
24855
|
-
if (!
|
|
24856
|
-
vErrors = vErrors === null ?
|
|
25161
|
+
if (!validate295(data6[i0], { instancePath: instancePath + "/tasks/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
25162
|
+
vErrors = vErrors === null ? validate295.errors : vErrors.concat(validate295.errors);
|
|
24857
25163
|
errors = vErrors.length;
|
|
24858
25164
|
}
|
|
24859
25165
|
}
|
|
@@ -24876,15 +25182,15 @@ function validate439(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24876
25182
|
}
|
|
24877
25183
|
errors++;
|
|
24878
25184
|
}
|
|
24879
|
-
|
|
25185
|
+
validate444.errors = vErrors;
|
|
24880
25186
|
return errors === 0;
|
|
24881
25187
|
}
|
|
24882
|
-
|
|
24883
|
-
var rich_text_block =
|
|
24884
|
-
function
|
|
25188
|
+
validate444.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25189
|
+
var rich_text_block = validate446;
|
|
25190
|
+
function validate446(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
24885
25191
|
let vErrors = null;
|
|
24886
25192
|
let errors = 0;
|
|
24887
|
-
const evaluated0 =
|
|
25193
|
+
const evaluated0 = validate446.evaluated;
|
|
24888
25194
|
if (evaluated0.dynamicProps) {
|
|
24889
25195
|
evaluated0.props = void 0;
|
|
24890
25196
|
}
|
|
@@ -24992,15 +25298,15 @@ function validate441(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24992
25298
|
}
|
|
24993
25299
|
errors++;
|
|
24994
25300
|
}
|
|
24995
|
-
|
|
25301
|
+
validate446.errors = vErrors;
|
|
24996
25302
|
return errors === 0;
|
|
24997
25303
|
}
|
|
24998
|
-
|
|
24999
|
-
var section_block =
|
|
25000
|
-
function
|
|
25304
|
+
validate446.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25305
|
+
var section_block = validate448;
|
|
25306
|
+
function validate448(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25001
25307
|
let vErrors = null;
|
|
25002
25308
|
let errors = 0;
|
|
25003
|
-
const evaluated0 =
|
|
25309
|
+
const evaluated0 = validate448.evaluated;
|
|
25004
25310
|
if (evaluated0.dynamicProps) {
|
|
25005
25311
|
evaluated0.props = void 0;
|
|
25006
25312
|
}
|
|
@@ -25211,15 +25517,15 @@ function validate443(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25211
25517
|
}
|
|
25212
25518
|
errors++;
|
|
25213
25519
|
}
|
|
25214
|
-
|
|
25520
|
+
validate448.errors = vErrors;
|
|
25215
25521
|
return errors === 0;
|
|
25216
25522
|
}
|
|
25217
|
-
|
|
25218
|
-
var table_block =
|
|
25219
|
-
function
|
|
25523
|
+
validate448.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25524
|
+
var table_block = validate452;
|
|
25525
|
+
function validate452(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25220
25526
|
let vErrors = null;
|
|
25221
25527
|
let errors = 0;
|
|
25222
|
-
const evaluated0 =
|
|
25528
|
+
const evaluated0 = validate452.evaluated;
|
|
25223
25529
|
if (evaluated0.dynamicProps) {
|
|
25224
25530
|
evaluated0.props = void 0;
|
|
25225
25531
|
}
|
|
@@ -25494,15 +25800,15 @@ function validate447(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25494
25800
|
}
|
|
25495
25801
|
errors++;
|
|
25496
25802
|
}
|
|
25497
|
-
|
|
25803
|
+
validate452.errors = vErrors;
|
|
25498
25804
|
return errors === 0;
|
|
25499
25805
|
}
|
|
25500
|
-
|
|
25501
|
-
var task_card_block =
|
|
25502
|
-
function
|
|
25806
|
+
validate452.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25807
|
+
var task_card_block = validate454;
|
|
25808
|
+
function validate454(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25503
25809
|
let vErrors = null;
|
|
25504
25810
|
let errors = 0;
|
|
25505
|
-
const evaluated0 =
|
|
25811
|
+
const evaluated0 = validate454.evaluated;
|
|
25506
25812
|
if (evaluated0.dynamicProps) {
|
|
25507
25813
|
evaluated0.props = void 0;
|
|
25508
25814
|
}
|
|
@@ -25738,7 +26044,7 @@ function validate449(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25738
26044
|
if (data.status !== void 0) {
|
|
25739
26045
|
let data10 = data.status;
|
|
25740
26046
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
25741
|
-
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
26047
|
+
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema222.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
25742
26048
|
if (vErrors === null) {
|
|
25743
26049
|
vErrors = [err20];
|
|
25744
26050
|
} else {
|
|
@@ -25787,15 +26093,15 @@ function validate449(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25787
26093
|
}
|
|
25788
26094
|
errors++;
|
|
25789
26095
|
}
|
|
25790
|
-
|
|
26096
|
+
validate454.errors = vErrors;
|
|
25791
26097
|
return errors === 0;
|
|
25792
26098
|
}
|
|
25793
|
-
|
|
25794
|
-
var video_block =
|
|
25795
|
-
function
|
|
26099
|
+
validate454.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
26100
|
+
var video_block = validate457;
|
|
26101
|
+
function validate457(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25796
26102
|
let vErrors = null;
|
|
25797
26103
|
let errors = 0;
|
|
25798
|
-
const evaluated0 =
|
|
26104
|
+
const evaluated0 = validate457.evaluated;
|
|
25799
26105
|
if (evaluated0.dynamicProps) {
|
|
25800
26106
|
evaluated0.props = void 0;
|
|
25801
26107
|
}
|
|
@@ -26304,10 +26610,10 @@ function validate452(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
26304
26610
|
}
|
|
26305
26611
|
errors++;
|
|
26306
26612
|
}
|
|
26307
|
-
|
|
26613
|
+
validate457.errors = vErrors;
|
|
26308
26614
|
return errors === 0;
|
|
26309
26615
|
}
|
|
26310
|
-
|
|
26616
|
+
validate457.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
26311
26617
|
var blockValidators = { "actions": actions_block, "alert": alert_block, "card": card_block, "carousel": carousel_block, "container": container_block, "context": context_block, "context_actions": context_actions_block, "data_table": data_table_block, "data_visualization": data_visualization_block, "divider": divider_block, "file": file_block, "header": header_block, "image": image_block, "input": input_block, "markdown": markdown_block, "plan": plan_block, "rich_text": rich_text_block, "section": section_block, "table": table_block, "task_card": task_card_block, "video": video_block };
|
|
26312
26618
|
export {
|
|
26313
26619
|
actions_block,
|