@tightknitai/slack-block-kit-validator 0.1.7 → 0.1.8
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 +4 -2
- package/dist/helpers/check-data-visualization-consistency.d.ts +22 -0
- package/dist/helpers/check-data-visualization-consistency.d.ts.map +1 -0
- package/dist/helpers/check-data-visualization-consistency.js +75 -0
- package/dist/helpers/check-data-visualization-consistency.js.map +1 -0
- package/dist/helpers/check-data-visualization-max.d.ts +16 -0
- package/dist/helpers/check-data-visualization-max.d.ts.map +1 -0
- package/dist/helpers/check-data-visualization-max.js +27 -0
- package/dist/helpers/check-data-visualization-max.js.map +1 -0
- package/dist/helpers/check-surface-compatibility.d.ts.map +1 -1
- package/dist/helpers/check-surface-compatibility.js +6 -0
- package/dist/helpers/check-surface-compatibility.js.map +1 -1
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +2 -0
- package/dist/helpers.js.map +1 -1
- package/dist/slack-block-kit.schema.json +105 -1
- package/dist/standalone-validator.js +1151 -333
- package/dist/types.generated.d.ts +305 -2
- 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 +5 -0
- package/dist/validate-block-kit.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
|
|
8
|
+
try {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
} catch (e) {
|
|
11
|
+
throw mod = 0, e;
|
|
12
|
+
}
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
// node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
@@ -8639,118 +8643,914 @@ function validate143(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8639
8643
|
if (vErrors === null) {
|
|
8640
8644
|
vErrors = [err1];
|
|
8641
8645
|
} else {
|
|
8642
|
-
vErrors.push(err1);
|
|
8646
|
+
vErrors.push(err1);
|
|
8647
|
+
}
|
|
8648
|
+
errors++;
|
|
8649
|
+
}
|
|
8650
|
+
for (const key0 in data) {
|
|
8651
|
+
if (!(key0 === "type" || key0 === "elements" || key0 === "block_id")) {
|
|
8652
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8653
|
+
if (vErrors === null) {
|
|
8654
|
+
vErrors = [err2];
|
|
8655
|
+
} else {
|
|
8656
|
+
vErrors.push(err2);
|
|
8657
|
+
}
|
|
8658
|
+
errors++;
|
|
8659
|
+
}
|
|
8660
|
+
}
|
|
8661
|
+
if (data.type !== void 0) {
|
|
8662
|
+
if ("context" !== data.type) {
|
|
8663
|
+
const err3 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/const", keyword: "const", params: { allowedValue: "context" }, message: "must be equal to constant" };
|
|
8664
|
+
if (vErrors === null) {
|
|
8665
|
+
vErrors = [err3];
|
|
8666
|
+
} else {
|
|
8667
|
+
vErrors.push(err3);
|
|
8668
|
+
}
|
|
8669
|
+
errors++;
|
|
8670
|
+
}
|
|
8671
|
+
}
|
|
8672
|
+
if (data.elements !== void 0) {
|
|
8673
|
+
let data1 = data.elements;
|
|
8674
|
+
if (Array.isArray(data1)) {
|
|
8675
|
+
if (data1.length > 10) {
|
|
8676
|
+
const err4 = { instancePath: instancePath + "/elements", schemaPath: "#/properties/elements/maxItems", keyword: "maxItems", params: { limit: 10 }, message: "must NOT have more than 10 items" };
|
|
8677
|
+
if (vErrors === null) {
|
|
8678
|
+
vErrors = [err4];
|
|
8679
|
+
} else {
|
|
8680
|
+
vErrors.push(err4);
|
|
8681
|
+
}
|
|
8682
|
+
errors++;
|
|
8683
|
+
}
|
|
8684
|
+
if (data1.length < 1) {
|
|
8685
|
+
const err5 = { instancePath: instancePath + "/elements", schemaPath: "#/properties/elements/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8686
|
+
if (vErrors === null) {
|
|
8687
|
+
vErrors = [err5];
|
|
8688
|
+
} else {
|
|
8689
|
+
vErrors.push(err5);
|
|
8690
|
+
}
|
|
8691
|
+
errors++;
|
|
8692
|
+
}
|
|
8693
|
+
const len0 = data1.length;
|
|
8694
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8695
|
+
if (!validate144(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
8696
|
+
vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
|
|
8697
|
+
errors = vErrors.length;
|
|
8698
|
+
}
|
|
8699
|
+
}
|
|
8700
|
+
} else {
|
|
8701
|
+
const err6 = { instancePath: instancePath + "/elements", schemaPath: "#/properties/elements/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8702
|
+
if (vErrors === null) {
|
|
8703
|
+
vErrors = [err6];
|
|
8704
|
+
} else {
|
|
8705
|
+
vErrors.push(err6);
|
|
8706
|
+
}
|
|
8707
|
+
errors++;
|
|
8708
|
+
}
|
|
8709
|
+
}
|
|
8710
|
+
if (data.block_id !== void 0) {
|
|
8711
|
+
let data3 = data.block_id;
|
|
8712
|
+
if (typeof data3 === "string") {
|
|
8713
|
+
if (func1(data3) > 255) {
|
|
8714
|
+
const err7 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" };
|
|
8715
|
+
if (vErrors === null) {
|
|
8716
|
+
vErrors = [err7];
|
|
8717
|
+
} else {
|
|
8718
|
+
vErrors.push(err7);
|
|
8719
|
+
}
|
|
8720
|
+
errors++;
|
|
8721
|
+
}
|
|
8722
|
+
if (func1(data3) < 1) {
|
|
8723
|
+
const err8 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8724
|
+
if (vErrors === null) {
|
|
8725
|
+
vErrors = [err8];
|
|
8726
|
+
} else {
|
|
8727
|
+
vErrors.push(err8);
|
|
8728
|
+
}
|
|
8729
|
+
errors++;
|
|
8730
|
+
}
|
|
8731
|
+
} else {
|
|
8732
|
+
const err9 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8733
|
+
if (vErrors === null) {
|
|
8734
|
+
vErrors = [err9];
|
|
8735
|
+
} else {
|
|
8736
|
+
vErrors.push(err9);
|
|
8737
|
+
}
|
|
8738
|
+
errors++;
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
} else {
|
|
8742
|
+
const err10 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8743
|
+
if (vErrors === null) {
|
|
8744
|
+
vErrors = [err10];
|
|
8745
|
+
} else {
|
|
8746
|
+
vErrors.push(err10);
|
|
8747
|
+
}
|
|
8748
|
+
errors++;
|
|
8749
|
+
}
|
|
8750
|
+
validate143.errors = vErrors;
|
|
8751
|
+
return errors === 0;
|
|
8752
|
+
}
|
|
8753
|
+
validate143.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8754
|
+
var schema124 = { "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" } } } }] };
|
|
8755
|
+
function validate151(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8756
|
+
let vErrors = null;
|
|
8757
|
+
let errors = 0;
|
|
8758
|
+
const evaluated0 = validate151.evaluated;
|
|
8759
|
+
if (evaluated0.dynamicProps) {
|
|
8760
|
+
evaluated0.props = void 0;
|
|
8761
|
+
}
|
|
8762
|
+
if (evaluated0.dynamicItems) {
|
|
8763
|
+
evaluated0.items = void 0;
|
|
8764
|
+
}
|
|
8765
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8766
|
+
if (data.name === void 0) {
|
|
8767
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
|
|
8768
|
+
if (vErrors === null) {
|
|
8769
|
+
vErrors = [err0];
|
|
8770
|
+
} else {
|
|
8771
|
+
vErrors.push(err0);
|
|
8772
|
+
}
|
|
8773
|
+
errors++;
|
|
8774
|
+
}
|
|
8775
|
+
if (data.data === void 0) {
|
|
8776
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "data" }, message: "must have required property 'data'" };
|
|
8777
|
+
if (vErrors === null) {
|
|
8778
|
+
vErrors = [err1];
|
|
8779
|
+
} else {
|
|
8780
|
+
vErrors.push(err1);
|
|
8781
|
+
}
|
|
8782
|
+
errors++;
|
|
8783
|
+
}
|
|
8784
|
+
for (const key0 in data) {
|
|
8785
|
+
if (!(key0 === "name" || key0 === "data")) {
|
|
8786
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8787
|
+
if (vErrors === null) {
|
|
8788
|
+
vErrors = [err2];
|
|
8789
|
+
} else {
|
|
8790
|
+
vErrors.push(err2);
|
|
8791
|
+
}
|
|
8792
|
+
errors++;
|
|
8793
|
+
}
|
|
8794
|
+
}
|
|
8795
|
+
if (data.name !== void 0) {
|
|
8796
|
+
let data0 = data.name;
|
|
8797
|
+
if (typeof data0 === "string") {
|
|
8798
|
+
if (func1(data0) > 20) {
|
|
8799
|
+
const err3 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
|
|
8800
|
+
if (vErrors === null) {
|
|
8801
|
+
vErrors = [err3];
|
|
8802
|
+
} else {
|
|
8803
|
+
vErrors.push(err3);
|
|
8804
|
+
}
|
|
8805
|
+
errors++;
|
|
8806
|
+
}
|
|
8807
|
+
if (func1(data0) < 1) {
|
|
8808
|
+
const err4 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8809
|
+
if (vErrors === null) {
|
|
8810
|
+
vErrors = [err4];
|
|
8811
|
+
} else {
|
|
8812
|
+
vErrors.push(err4);
|
|
8813
|
+
}
|
|
8814
|
+
errors++;
|
|
8815
|
+
}
|
|
8816
|
+
} else {
|
|
8817
|
+
const err5 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8818
|
+
if (vErrors === null) {
|
|
8819
|
+
vErrors = [err5];
|
|
8820
|
+
} else {
|
|
8821
|
+
vErrors.push(err5);
|
|
8822
|
+
}
|
|
8823
|
+
errors++;
|
|
8824
|
+
}
|
|
8825
|
+
}
|
|
8826
|
+
if (data.data !== void 0) {
|
|
8827
|
+
let data1 = data.data;
|
|
8828
|
+
if (Array.isArray(data1)) {
|
|
8829
|
+
if (data1.length > 20) {
|
|
8830
|
+
const err6 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/maxItems", keyword: "maxItems", params: { limit: 20 }, message: "must NOT have more than 20 items" };
|
|
8831
|
+
if (vErrors === null) {
|
|
8832
|
+
vErrors = [err6];
|
|
8833
|
+
} else {
|
|
8834
|
+
vErrors.push(err6);
|
|
8835
|
+
}
|
|
8836
|
+
errors++;
|
|
8837
|
+
}
|
|
8838
|
+
if (data1.length < 1) {
|
|
8839
|
+
const err7 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8840
|
+
if (vErrors === null) {
|
|
8841
|
+
vErrors = [err7];
|
|
8842
|
+
} else {
|
|
8843
|
+
vErrors.push(err7);
|
|
8844
|
+
}
|
|
8845
|
+
errors++;
|
|
8846
|
+
}
|
|
8847
|
+
const len0 = data1.length;
|
|
8848
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8849
|
+
let data2 = data1[i0];
|
|
8850
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
8851
|
+
if (data2.label === void 0) {
|
|
8852
|
+
const err8 = { instancePath: instancePath + "/data/" + i0, schemaPath: "#/$defs/data_visualization_data_point/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
|
|
8853
|
+
if (vErrors === null) {
|
|
8854
|
+
vErrors = [err8];
|
|
8855
|
+
} else {
|
|
8856
|
+
vErrors.push(err8);
|
|
8857
|
+
}
|
|
8858
|
+
errors++;
|
|
8859
|
+
}
|
|
8860
|
+
if (data2.value === void 0) {
|
|
8861
|
+
const err9 = { instancePath: instancePath + "/data/" + i0, schemaPath: "#/$defs/data_visualization_data_point/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
8862
|
+
if (vErrors === null) {
|
|
8863
|
+
vErrors = [err9];
|
|
8864
|
+
} else {
|
|
8865
|
+
vErrors.push(err9);
|
|
8866
|
+
}
|
|
8867
|
+
errors++;
|
|
8868
|
+
}
|
|
8869
|
+
for (const key1 in data2) {
|
|
8870
|
+
if (!(key1 === "label" || key1 === "value")) {
|
|
8871
|
+
const err10 = { instancePath: instancePath + "/data/" + i0, schemaPath: "#/$defs/data_visualization_data_point/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
8872
|
+
if (vErrors === null) {
|
|
8873
|
+
vErrors = [err10];
|
|
8874
|
+
} else {
|
|
8875
|
+
vErrors.push(err10);
|
|
8876
|
+
}
|
|
8877
|
+
errors++;
|
|
8878
|
+
}
|
|
8879
|
+
}
|
|
8880
|
+
if (data2.label !== void 0) {
|
|
8881
|
+
let data3 = data2.label;
|
|
8882
|
+
if (typeof data3 === "string") {
|
|
8883
|
+
if (func1(data3) > 20) {
|
|
8884
|
+
const err11 = { instancePath: instancePath + "/data/" + i0 + "/label", schemaPath: "#/$defs/data_visualization_data_point/properties/label/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
|
|
8885
|
+
if (vErrors === null) {
|
|
8886
|
+
vErrors = [err11];
|
|
8887
|
+
} else {
|
|
8888
|
+
vErrors.push(err11);
|
|
8889
|
+
}
|
|
8890
|
+
errors++;
|
|
8891
|
+
}
|
|
8892
|
+
if (func1(data3) < 1) {
|
|
8893
|
+
const err12 = { instancePath: instancePath + "/data/" + i0 + "/label", schemaPath: "#/$defs/data_visualization_data_point/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8894
|
+
if (vErrors === null) {
|
|
8895
|
+
vErrors = [err12];
|
|
8896
|
+
} else {
|
|
8897
|
+
vErrors.push(err12);
|
|
8898
|
+
}
|
|
8899
|
+
errors++;
|
|
8900
|
+
}
|
|
8901
|
+
} else {
|
|
8902
|
+
const err13 = { instancePath: instancePath + "/data/" + i0 + "/label", schemaPath: "#/$defs/data_visualization_data_point/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8903
|
+
if (vErrors === null) {
|
|
8904
|
+
vErrors = [err13];
|
|
8905
|
+
} else {
|
|
8906
|
+
vErrors.push(err13);
|
|
8907
|
+
}
|
|
8908
|
+
errors++;
|
|
8909
|
+
}
|
|
8910
|
+
}
|
|
8911
|
+
if (data2.value !== void 0) {
|
|
8912
|
+
if (!(typeof data2.value == "number")) {
|
|
8913
|
+
const err14 = { instancePath: instancePath + "/data/" + i0 + "/value", schemaPath: "#/$defs/data_visualization_data_point/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
8914
|
+
if (vErrors === null) {
|
|
8915
|
+
vErrors = [err14];
|
|
8916
|
+
} else {
|
|
8917
|
+
vErrors.push(err14);
|
|
8918
|
+
}
|
|
8919
|
+
errors++;
|
|
8920
|
+
}
|
|
8921
|
+
}
|
|
8922
|
+
} else {
|
|
8923
|
+
const err15 = { instancePath: instancePath + "/data/" + i0, schemaPath: "#/$defs/data_visualization_data_point/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8924
|
+
if (vErrors === null) {
|
|
8925
|
+
vErrors = [err15];
|
|
8926
|
+
} else {
|
|
8927
|
+
vErrors.push(err15);
|
|
8928
|
+
}
|
|
8929
|
+
errors++;
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8932
|
+
} else {
|
|
8933
|
+
const err16 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8934
|
+
if (vErrors === null) {
|
|
8935
|
+
vErrors = [err16];
|
|
8936
|
+
} else {
|
|
8937
|
+
vErrors.push(err16);
|
|
8938
|
+
}
|
|
8939
|
+
errors++;
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8942
|
+
} else {
|
|
8943
|
+
const err17 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8944
|
+
if (vErrors === null) {
|
|
8945
|
+
vErrors = [err17];
|
|
8946
|
+
} else {
|
|
8947
|
+
vErrors.push(err17);
|
|
8948
|
+
}
|
|
8949
|
+
errors++;
|
|
8950
|
+
}
|
|
8951
|
+
validate151.errors = vErrors;
|
|
8952
|
+
return errors === 0;
|
|
8953
|
+
}
|
|
8954
|
+
validate151.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8955
|
+
function validate150(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8956
|
+
let vErrors = null;
|
|
8957
|
+
let errors = 0;
|
|
8958
|
+
const evaluated0 = validate150.evaluated;
|
|
8959
|
+
if (evaluated0.dynamicProps) {
|
|
8960
|
+
evaluated0.props = void 0;
|
|
8961
|
+
}
|
|
8962
|
+
if (evaluated0.dynamicItems) {
|
|
8963
|
+
evaluated0.items = void 0;
|
|
8964
|
+
}
|
|
8965
|
+
const _errs0 = errors;
|
|
8966
|
+
let valid0 = false;
|
|
8967
|
+
let passing0 = null;
|
|
8968
|
+
const _errs1 = errors;
|
|
8969
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8970
|
+
if (data.type === void 0) {
|
|
8971
|
+
const err0 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
8972
|
+
if (vErrors === null) {
|
|
8973
|
+
vErrors = [err0];
|
|
8974
|
+
} else {
|
|
8975
|
+
vErrors.push(err0);
|
|
8976
|
+
}
|
|
8977
|
+
errors++;
|
|
8978
|
+
}
|
|
8979
|
+
if (data.series === void 0) {
|
|
8980
|
+
const err1 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "series" }, message: "must have required property 'series'" };
|
|
8981
|
+
if (vErrors === null) {
|
|
8982
|
+
vErrors = [err1];
|
|
8983
|
+
} else {
|
|
8984
|
+
vErrors.push(err1);
|
|
8985
|
+
}
|
|
8986
|
+
errors++;
|
|
8987
|
+
}
|
|
8988
|
+
if (data.axis_config === void 0) {
|
|
8989
|
+
const err2 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "axis_config" }, message: "must have required property 'axis_config'" };
|
|
8990
|
+
if (vErrors === null) {
|
|
8991
|
+
vErrors = [err2];
|
|
8992
|
+
} else {
|
|
8993
|
+
vErrors.push(err2);
|
|
8994
|
+
}
|
|
8995
|
+
errors++;
|
|
8996
|
+
}
|
|
8997
|
+
for (const key0 in data) {
|
|
8998
|
+
if (!(key0 === "type" || key0 === "series" || key0 === "axis_config")) {
|
|
8999
|
+
const err3 = { instancePath, schemaPath: "#/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
9000
|
+
if (vErrors === null) {
|
|
9001
|
+
vErrors = [err3];
|
|
9002
|
+
} else {
|
|
9003
|
+
vErrors.push(err3);
|
|
9004
|
+
}
|
|
9005
|
+
errors++;
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
9008
|
+
if (data.type !== void 0) {
|
|
9009
|
+
let data0 = data.type;
|
|
9010
|
+
if (!(data0 === "line" || data0 === "bar" || data0 === "area")) {
|
|
9011
|
+
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/enum", keyword: "enum", params: { allowedValues: schema124.oneOf[0].properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
9012
|
+
if (vErrors === null) {
|
|
9013
|
+
vErrors = [err4];
|
|
9014
|
+
} else {
|
|
9015
|
+
vErrors.push(err4);
|
|
9016
|
+
}
|
|
9017
|
+
errors++;
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
if (data.series !== void 0) {
|
|
9021
|
+
let data1 = data.series;
|
|
9022
|
+
if (Array.isArray(data1)) {
|
|
9023
|
+
if (data1.length > 6) {
|
|
9024
|
+
const err5 = { instancePath: instancePath + "/series", schemaPath: "#/oneOf/0/properties/series/maxItems", keyword: "maxItems", params: { limit: 6 }, message: "must NOT have more than 6 items" };
|
|
9025
|
+
if (vErrors === null) {
|
|
9026
|
+
vErrors = [err5];
|
|
9027
|
+
} else {
|
|
9028
|
+
vErrors.push(err5);
|
|
9029
|
+
}
|
|
9030
|
+
errors++;
|
|
9031
|
+
}
|
|
9032
|
+
if (data1.length < 1) {
|
|
9033
|
+
const err6 = { instancePath: instancePath + "/series", schemaPath: "#/oneOf/0/properties/series/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9034
|
+
if (vErrors === null) {
|
|
9035
|
+
vErrors = [err6];
|
|
9036
|
+
} else {
|
|
9037
|
+
vErrors.push(err6);
|
|
9038
|
+
}
|
|
9039
|
+
errors++;
|
|
9040
|
+
}
|
|
9041
|
+
const len0 = data1.length;
|
|
9042
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
9043
|
+
if (!validate151(data1[i0], { instancePath: instancePath + "/series/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
9044
|
+
vErrors = vErrors === null ? validate151.errors : vErrors.concat(validate151.errors);
|
|
9045
|
+
errors = vErrors.length;
|
|
9046
|
+
}
|
|
9047
|
+
}
|
|
9048
|
+
} else {
|
|
9049
|
+
const err7 = { instancePath: instancePath + "/series", schemaPath: "#/oneOf/0/properties/series/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
9050
|
+
if (vErrors === null) {
|
|
9051
|
+
vErrors = [err7];
|
|
9052
|
+
} else {
|
|
9053
|
+
vErrors.push(err7);
|
|
9054
|
+
}
|
|
9055
|
+
errors++;
|
|
9056
|
+
}
|
|
9057
|
+
}
|
|
9058
|
+
if (data.axis_config !== void 0) {
|
|
9059
|
+
let data3 = data.axis_config;
|
|
9060
|
+
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
9061
|
+
if (data3.categories === void 0) {
|
|
9062
|
+
const err8 = { instancePath: instancePath + "/axis_config", schemaPath: "#/$defs/data_visualization_axis_config/required", keyword: "required", params: { missingProperty: "categories" }, message: "must have required property 'categories'" };
|
|
9063
|
+
if (vErrors === null) {
|
|
9064
|
+
vErrors = [err8];
|
|
9065
|
+
} else {
|
|
9066
|
+
vErrors.push(err8);
|
|
9067
|
+
}
|
|
9068
|
+
errors++;
|
|
9069
|
+
}
|
|
9070
|
+
for (const key1 in data3) {
|
|
9071
|
+
if (!(key1 === "categories" || key1 === "x_label" || key1 === "y_label")) {
|
|
9072
|
+
const err9 = { instancePath: instancePath + "/axis_config", schemaPath: "#/$defs/data_visualization_axis_config/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
9073
|
+
if (vErrors === null) {
|
|
9074
|
+
vErrors = [err9];
|
|
9075
|
+
} else {
|
|
9076
|
+
vErrors.push(err9);
|
|
9077
|
+
}
|
|
9078
|
+
errors++;
|
|
9079
|
+
}
|
|
9080
|
+
}
|
|
9081
|
+
if (data3.categories !== void 0) {
|
|
9082
|
+
let data4 = data3.categories;
|
|
9083
|
+
if (Array.isArray(data4)) {
|
|
9084
|
+
const len1 = data4.length;
|
|
9085
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
9086
|
+
let data5 = data4[i1];
|
|
9087
|
+
if (typeof data5 === "string") {
|
|
9088
|
+
if (func1(data5) > 20) {
|
|
9089
|
+
const err10 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
|
|
9090
|
+
if (vErrors === null) {
|
|
9091
|
+
vErrors = [err10];
|
|
9092
|
+
} else {
|
|
9093
|
+
vErrors.push(err10);
|
|
9094
|
+
}
|
|
9095
|
+
errors++;
|
|
9096
|
+
}
|
|
9097
|
+
if (func1(data5) < 1) {
|
|
9098
|
+
const err11 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
9099
|
+
if (vErrors === null) {
|
|
9100
|
+
vErrors = [err11];
|
|
9101
|
+
} else {
|
|
9102
|
+
vErrors.push(err11);
|
|
9103
|
+
}
|
|
9104
|
+
errors++;
|
|
9105
|
+
}
|
|
9106
|
+
} else {
|
|
9107
|
+
const err12 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9108
|
+
if (vErrors === null) {
|
|
9109
|
+
vErrors = [err12];
|
|
9110
|
+
} else {
|
|
9111
|
+
vErrors.push(err12);
|
|
9112
|
+
}
|
|
9113
|
+
errors++;
|
|
9114
|
+
}
|
|
9115
|
+
}
|
|
9116
|
+
} else {
|
|
9117
|
+
const err13 = { instancePath: instancePath + "/axis_config/categories", schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
9118
|
+
if (vErrors === null) {
|
|
9119
|
+
vErrors = [err13];
|
|
9120
|
+
} else {
|
|
9121
|
+
vErrors.push(err13);
|
|
9122
|
+
}
|
|
9123
|
+
errors++;
|
|
9124
|
+
}
|
|
9125
|
+
}
|
|
9126
|
+
if (data3.x_label !== void 0) {
|
|
9127
|
+
let data6 = data3.x_label;
|
|
9128
|
+
if (typeof data6 === "string") {
|
|
9129
|
+
if (func1(data6) > 50) {
|
|
9130
|
+
const err14 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
|
|
9131
|
+
if (vErrors === null) {
|
|
9132
|
+
vErrors = [err14];
|
|
9133
|
+
} else {
|
|
9134
|
+
vErrors.push(err14);
|
|
9135
|
+
}
|
|
9136
|
+
errors++;
|
|
9137
|
+
}
|
|
9138
|
+
} else {
|
|
9139
|
+
const err15 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9140
|
+
if (vErrors === null) {
|
|
9141
|
+
vErrors = [err15];
|
|
9142
|
+
} else {
|
|
9143
|
+
vErrors.push(err15);
|
|
9144
|
+
}
|
|
9145
|
+
errors++;
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
if (data3.y_label !== void 0) {
|
|
9149
|
+
let data7 = data3.y_label;
|
|
9150
|
+
if (typeof data7 === "string") {
|
|
9151
|
+
if (func1(data7) > 50) {
|
|
9152
|
+
const err16 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
|
|
9153
|
+
if (vErrors === null) {
|
|
9154
|
+
vErrors = [err16];
|
|
9155
|
+
} else {
|
|
9156
|
+
vErrors.push(err16);
|
|
9157
|
+
}
|
|
9158
|
+
errors++;
|
|
9159
|
+
}
|
|
9160
|
+
} else {
|
|
9161
|
+
const err17 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9162
|
+
if (vErrors === null) {
|
|
9163
|
+
vErrors = [err17];
|
|
9164
|
+
} else {
|
|
9165
|
+
vErrors.push(err17);
|
|
9166
|
+
}
|
|
9167
|
+
errors++;
|
|
9168
|
+
}
|
|
9169
|
+
}
|
|
9170
|
+
} else {
|
|
9171
|
+
const err18 = { instancePath: instancePath + "/axis_config", schemaPath: "#/$defs/data_visualization_axis_config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9172
|
+
if (vErrors === null) {
|
|
9173
|
+
vErrors = [err18];
|
|
9174
|
+
} else {
|
|
9175
|
+
vErrors.push(err18);
|
|
9176
|
+
}
|
|
9177
|
+
errors++;
|
|
9178
|
+
}
|
|
9179
|
+
}
|
|
9180
|
+
} else {
|
|
9181
|
+
const err19 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9182
|
+
if (vErrors === null) {
|
|
9183
|
+
vErrors = [err19];
|
|
9184
|
+
} else {
|
|
9185
|
+
vErrors.push(err19);
|
|
9186
|
+
}
|
|
9187
|
+
errors++;
|
|
9188
|
+
}
|
|
9189
|
+
var _valid0 = _errs1 === errors;
|
|
9190
|
+
if (_valid0) {
|
|
9191
|
+
valid0 = true;
|
|
9192
|
+
passing0 = 0;
|
|
9193
|
+
var props0 = true;
|
|
9194
|
+
}
|
|
9195
|
+
const _errs20 = errors;
|
|
9196
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9197
|
+
if (data.type === void 0) {
|
|
9198
|
+
const err20 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
9199
|
+
if (vErrors === null) {
|
|
9200
|
+
vErrors = [err20];
|
|
9201
|
+
} else {
|
|
9202
|
+
vErrors.push(err20);
|
|
9203
|
+
}
|
|
9204
|
+
errors++;
|
|
9205
|
+
}
|
|
9206
|
+
if (data.segments === void 0) {
|
|
9207
|
+
const err21 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "segments" }, message: "must have required property 'segments'" };
|
|
9208
|
+
if (vErrors === null) {
|
|
9209
|
+
vErrors = [err21];
|
|
9210
|
+
} else {
|
|
9211
|
+
vErrors.push(err21);
|
|
9212
|
+
}
|
|
9213
|
+
errors++;
|
|
9214
|
+
}
|
|
9215
|
+
for (const key2 in data) {
|
|
9216
|
+
if (!(key2 === "type" || key2 === "segments")) {
|
|
9217
|
+
const err22 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
9218
|
+
if (vErrors === null) {
|
|
9219
|
+
vErrors = [err22];
|
|
9220
|
+
} else {
|
|
9221
|
+
vErrors.push(err22);
|
|
9222
|
+
}
|
|
9223
|
+
errors++;
|
|
9224
|
+
}
|
|
9225
|
+
}
|
|
9226
|
+
if (data.type !== void 0) {
|
|
9227
|
+
if ("pie" !== data.type) {
|
|
9228
|
+
const err23 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "pie" }, message: "must be equal to constant" };
|
|
9229
|
+
if (vErrors === null) {
|
|
9230
|
+
vErrors = [err23];
|
|
9231
|
+
} else {
|
|
9232
|
+
vErrors.push(err23);
|
|
9233
|
+
}
|
|
9234
|
+
errors++;
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
if (data.segments !== void 0) {
|
|
9238
|
+
let data9 = data.segments;
|
|
9239
|
+
if (Array.isArray(data9)) {
|
|
9240
|
+
if (data9.length > 6) {
|
|
9241
|
+
const err24 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/maxItems", keyword: "maxItems", params: { limit: 6 }, message: "must NOT have more than 6 items" };
|
|
9242
|
+
if (vErrors === null) {
|
|
9243
|
+
vErrors = [err24];
|
|
9244
|
+
} else {
|
|
9245
|
+
vErrors.push(err24);
|
|
9246
|
+
}
|
|
9247
|
+
errors++;
|
|
9248
|
+
}
|
|
9249
|
+
if (data9.length < 1) {
|
|
9250
|
+
const err25 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9251
|
+
if (vErrors === null) {
|
|
9252
|
+
vErrors = [err25];
|
|
9253
|
+
} else {
|
|
9254
|
+
vErrors.push(err25);
|
|
9255
|
+
}
|
|
9256
|
+
errors++;
|
|
9257
|
+
}
|
|
9258
|
+
const len2 = data9.length;
|
|
9259
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
9260
|
+
let data10 = data9[i2];
|
|
9261
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
9262
|
+
if (data10.label === void 0) {
|
|
9263
|
+
const err26 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
|
|
9264
|
+
if (vErrors === null) {
|
|
9265
|
+
vErrors = [err26];
|
|
9266
|
+
} else {
|
|
9267
|
+
vErrors.push(err26);
|
|
9268
|
+
}
|
|
9269
|
+
errors++;
|
|
9270
|
+
}
|
|
9271
|
+
if (data10.value === void 0) {
|
|
9272
|
+
const err27 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
9273
|
+
if (vErrors === null) {
|
|
9274
|
+
vErrors = [err27];
|
|
9275
|
+
} else {
|
|
9276
|
+
vErrors.push(err27);
|
|
9277
|
+
}
|
|
9278
|
+
errors++;
|
|
9279
|
+
}
|
|
9280
|
+
for (const key3 in data10) {
|
|
9281
|
+
if (!(key3 === "label" || key3 === "value")) {
|
|
9282
|
+
const err28 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
9283
|
+
if (vErrors === null) {
|
|
9284
|
+
vErrors = [err28];
|
|
9285
|
+
} else {
|
|
9286
|
+
vErrors.push(err28);
|
|
9287
|
+
}
|
|
9288
|
+
errors++;
|
|
9289
|
+
}
|
|
9290
|
+
}
|
|
9291
|
+
if (data10.label !== void 0) {
|
|
9292
|
+
let data11 = data10.label;
|
|
9293
|
+
if (typeof data11 === "string") {
|
|
9294
|
+
if (func1(data11) > 20) {
|
|
9295
|
+
const err29 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
|
|
9296
|
+
if (vErrors === null) {
|
|
9297
|
+
vErrors = [err29];
|
|
9298
|
+
} else {
|
|
9299
|
+
vErrors.push(err29);
|
|
9300
|
+
}
|
|
9301
|
+
errors++;
|
|
9302
|
+
}
|
|
9303
|
+
if (func1(data11) < 1) {
|
|
9304
|
+
const err30 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
9305
|
+
if (vErrors === null) {
|
|
9306
|
+
vErrors = [err30];
|
|
9307
|
+
} else {
|
|
9308
|
+
vErrors.push(err30);
|
|
9309
|
+
}
|
|
9310
|
+
errors++;
|
|
9311
|
+
}
|
|
9312
|
+
} else {
|
|
9313
|
+
const err31 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9314
|
+
if (vErrors === null) {
|
|
9315
|
+
vErrors = [err31];
|
|
9316
|
+
} else {
|
|
9317
|
+
vErrors.push(err31);
|
|
9318
|
+
}
|
|
9319
|
+
errors++;
|
|
9320
|
+
}
|
|
9321
|
+
}
|
|
9322
|
+
if (data10.value !== void 0) {
|
|
9323
|
+
let data12 = data10.value;
|
|
9324
|
+
if (typeof data12 == "number") {
|
|
9325
|
+
if (data12 <= 0 || isNaN(data12)) {
|
|
9326
|
+
const err32 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
|
|
9327
|
+
if (vErrors === null) {
|
|
9328
|
+
vErrors = [err32];
|
|
9329
|
+
} else {
|
|
9330
|
+
vErrors.push(err32);
|
|
9331
|
+
}
|
|
9332
|
+
errors++;
|
|
9333
|
+
}
|
|
9334
|
+
} else {
|
|
9335
|
+
const err33 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
9336
|
+
if (vErrors === null) {
|
|
9337
|
+
vErrors = [err33];
|
|
9338
|
+
} else {
|
|
9339
|
+
vErrors.push(err33);
|
|
9340
|
+
}
|
|
9341
|
+
errors++;
|
|
9342
|
+
}
|
|
9343
|
+
}
|
|
9344
|
+
} else {
|
|
9345
|
+
const err34 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9346
|
+
if (vErrors === null) {
|
|
9347
|
+
vErrors = [err34];
|
|
9348
|
+
} else {
|
|
9349
|
+
vErrors.push(err34);
|
|
9350
|
+
}
|
|
9351
|
+
errors++;
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
} else {
|
|
9355
|
+
const err35 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
9356
|
+
if (vErrors === null) {
|
|
9357
|
+
vErrors = [err35];
|
|
9358
|
+
} else {
|
|
9359
|
+
vErrors.push(err35);
|
|
9360
|
+
}
|
|
9361
|
+
errors++;
|
|
9362
|
+
}
|
|
9363
|
+
}
|
|
9364
|
+
} else {
|
|
9365
|
+
const err36 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9366
|
+
if (vErrors === null) {
|
|
9367
|
+
vErrors = [err36];
|
|
9368
|
+
} else {
|
|
9369
|
+
vErrors.push(err36);
|
|
9370
|
+
}
|
|
9371
|
+
errors++;
|
|
9372
|
+
}
|
|
9373
|
+
var _valid0 = _errs20 === errors;
|
|
9374
|
+
if (_valid0 && valid0) {
|
|
9375
|
+
valid0 = false;
|
|
9376
|
+
passing0 = [passing0, 1];
|
|
9377
|
+
} else {
|
|
9378
|
+
if (_valid0) {
|
|
9379
|
+
valid0 = true;
|
|
9380
|
+
passing0 = 1;
|
|
9381
|
+
if (props0 !== true) {
|
|
9382
|
+
props0 = true;
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
9385
|
+
}
|
|
9386
|
+
if (!valid0) {
|
|
9387
|
+
const err37 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
9388
|
+
if (vErrors === null) {
|
|
9389
|
+
vErrors = [err37];
|
|
9390
|
+
} else {
|
|
9391
|
+
vErrors.push(err37);
|
|
9392
|
+
}
|
|
9393
|
+
errors++;
|
|
9394
|
+
} else {
|
|
9395
|
+
errors = _errs0;
|
|
9396
|
+
if (vErrors !== null) {
|
|
9397
|
+
if (_errs0) {
|
|
9398
|
+
vErrors.length = _errs0;
|
|
9399
|
+
} else {
|
|
9400
|
+
vErrors = null;
|
|
9401
|
+
}
|
|
9402
|
+
}
|
|
9403
|
+
}
|
|
9404
|
+
validate150.errors = vErrors;
|
|
9405
|
+
evaluated0.props = props0;
|
|
9406
|
+
return errors === 0;
|
|
9407
|
+
}
|
|
9408
|
+
validate150.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
9409
|
+
function validate149(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9410
|
+
let vErrors = null;
|
|
9411
|
+
let errors = 0;
|
|
9412
|
+
const evaluated0 = validate149.evaluated;
|
|
9413
|
+
if (evaluated0.dynamicProps) {
|
|
9414
|
+
evaluated0.props = void 0;
|
|
9415
|
+
}
|
|
9416
|
+
if (evaluated0.dynamicItems) {
|
|
9417
|
+
evaluated0.items = void 0;
|
|
9418
|
+
}
|
|
9419
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9420
|
+
if (data.type === void 0) {
|
|
9421
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
9422
|
+
if (vErrors === null) {
|
|
9423
|
+
vErrors = [err0];
|
|
9424
|
+
} else {
|
|
9425
|
+
vErrors.push(err0);
|
|
9426
|
+
}
|
|
9427
|
+
errors++;
|
|
9428
|
+
}
|
|
9429
|
+
if (data.title === void 0) {
|
|
9430
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
9431
|
+
if (vErrors === null) {
|
|
9432
|
+
vErrors = [err1];
|
|
9433
|
+
} else {
|
|
9434
|
+
vErrors.push(err1);
|
|
9435
|
+
}
|
|
9436
|
+
errors++;
|
|
9437
|
+
}
|
|
9438
|
+
if (data.chart === void 0) {
|
|
9439
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "chart" }, message: "must have required property 'chart'" };
|
|
9440
|
+
if (vErrors === null) {
|
|
9441
|
+
vErrors = [err2];
|
|
9442
|
+
} else {
|
|
9443
|
+
vErrors.push(err2);
|
|
8643
9444
|
}
|
|
8644
9445
|
errors++;
|
|
8645
9446
|
}
|
|
8646
9447
|
for (const key0 in data) {
|
|
8647
|
-
if (!(key0 === "type" || key0 === "
|
|
8648
|
-
const
|
|
9448
|
+
if (!(key0 === "type" || key0 === "block_id" || key0 === "title" || key0 === "chart")) {
|
|
9449
|
+
const err3 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8649
9450
|
if (vErrors === null) {
|
|
8650
|
-
vErrors = [
|
|
9451
|
+
vErrors = [err3];
|
|
8651
9452
|
} else {
|
|
8652
|
-
vErrors.push(
|
|
9453
|
+
vErrors.push(err3);
|
|
8653
9454
|
}
|
|
8654
9455
|
errors++;
|
|
8655
9456
|
}
|
|
8656
9457
|
}
|
|
8657
9458
|
if (data.type !== void 0) {
|
|
8658
|
-
if ("
|
|
8659
|
-
const
|
|
9459
|
+
if ("data_visualization" !== data.type) {
|
|
9460
|
+
const err4 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/const", keyword: "const", params: { allowedValue: "data_visualization" }, message: "must be equal to constant" };
|
|
8660
9461
|
if (vErrors === null) {
|
|
8661
|
-
vErrors = [
|
|
9462
|
+
vErrors = [err4];
|
|
8662
9463
|
} else {
|
|
8663
|
-
vErrors.push(
|
|
9464
|
+
vErrors.push(err4);
|
|
8664
9465
|
}
|
|
8665
9466
|
errors++;
|
|
8666
9467
|
}
|
|
8667
9468
|
}
|
|
8668
|
-
if (data.
|
|
8669
|
-
let data1 = data.
|
|
8670
|
-
if (
|
|
8671
|
-
if (data1
|
|
8672
|
-
const
|
|
9469
|
+
if (data.block_id !== void 0) {
|
|
9470
|
+
let data1 = data.block_id;
|
|
9471
|
+
if (typeof data1 === "string") {
|
|
9472
|
+
if (func1(data1) > 255) {
|
|
9473
|
+
const err5 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" };
|
|
8673
9474
|
if (vErrors === null) {
|
|
8674
|
-
vErrors = [
|
|
9475
|
+
vErrors = [err5];
|
|
8675
9476
|
} else {
|
|
8676
|
-
vErrors.push(
|
|
9477
|
+
vErrors.push(err5);
|
|
8677
9478
|
}
|
|
8678
9479
|
errors++;
|
|
8679
9480
|
}
|
|
8680
|
-
if (data1
|
|
8681
|
-
const
|
|
9481
|
+
if (func1(data1) < 1) {
|
|
9482
|
+
const err6 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8682
9483
|
if (vErrors === null) {
|
|
8683
|
-
vErrors = [
|
|
9484
|
+
vErrors = [err6];
|
|
8684
9485
|
} else {
|
|
8685
|
-
vErrors.push(
|
|
9486
|
+
vErrors.push(err6);
|
|
8686
9487
|
}
|
|
8687
9488
|
errors++;
|
|
8688
9489
|
}
|
|
8689
|
-
const len0 = data1.length;
|
|
8690
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
8691
|
-
if (!validate144(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
8692
|
-
vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
|
|
8693
|
-
errors = vErrors.length;
|
|
8694
|
-
}
|
|
8695
|
-
}
|
|
8696
9490
|
} else {
|
|
8697
|
-
const
|
|
9491
|
+
const err7 = { instancePath: instancePath + "/block_id", schemaPath: "#/$defs/block_id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8698
9492
|
if (vErrors === null) {
|
|
8699
|
-
vErrors = [
|
|
9493
|
+
vErrors = [err7];
|
|
8700
9494
|
} else {
|
|
8701
|
-
vErrors.push(
|
|
9495
|
+
vErrors.push(err7);
|
|
8702
9496
|
}
|
|
8703
9497
|
errors++;
|
|
8704
9498
|
}
|
|
8705
9499
|
}
|
|
8706
|
-
if (data.
|
|
8707
|
-
let
|
|
8708
|
-
if (typeof
|
|
8709
|
-
if (func1(
|
|
8710
|
-
const
|
|
9500
|
+
if (data.title !== void 0) {
|
|
9501
|
+
let data2 = data.title;
|
|
9502
|
+
if (typeof data2 === "string") {
|
|
9503
|
+
if (func1(data2) > 50) {
|
|
9504
|
+
const err8 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
|
|
8711
9505
|
if (vErrors === null) {
|
|
8712
|
-
vErrors = [
|
|
9506
|
+
vErrors = [err8];
|
|
8713
9507
|
} else {
|
|
8714
|
-
vErrors.push(
|
|
9508
|
+
vErrors.push(err8);
|
|
8715
9509
|
}
|
|
8716
9510
|
errors++;
|
|
8717
9511
|
}
|
|
8718
|
-
if (func1(
|
|
8719
|
-
const
|
|
9512
|
+
if (func1(data2) < 1) {
|
|
9513
|
+
const err9 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8720
9514
|
if (vErrors === null) {
|
|
8721
|
-
vErrors = [
|
|
9515
|
+
vErrors = [err9];
|
|
8722
9516
|
} else {
|
|
8723
|
-
vErrors.push(
|
|
9517
|
+
vErrors.push(err9);
|
|
8724
9518
|
}
|
|
8725
9519
|
errors++;
|
|
8726
9520
|
}
|
|
8727
9521
|
} else {
|
|
8728
|
-
const
|
|
9522
|
+
const err10 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8729
9523
|
if (vErrors === null) {
|
|
8730
|
-
vErrors = [
|
|
9524
|
+
vErrors = [err10];
|
|
8731
9525
|
} else {
|
|
8732
|
-
vErrors.push(
|
|
9526
|
+
vErrors.push(err10);
|
|
8733
9527
|
}
|
|
8734
9528
|
errors++;
|
|
8735
9529
|
}
|
|
8736
9530
|
}
|
|
9531
|
+
if (data.chart !== void 0) {
|
|
9532
|
+
if (!validate150(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors })) {
|
|
9533
|
+
vErrors = vErrors === null ? validate150.errors : vErrors.concat(validate150.errors);
|
|
9534
|
+
errors = vErrors.length;
|
|
9535
|
+
}
|
|
9536
|
+
}
|
|
8737
9537
|
} else {
|
|
8738
|
-
const
|
|
9538
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8739
9539
|
if (vErrors === null) {
|
|
8740
|
-
vErrors = [
|
|
9540
|
+
vErrors = [err11];
|
|
8741
9541
|
} else {
|
|
8742
|
-
vErrors.push(
|
|
9542
|
+
vErrors.push(err11);
|
|
8743
9543
|
}
|
|
8744
9544
|
errors++;
|
|
8745
9545
|
}
|
|
8746
|
-
|
|
9546
|
+
validate149.errors = vErrors;
|
|
8747
9547
|
return errors === 0;
|
|
8748
9548
|
}
|
|
8749
|
-
|
|
8750
|
-
function
|
|
9549
|
+
validate149.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9550
|
+
function validate155(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8751
9551
|
let vErrors = null;
|
|
8752
9552
|
let errors = 0;
|
|
8753
|
-
const evaluated0 =
|
|
9553
|
+
const evaluated0 = validate155.evaluated;
|
|
8754
9554
|
if (evaluated0.dynamicProps) {
|
|
8755
9555
|
evaluated0.props = void 0;
|
|
8756
9556
|
}
|
|
@@ -8829,14 +9629,14 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8829
9629
|
}
|
|
8830
9630
|
errors++;
|
|
8831
9631
|
}
|
|
8832
|
-
|
|
9632
|
+
validate155.errors = vErrors;
|
|
8833
9633
|
return errors === 0;
|
|
8834
9634
|
}
|
|
8835
|
-
|
|
8836
|
-
function
|
|
9635
|
+
validate155.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9636
|
+
function validate157(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8837
9637
|
let vErrors = null;
|
|
8838
9638
|
let errors = 0;
|
|
8839
|
-
const evaluated0 =
|
|
9639
|
+
const evaluated0 = validate157.evaluated;
|
|
8840
9640
|
if (evaluated0.dynamicProps) {
|
|
8841
9641
|
evaluated0.props = void 0;
|
|
8842
9642
|
}
|
|
@@ -8966,14 +9766,14 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8966
9766
|
}
|
|
8967
9767
|
errors++;
|
|
8968
9768
|
}
|
|
8969
|
-
|
|
9769
|
+
validate157.errors = vErrors;
|
|
8970
9770
|
return errors === 0;
|
|
8971
9771
|
}
|
|
8972
|
-
|
|
8973
|
-
function
|
|
9772
|
+
validate157.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9773
|
+
function validate159(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8974
9774
|
let vErrors = null;
|
|
8975
9775
|
let errors = 0;
|
|
8976
|
-
const evaluated0 =
|
|
9776
|
+
const evaluated0 = validate159.evaluated;
|
|
8977
9777
|
if (evaluated0.dynamicProps) {
|
|
8978
9778
|
evaluated0.props = void 0;
|
|
8979
9779
|
}
|
|
@@ -9204,14 +10004,14 @@ function validate153(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9204
10004
|
}
|
|
9205
10005
|
errors++;
|
|
9206
10006
|
}
|
|
9207
|
-
|
|
10007
|
+
validate159.errors = vErrors;
|
|
9208
10008
|
return errors === 0;
|
|
9209
10009
|
}
|
|
9210
|
-
|
|
9211
|
-
function
|
|
10010
|
+
validate159.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10011
|
+
function validate161(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9212
10012
|
let vErrors = null;
|
|
9213
10013
|
let errors = 0;
|
|
9214
|
-
const evaluated0 =
|
|
10014
|
+
const evaluated0 = validate161.evaluated;
|
|
9215
10015
|
if (evaluated0.dynamicProps) {
|
|
9216
10016
|
evaluated0.props = void 0;
|
|
9217
10017
|
}
|
|
@@ -9792,16 +10592,16 @@ function validate155(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9792
10592
|
}
|
|
9793
10593
|
errors++;
|
|
9794
10594
|
}
|
|
9795
|
-
|
|
10595
|
+
validate161.errors = vErrors;
|
|
9796
10596
|
return errors === 0;
|
|
9797
10597
|
}
|
|
9798
|
-
|
|
9799
|
-
var
|
|
9800
|
-
var
|
|
9801
|
-
function
|
|
10598
|
+
validate161.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10599
|
+
var schema143 = { "description": "Must be used inside an input block.", "type": "object", "additionalProperties": false, "required": ["type"], "properties": { "type": { "const": "plain_text_input" }, "action_id": { "$ref": "#/$defs/action_id" }, "initial_value": { "type": "string" }, "multiline": { "type": "boolean" }, "min_length": { "type": "integer", "minimum": 0, "maximum": 3e3 }, "max_length": { "type": "integer", "minimum": 1, "maximum": 3e3 }, "dispatch_action_config": { "$ref": "#/$defs/dispatch_action_config_object" }, "focus_on_load": { "type": "boolean" }, "placeholder": { "$ref": "#/$defs/placeholder_object" } } };
|
|
10600
|
+
var schema145 = { "type": "object", "additionalProperties": false, "required": ["trigger_actions_on"], "properties": { "trigger_actions_on": { "type": "array", "minItems": 1, "maxItems": 2, "uniqueItems": true, "items": { "enum": ["on_enter_pressed", "on_character_entered"] } } } };
|
|
10601
|
+
function validate165(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9802
10602
|
let vErrors = null;
|
|
9803
10603
|
let errors = 0;
|
|
9804
|
-
const evaluated0 =
|
|
10604
|
+
const evaluated0 = validate165.evaluated;
|
|
9805
10605
|
if (evaluated0.dynamicProps) {
|
|
9806
10606
|
evaluated0.props = void 0;
|
|
9807
10607
|
}
|
|
@@ -9819,7 +10619,7 @@ function validate159(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9819
10619
|
errors++;
|
|
9820
10620
|
}
|
|
9821
10621
|
for (const key0 in data) {
|
|
9822
|
-
if (!func81.call(
|
|
10622
|
+
if (!func81.call(schema143.properties, key0)) {
|
|
9823
10623
|
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
9824
10624
|
if (vErrors === null) {
|
|
9825
10625
|
vErrors = [err1];
|
|
@@ -10005,7 +10805,7 @@ function validate159(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10005
10805
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
10006
10806
|
let data8 = data7[i0];
|
|
10007
10807
|
if (!(data8 === "on_enter_pressed" || data8 === "on_character_entered")) {
|
|
10008
|
-
const err18 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues:
|
|
10808
|
+
const err18 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues: schema145.properties.trigger_actions_on.items.enum }, message: "must be equal to one of the allowed values" };
|
|
10009
10809
|
if (vErrors === null) {
|
|
10010
10810
|
vErrors = [err18];
|
|
10011
10811
|
} else {
|
|
@@ -10078,14 +10878,14 @@ function validate159(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10078
10878
|
}
|
|
10079
10879
|
errors++;
|
|
10080
10880
|
}
|
|
10081
|
-
|
|
10881
|
+
validate165.errors = vErrors;
|
|
10082
10882
|
return errors === 0;
|
|
10083
10883
|
}
|
|
10084
|
-
|
|
10085
|
-
function
|
|
10884
|
+
validate165.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10885
|
+
function validate168(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10086
10886
|
let vErrors = null;
|
|
10087
10887
|
let errors = 0;
|
|
10088
|
-
const evaluated0 =
|
|
10888
|
+
const evaluated0 = validate168.evaluated;
|
|
10089
10889
|
if (evaluated0.dynamicProps) {
|
|
10090
10890
|
evaluated0.props = void 0;
|
|
10091
10891
|
}
|
|
@@ -10214,7 +11014,7 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10214
11014
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
10215
11015
|
let data5 = data4[i0];
|
|
10216
11016
|
if (!(data5 === "on_enter_pressed" || data5 === "on_character_entered")) {
|
|
10217
|
-
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues:
|
|
11017
|
+
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues: schema145.properties.trigger_actions_on.items.enum }, message: "must be equal to one of the allowed values" };
|
|
10218
11018
|
if (vErrors === null) {
|
|
10219
11019
|
vErrors = [err11];
|
|
10220
11020
|
} else {
|
|
@@ -10287,14 +11087,14 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10287
11087
|
}
|
|
10288
11088
|
errors++;
|
|
10289
11089
|
}
|
|
10290
|
-
|
|
11090
|
+
validate168.errors = vErrors;
|
|
10291
11091
|
return errors === 0;
|
|
10292
11092
|
}
|
|
10293
|
-
|
|
10294
|
-
function
|
|
11093
|
+
validate168.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11094
|
+
function validate171(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10295
11095
|
let vErrors = null;
|
|
10296
11096
|
let errors = 0;
|
|
10297
|
-
const evaluated0 =
|
|
11097
|
+
const evaluated0 = validate171.evaluated;
|
|
10298
11098
|
if (evaluated0.dynamicProps) {
|
|
10299
11099
|
evaluated0.props = void 0;
|
|
10300
11100
|
}
|
|
@@ -10423,7 +11223,7 @@ function validate165(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10423
11223
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
10424
11224
|
let data5 = data4[i0];
|
|
10425
11225
|
if (!(data5 === "on_enter_pressed" || data5 === "on_character_entered")) {
|
|
10426
|
-
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues:
|
|
11226
|
+
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues: schema145.properties.trigger_actions_on.items.enum }, message: "must be equal to one of the allowed values" };
|
|
10427
11227
|
if (vErrors === null) {
|
|
10428
11228
|
vErrors = [err11];
|
|
10429
11229
|
} else {
|
|
@@ -10496,16 +11296,16 @@ function validate165(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10496
11296
|
}
|
|
10497
11297
|
errors++;
|
|
10498
11298
|
}
|
|
10499
|
-
|
|
11299
|
+
validate171.errors = vErrors;
|
|
10500
11300
|
return errors === 0;
|
|
10501
11301
|
}
|
|
10502
|
-
|
|
10503
|
-
var
|
|
11302
|
+
validate171.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11303
|
+
var schema152 = { "description": "Must be used inside an input block. min_value must not exceed max_value.", "type": "object", "additionalProperties": false, "required": ["type", "is_decimal_allowed"], "properties": { "type": { "const": "number_input" }, "is_decimal_allowed": { "type": "boolean" }, "action_id": { "$ref": "#/$defs/action_id" }, "initial_value": { "type": "string", "pattern": "^-?[0-9]+(\\.[0-9]+)?$" }, "min_value": { "type": "string", "pattern": "^-?[0-9]+(\\.[0-9]+)?$" }, "max_value": { "type": "string", "pattern": "^-?[0-9]+(\\.[0-9]+)?$" }, "dispatch_action_config": { "$ref": "#/$defs/dispatch_action_config_object" }, "focus_on_load": { "type": "boolean" }, "placeholder": { "$ref": "#/$defs/placeholder_object" } } };
|
|
10504
11304
|
var pattern11 = new RegExp("^-?[0-9]+(\\.[0-9]+)?$", "u");
|
|
10505
|
-
function
|
|
11305
|
+
function validate174(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10506
11306
|
let vErrors = null;
|
|
10507
11307
|
let errors = 0;
|
|
10508
|
-
const evaluated0 =
|
|
11308
|
+
const evaluated0 = validate174.evaluated;
|
|
10509
11309
|
if (evaluated0.dynamicProps) {
|
|
10510
11310
|
evaluated0.props = void 0;
|
|
10511
11311
|
}
|
|
@@ -10532,7 +11332,7 @@ function validate168(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10532
11332
|
errors++;
|
|
10533
11333
|
}
|
|
10534
11334
|
for (const key0 in data) {
|
|
10535
|
-
if (!func81.call(
|
|
11335
|
+
if (!func81.call(schema152.properties, key0)) {
|
|
10536
11336
|
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
10537
11337
|
if (vErrors === null) {
|
|
10538
11338
|
vErrors = [err2];
|
|
@@ -10709,7 +11509,7 @@ function validate168(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10709
11509
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
10710
11510
|
let data8 = data7[i0];
|
|
10711
11511
|
if (!(data8 === "on_enter_pressed" || data8 === "on_character_entered")) {
|
|
10712
|
-
const err18 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues:
|
|
11512
|
+
const err18 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues: schema145.properties.trigger_actions_on.items.enum }, message: "must be equal to one of the allowed values" };
|
|
10713
11513
|
if (vErrors === null) {
|
|
10714
11514
|
vErrors = [err18];
|
|
10715
11515
|
} else {
|
|
@@ -10782,14 +11582,14 @@ function validate168(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10782
11582
|
}
|
|
10783
11583
|
errors++;
|
|
10784
11584
|
}
|
|
10785
|
-
|
|
11585
|
+
validate174.errors = vErrors;
|
|
10786
11586
|
return errors === 0;
|
|
10787
11587
|
}
|
|
10788
|
-
|
|
10789
|
-
function
|
|
11588
|
+
validate174.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11589
|
+
function validate197(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10790
11590
|
let vErrors = null;
|
|
10791
11591
|
let errors = 0;
|
|
10792
|
-
const evaluated0 =
|
|
11592
|
+
const evaluated0 = validate197.evaluated;
|
|
10793
11593
|
if (evaluated0.dynamicProps) {
|
|
10794
11594
|
evaluated0.props = void 0;
|
|
10795
11595
|
}
|
|
@@ -10978,14 +11778,14 @@ function validate191(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10978
11778
|
}
|
|
10979
11779
|
errors++;
|
|
10980
11780
|
}
|
|
10981
|
-
|
|
11781
|
+
validate197.errors = vErrors;
|
|
10982
11782
|
return errors === 0;
|
|
10983
11783
|
}
|
|
10984
|
-
|
|
10985
|
-
function
|
|
11784
|
+
validate197.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11785
|
+
function validate199(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10986
11786
|
let vErrors = null;
|
|
10987
11787
|
let errors = 0;
|
|
10988
|
-
const evaluated0 =
|
|
11788
|
+
const evaluated0 = validate199.evaluated;
|
|
10989
11789
|
if (evaluated0.dynamicProps) {
|
|
10990
11790
|
evaluated0.props = void 0;
|
|
10991
11791
|
}
|
|
@@ -11207,14 +12007,14 @@ function validate193(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11207
12007
|
}
|
|
11208
12008
|
errors++;
|
|
11209
12009
|
}
|
|
11210
|
-
|
|
12010
|
+
validate199.errors = vErrors;
|
|
11211
12011
|
return errors === 0;
|
|
11212
12012
|
}
|
|
11213
|
-
|
|
11214
|
-
function
|
|
12013
|
+
validate199.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12014
|
+
function validate201(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11215
12015
|
let vErrors = null;
|
|
11216
12016
|
let errors = 0;
|
|
11217
|
-
const evaluated0 =
|
|
12017
|
+
const evaluated0 = validate201.evaluated;
|
|
11218
12018
|
if (evaluated0.dynamicProps) {
|
|
11219
12019
|
evaluated0.props = void 0;
|
|
11220
12020
|
}
|
|
@@ -11414,15 +12214,15 @@ function validate195(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11414
12214
|
}
|
|
11415
12215
|
errors++;
|
|
11416
12216
|
}
|
|
11417
|
-
|
|
12217
|
+
validate201.errors = vErrors;
|
|
11418
12218
|
return errors === 0;
|
|
11419
12219
|
}
|
|
11420
|
-
|
|
12220
|
+
validate201.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11421
12221
|
var pattern15 = new RegExp("^S[A-Z0-9]+$", "u");
|
|
11422
|
-
function
|
|
12222
|
+
function validate203(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11423
12223
|
let vErrors = null;
|
|
11424
12224
|
let errors = 0;
|
|
11425
|
-
const evaluated0 =
|
|
12225
|
+
const evaluated0 = validate203.evaluated;
|
|
11426
12226
|
if (evaluated0.dynamicProps) {
|
|
11427
12227
|
evaluated0.props = void 0;
|
|
11428
12228
|
}
|
|
@@ -11622,15 +12422,15 @@ function validate197(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11622
12422
|
}
|
|
11623
12423
|
errors++;
|
|
11624
12424
|
}
|
|
11625
|
-
|
|
12425
|
+
validate203.errors = vErrors;
|
|
11626
12426
|
return errors === 0;
|
|
11627
12427
|
}
|
|
11628
|
-
|
|
12428
|
+
validate203.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11629
12429
|
var pattern16 = new RegExp("^T[A-Z0-9]+$", "u");
|
|
11630
|
-
function
|
|
12430
|
+
function validate205(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11631
12431
|
let vErrors = null;
|
|
11632
12432
|
let errors = 0;
|
|
11633
|
-
const evaluated0 =
|
|
12433
|
+
const evaluated0 = validate205.evaluated;
|
|
11634
12434
|
if (evaluated0.dynamicProps) {
|
|
11635
12435
|
evaluated0.props = void 0;
|
|
11636
12436
|
}
|
|
@@ -11830,14 +12630,14 @@ function validate199(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11830
12630
|
}
|
|
11831
12631
|
errors++;
|
|
11832
12632
|
}
|
|
11833
|
-
|
|
12633
|
+
validate205.errors = vErrors;
|
|
11834
12634
|
return errors === 0;
|
|
11835
12635
|
}
|
|
11836
|
-
|
|
11837
|
-
function
|
|
12636
|
+
validate205.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12637
|
+
function validate207(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11838
12638
|
let vErrors = null;
|
|
11839
12639
|
let errors = 0;
|
|
11840
|
-
const evaluated0 =
|
|
12640
|
+
const evaluated0 = validate207.evaluated;
|
|
11841
12641
|
if (evaluated0.dynamicProps) {
|
|
11842
12642
|
evaluated0.props = void 0;
|
|
11843
12643
|
}
|
|
@@ -12037,14 +12837,14 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12037
12837
|
}
|
|
12038
12838
|
errors++;
|
|
12039
12839
|
}
|
|
12040
|
-
|
|
12840
|
+
validate207.errors = vErrors;
|
|
12041
12841
|
return errors === 0;
|
|
12042
12842
|
}
|
|
12043
|
-
|
|
12044
|
-
function
|
|
12843
|
+
validate207.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12844
|
+
function validate209(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12045
12845
|
let vErrors = null;
|
|
12046
12846
|
let errors = 0;
|
|
12047
|
-
const evaluated0 =
|
|
12847
|
+
const evaluated0 = validate209.evaluated;
|
|
12048
12848
|
if (evaluated0.dynamicProps) {
|
|
12049
12849
|
evaluated0.props = void 0;
|
|
12050
12850
|
}
|
|
@@ -12298,15 +13098,15 @@ function validate203(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12298
13098
|
}
|
|
12299
13099
|
errors++;
|
|
12300
13100
|
}
|
|
12301
|
-
|
|
13101
|
+
validate209.errors = vErrors;
|
|
12302
13102
|
return errors === 0;
|
|
12303
13103
|
}
|
|
12304
|
-
|
|
12305
|
-
var
|
|
12306
|
-
function
|
|
13104
|
+
validate209.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13105
|
+
var schema175 = { "type": "object", "additionalProperties": false, "required": ["type", "range"], "properties": { "type": { "const": "broadcast" }, "range": { "enum": ["here", "channel", "everyone"] }, "style": { "$ref": "#/$defs/rich_text_style_object" } } };
|
|
13106
|
+
function validate211(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12307
13107
|
let vErrors = null;
|
|
12308
13108
|
let errors = 0;
|
|
12309
|
-
const evaluated0 =
|
|
13109
|
+
const evaluated0 = validate211.evaluated;
|
|
12310
13110
|
if (evaluated0.dynamicProps) {
|
|
12311
13111
|
evaluated0.props = void 0;
|
|
12312
13112
|
}
|
|
@@ -12357,7 +13157,7 @@ function validate205(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12357
13157
|
if (data.range !== void 0) {
|
|
12358
13158
|
let data1 = data.range;
|
|
12359
13159
|
if (!(data1 === "here" || data1 === "channel" || data1 === "everyone")) {
|
|
12360
|
-
const err4 = { instancePath: instancePath + "/range", schemaPath: "#/properties/range/enum", keyword: "enum", params: { allowedValues:
|
|
13160
|
+
const err4 = { instancePath: instancePath + "/range", schemaPath: "#/properties/range/enum", keyword: "enum", params: { allowedValues: schema175.properties.range.enum }, message: "must be equal to one of the allowed values" };
|
|
12361
13161
|
if (vErrors === null) {
|
|
12362
13162
|
vErrors = [err4];
|
|
12363
13163
|
} else {
|
|
@@ -12496,15 +13296,15 @@ function validate205(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12496
13296
|
}
|
|
12497
13297
|
errors++;
|
|
12498
13298
|
}
|
|
12499
|
-
|
|
13299
|
+
validate211.errors = vErrors;
|
|
12500
13300
|
return errors === 0;
|
|
12501
13301
|
}
|
|
12502
|
-
|
|
13302
|
+
validate211.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12503
13303
|
var pattern18 = new RegExp("^#?[0-9a-fA-F]{6}$", "u");
|
|
12504
|
-
function
|
|
13304
|
+
function validate213(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12505
13305
|
let vErrors = null;
|
|
12506
13306
|
let errors = 0;
|
|
12507
|
-
const evaluated0 =
|
|
13307
|
+
const evaluated0 = validate213.evaluated;
|
|
12508
13308
|
if (evaluated0.dynamicProps) {
|
|
12509
13309
|
evaluated0.props = void 0;
|
|
12510
13310
|
}
|
|
@@ -12704,14 +13504,14 @@ function validate207(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12704
13504
|
}
|
|
12705
13505
|
errors++;
|
|
12706
13506
|
}
|
|
12707
|
-
|
|
13507
|
+
validate213.errors = vErrors;
|
|
12708
13508
|
return errors === 0;
|
|
12709
13509
|
}
|
|
12710
|
-
|
|
12711
|
-
function
|
|
13510
|
+
validate213.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13511
|
+
function validate215(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12712
13512
|
let vErrors = null;
|
|
12713
13513
|
let errors = 0;
|
|
12714
|
-
const evaluated0 =
|
|
13514
|
+
const evaluated0 = validate215.evaluated;
|
|
12715
13515
|
if (evaluated0.dynamicProps) {
|
|
12716
13516
|
evaluated0.props = void 0;
|
|
12717
13517
|
}
|
|
@@ -12976,14 +13776,14 @@ function validate209(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12976
13776
|
}
|
|
12977
13777
|
errors++;
|
|
12978
13778
|
}
|
|
12979
|
-
|
|
13779
|
+
validate215.errors = vErrors;
|
|
12980
13780
|
return errors === 0;
|
|
12981
13781
|
}
|
|
12982
|
-
|
|
12983
|
-
function
|
|
13782
|
+
validate215.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13783
|
+
function validate196(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12984
13784
|
let vErrors = null;
|
|
12985
13785
|
let errors = 0;
|
|
12986
|
-
const evaluated0 =
|
|
13786
|
+
const evaluated0 = validate196.evaluated;
|
|
12987
13787
|
if (evaluated0.dynamicProps) {
|
|
12988
13788
|
evaluated0.props = void 0;
|
|
12989
13789
|
}
|
|
@@ -12994,8 +13794,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12994
13794
|
let valid0 = false;
|
|
12995
13795
|
let passing0 = null;
|
|
12996
13796
|
const _errs1 = errors;
|
|
12997
|
-
if (!
|
|
12998
|
-
vErrors = vErrors === null ?
|
|
13797
|
+
if (!validate197(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13798
|
+
vErrors = vErrors === null ? validate197.errors : vErrors.concat(validate197.errors);
|
|
12999
13799
|
errors = vErrors.length;
|
|
13000
13800
|
}
|
|
13001
13801
|
var _valid0 = _errs1 === errors;
|
|
@@ -13005,8 +13805,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13005
13805
|
var props0 = true;
|
|
13006
13806
|
}
|
|
13007
13807
|
const _errs2 = errors;
|
|
13008
|
-
if (!
|
|
13009
|
-
vErrors = vErrors === null ?
|
|
13808
|
+
if (!validate199(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13809
|
+
vErrors = vErrors === null ? validate199.errors : vErrors.concat(validate199.errors);
|
|
13010
13810
|
errors = vErrors.length;
|
|
13011
13811
|
}
|
|
13012
13812
|
var _valid0 = _errs2 === errors;
|
|
@@ -13022,8 +13822,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13022
13822
|
}
|
|
13023
13823
|
}
|
|
13024
13824
|
const _errs3 = errors;
|
|
13025
|
-
if (!
|
|
13026
|
-
vErrors = vErrors === null ?
|
|
13825
|
+
if (!validate201(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13826
|
+
vErrors = vErrors === null ? validate201.errors : vErrors.concat(validate201.errors);
|
|
13027
13827
|
errors = vErrors.length;
|
|
13028
13828
|
}
|
|
13029
13829
|
var _valid0 = _errs3 === errors;
|
|
@@ -13039,8 +13839,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13039
13839
|
}
|
|
13040
13840
|
}
|
|
13041
13841
|
const _errs4 = errors;
|
|
13042
|
-
if (!
|
|
13043
|
-
vErrors = vErrors === null ?
|
|
13842
|
+
if (!validate203(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13843
|
+
vErrors = vErrors === null ? validate203.errors : vErrors.concat(validate203.errors);
|
|
13044
13844
|
errors = vErrors.length;
|
|
13045
13845
|
}
|
|
13046
13846
|
var _valid0 = _errs4 === errors;
|
|
@@ -13056,8 +13856,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13056
13856
|
}
|
|
13057
13857
|
}
|
|
13058
13858
|
const _errs5 = errors;
|
|
13059
|
-
if (!
|
|
13060
|
-
vErrors = vErrors === null ?
|
|
13859
|
+
if (!validate205(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13860
|
+
vErrors = vErrors === null ? validate205.errors : vErrors.concat(validate205.errors);
|
|
13061
13861
|
errors = vErrors.length;
|
|
13062
13862
|
}
|
|
13063
13863
|
var _valid0 = _errs5 === errors;
|
|
@@ -13073,8 +13873,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13073
13873
|
}
|
|
13074
13874
|
}
|
|
13075
13875
|
const _errs6 = errors;
|
|
13076
|
-
if (!
|
|
13077
|
-
vErrors = vErrors === null ?
|
|
13876
|
+
if (!validate207(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13877
|
+
vErrors = vErrors === null ? validate207.errors : vErrors.concat(validate207.errors);
|
|
13078
13878
|
errors = vErrors.length;
|
|
13079
13879
|
}
|
|
13080
13880
|
var _valid0 = _errs6 === errors;
|
|
@@ -13090,8 +13890,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13090
13890
|
}
|
|
13091
13891
|
}
|
|
13092
13892
|
const _errs7 = errors;
|
|
13093
|
-
if (!
|
|
13094
|
-
vErrors = vErrors === null ?
|
|
13893
|
+
if (!validate209(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13894
|
+
vErrors = vErrors === null ? validate209.errors : vErrors.concat(validate209.errors);
|
|
13095
13895
|
errors = vErrors.length;
|
|
13096
13896
|
}
|
|
13097
13897
|
var _valid0 = _errs7 === errors;
|
|
@@ -13107,8 +13907,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13107
13907
|
}
|
|
13108
13908
|
}
|
|
13109
13909
|
const _errs8 = errors;
|
|
13110
|
-
if (!
|
|
13111
|
-
vErrors = vErrors === null ?
|
|
13910
|
+
if (!validate211(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13911
|
+
vErrors = vErrors === null ? validate211.errors : vErrors.concat(validate211.errors);
|
|
13112
13912
|
errors = vErrors.length;
|
|
13113
13913
|
}
|
|
13114
13914
|
var _valid0 = _errs8 === errors;
|
|
@@ -13124,8 +13924,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13124
13924
|
}
|
|
13125
13925
|
}
|
|
13126
13926
|
const _errs9 = errors;
|
|
13127
|
-
if (!
|
|
13128
|
-
vErrors = vErrors === null ?
|
|
13927
|
+
if (!validate213(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13928
|
+
vErrors = vErrors === null ? validate213.errors : vErrors.concat(validate213.errors);
|
|
13129
13929
|
errors = vErrors.length;
|
|
13130
13930
|
}
|
|
13131
13931
|
var _valid0 = _errs9 === errors;
|
|
@@ -13141,8 +13941,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13141
13941
|
}
|
|
13142
13942
|
}
|
|
13143
13943
|
const _errs10 = errors;
|
|
13144
|
-
if (!
|
|
13145
|
-
vErrors = vErrors === null ?
|
|
13944
|
+
if (!validate215(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
13945
|
+
vErrors = vErrors === null ? validate215.errors : vErrors.concat(validate215.errors);
|
|
13146
13946
|
errors = vErrors.length;
|
|
13147
13947
|
}
|
|
13148
13948
|
var _valid0 = _errs10 === errors;
|
|
@@ -13184,15 +13984,15 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13184
13984
|
}
|
|
13185
13985
|
}
|
|
13186
13986
|
}
|
|
13187
|
-
|
|
13987
|
+
validate196.errors = vErrors;
|
|
13188
13988
|
evaluated0.props = props0;
|
|
13189
13989
|
return errors === 0;
|
|
13190
13990
|
}
|
|
13191
|
-
|
|
13192
|
-
function
|
|
13991
|
+
validate196.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13992
|
+
function validate195(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13193
13993
|
let vErrors = null;
|
|
13194
13994
|
let errors = 0;
|
|
13195
|
-
const evaluated0 =
|
|
13995
|
+
const evaluated0 = validate195.evaluated;
|
|
13196
13996
|
if (evaluated0.dynamicProps) {
|
|
13197
13997
|
evaluated0.props = void 0;
|
|
13198
13998
|
}
|
|
@@ -13245,8 +14045,8 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13245
14045
|
if (Array.isArray(data1)) {
|
|
13246
14046
|
const len0 = data1.length;
|
|
13247
14047
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
13248
|
-
if (!
|
|
13249
|
-
vErrors = vErrors === null ?
|
|
14048
|
+
if (!validate196(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
14049
|
+
vErrors = vErrors === null ? validate196.errors : vErrors.concat(validate196.errors);
|
|
13250
14050
|
errors = vErrors.length;
|
|
13251
14051
|
}
|
|
13252
14052
|
}
|
|
@@ -13269,15 +14069,15 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13269
14069
|
}
|
|
13270
14070
|
errors++;
|
|
13271
14071
|
}
|
|
13272
|
-
|
|
14072
|
+
validate195.errors = vErrors;
|
|
13273
14073
|
return errors === 0;
|
|
13274
14074
|
}
|
|
13275
|
-
|
|
13276
|
-
var
|
|
13277
|
-
function
|
|
14075
|
+
validate195.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14076
|
+
var schema181 = { "type": "object", "additionalProperties": false, "required": ["type", "style", "elements"], "properties": { "type": { "const": "rich_text_list" }, "style": { "enum": ["bullet", "ordered"] }, "elements": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/rich_text_section_element" } }, "indent": { "type": "integer", "minimum": 0 }, "offset": { "type": "integer", "minimum": 0 }, "border": { "type": "integer", "enum": [0, 1] } } };
|
|
14077
|
+
function validate219(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13278
14078
|
let vErrors = null;
|
|
13279
14079
|
let errors = 0;
|
|
13280
|
-
const evaluated0 =
|
|
14080
|
+
const evaluated0 = validate219.evaluated;
|
|
13281
14081
|
if (evaluated0.dynamicProps) {
|
|
13282
14082
|
evaluated0.props = void 0;
|
|
13283
14083
|
}
|
|
@@ -13337,7 +14137,7 @@ function validate213(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13337
14137
|
if (data.style !== void 0) {
|
|
13338
14138
|
let data1 = data.style;
|
|
13339
14139
|
if (!(data1 === "bullet" || data1 === "ordered")) {
|
|
13340
|
-
const err5 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
14140
|
+
const err5 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema181.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
13341
14141
|
if (vErrors === null) {
|
|
13342
14142
|
vErrors = [err5];
|
|
13343
14143
|
} else {
|
|
@@ -13360,8 +14160,8 @@ function validate213(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13360
14160
|
}
|
|
13361
14161
|
const len0 = data2.length;
|
|
13362
14162
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
13363
|
-
if (!
|
|
13364
|
-
vErrors = vErrors === null ?
|
|
14163
|
+
if (!validate195(data2[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data2, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
14164
|
+
vErrors = vErrors === null ? validate195.errors : vErrors.concat(validate195.errors);
|
|
13365
14165
|
errors = vErrors.length;
|
|
13366
14166
|
}
|
|
13367
14167
|
}
|
|
@@ -13433,7 +14233,7 @@ function validate213(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13433
14233
|
errors++;
|
|
13434
14234
|
}
|
|
13435
14235
|
if (!(data6 === 0 || data6 === 1)) {
|
|
13436
|
-
const err13 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues:
|
|
14236
|
+
const err13 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues: schema181.properties.border.enum }, message: "must be equal to one of the allowed values" };
|
|
13437
14237
|
if (vErrors === null) {
|
|
13438
14238
|
vErrors = [err13];
|
|
13439
14239
|
} else {
|
|
@@ -13451,15 +14251,15 @@ function validate213(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13451
14251
|
}
|
|
13452
14252
|
errors++;
|
|
13453
14253
|
}
|
|
13454
|
-
|
|
14254
|
+
validate219.errors = vErrors;
|
|
13455
14255
|
return errors === 0;
|
|
13456
14256
|
}
|
|
13457
|
-
|
|
13458
|
-
var
|
|
13459
|
-
function
|
|
14257
|
+
validate219.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14258
|
+
var schema182 = { "type": "object", "additionalProperties": false, "required": ["type", "elements"], "properties": { "type": { "const": "rich_text_preformatted" }, "elements": { "description": "Empty array is accepted by Slack (verified in Block Kit Builder 2026-04-16).", "type": "array", "items": { "$ref": "#/$defs/rich_text_leaf" } }, "border": { "type": "integer", "enum": [0, 1] }, "language": { "type": "string", "minLength": 1 } } };
|
|
14259
|
+
function validate222(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13460
14260
|
let vErrors = null;
|
|
13461
14261
|
let errors = 0;
|
|
13462
|
-
const evaluated0 =
|
|
14262
|
+
const evaluated0 = validate222.evaluated;
|
|
13463
14263
|
if (evaluated0.dynamicProps) {
|
|
13464
14264
|
evaluated0.props = void 0;
|
|
13465
14265
|
}
|
|
@@ -13512,8 +14312,8 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13512
14312
|
if (Array.isArray(data1)) {
|
|
13513
14313
|
const len0 = data1.length;
|
|
13514
14314
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
13515
|
-
if (!
|
|
13516
|
-
vErrors = vErrors === null ?
|
|
14315
|
+
if (!validate196(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
14316
|
+
vErrors = vErrors === null ? validate196.errors : vErrors.concat(validate196.errors);
|
|
13517
14317
|
errors = vErrors.length;
|
|
13518
14318
|
}
|
|
13519
14319
|
}
|
|
@@ -13539,7 +14339,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13539
14339
|
errors++;
|
|
13540
14340
|
}
|
|
13541
14341
|
if (!(data3 === 0 || data3 === 1)) {
|
|
13542
|
-
const err6 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues:
|
|
14342
|
+
const err6 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues: schema182.properties.border.enum }, message: "must be equal to one of the allowed values" };
|
|
13543
14343
|
if (vErrors === null) {
|
|
13544
14344
|
vErrors = [err6];
|
|
13545
14345
|
} else {
|
|
@@ -13579,15 +14379,15 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13579
14379
|
}
|
|
13580
14380
|
errors++;
|
|
13581
14381
|
}
|
|
13582
|
-
|
|
14382
|
+
validate222.errors = vErrors;
|
|
13583
14383
|
return errors === 0;
|
|
13584
14384
|
}
|
|
13585
|
-
|
|
13586
|
-
var
|
|
13587
|
-
function
|
|
14385
|
+
validate222.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14386
|
+
var schema183 = { "type": "object", "additionalProperties": false, "required": ["type", "elements"], "properties": { "type": { "const": "rich_text_quote" }, "elements": { "description": "Empty array is accepted by Slack (verified in Block Kit Builder 2026-04-16).", "type": "array", "items": { "$ref": "#/$defs/rich_text_leaf" } }, "border": { "type": "integer", "enum": [0, 1] } } };
|
|
14387
|
+
function validate225(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13588
14388
|
let vErrors = null;
|
|
13589
14389
|
let errors = 0;
|
|
13590
|
-
const evaluated0 =
|
|
14390
|
+
const evaluated0 = validate225.evaluated;
|
|
13591
14391
|
if (evaluated0.dynamicProps) {
|
|
13592
14392
|
evaluated0.props = void 0;
|
|
13593
14393
|
}
|
|
@@ -13640,8 +14440,8 @@ function validate219(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13640
14440
|
if (Array.isArray(data1)) {
|
|
13641
14441
|
const len0 = data1.length;
|
|
13642
14442
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
13643
|
-
if (!
|
|
13644
|
-
vErrors = vErrors === null ?
|
|
14443
|
+
if (!validate196(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
14444
|
+
vErrors = vErrors === null ? validate196.errors : vErrors.concat(validate196.errors);
|
|
13645
14445
|
errors = vErrors.length;
|
|
13646
14446
|
}
|
|
13647
14447
|
}
|
|
@@ -13667,7 +14467,7 @@ function validate219(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13667
14467
|
errors++;
|
|
13668
14468
|
}
|
|
13669
14469
|
if (!(data3 === 0 || data3 === 1)) {
|
|
13670
|
-
const err6 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues:
|
|
14470
|
+
const err6 = { instancePath: instancePath + "/border", schemaPath: "#/properties/border/enum", keyword: "enum", params: { allowedValues: schema183.properties.border.enum }, message: "must be equal to one of the allowed values" };
|
|
13671
14471
|
if (vErrors === null) {
|
|
13672
14472
|
vErrors = [err6];
|
|
13673
14473
|
} else {
|
|
@@ -13685,14 +14485,14 @@ function validate219(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13685
14485
|
}
|
|
13686
14486
|
errors++;
|
|
13687
14487
|
}
|
|
13688
|
-
|
|
14488
|
+
validate225.errors = vErrors;
|
|
13689
14489
|
return errors === 0;
|
|
13690
14490
|
}
|
|
13691
|
-
|
|
13692
|
-
function
|
|
14491
|
+
validate225.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14492
|
+
function validate194(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13693
14493
|
let vErrors = null;
|
|
13694
14494
|
let errors = 0;
|
|
13695
|
-
const evaluated0 =
|
|
14495
|
+
const evaluated0 = validate194.evaluated;
|
|
13696
14496
|
if (evaluated0.dynamicProps) {
|
|
13697
14497
|
evaluated0.props = void 0;
|
|
13698
14498
|
}
|
|
@@ -13703,8 +14503,8 @@ function validate188(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13703
14503
|
let valid0 = false;
|
|
13704
14504
|
let passing0 = null;
|
|
13705
14505
|
const _errs1 = errors;
|
|
13706
|
-
if (!
|
|
13707
|
-
vErrors = vErrors === null ?
|
|
14506
|
+
if (!validate195(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
14507
|
+
vErrors = vErrors === null ? validate195.errors : vErrors.concat(validate195.errors);
|
|
13708
14508
|
errors = vErrors.length;
|
|
13709
14509
|
}
|
|
13710
14510
|
var _valid0 = _errs1 === errors;
|
|
@@ -13714,8 +14514,8 @@ function validate188(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13714
14514
|
var props0 = true;
|
|
13715
14515
|
}
|
|
13716
14516
|
const _errs2 = errors;
|
|
13717
|
-
if (!
|
|
13718
|
-
vErrors = vErrors === null ?
|
|
14517
|
+
if (!validate219(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
14518
|
+
vErrors = vErrors === null ? validate219.errors : vErrors.concat(validate219.errors);
|
|
13719
14519
|
errors = vErrors.length;
|
|
13720
14520
|
}
|
|
13721
14521
|
var _valid0 = _errs2 === errors;
|
|
@@ -13731,8 +14531,8 @@ function validate188(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13731
14531
|
}
|
|
13732
14532
|
}
|
|
13733
14533
|
const _errs3 = errors;
|
|
13734
|
-
if (!
|
|
13735
|
-
vErrors = vErrors === null ?
|
|
14534
|
+
if (!validate222(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
14535
|
+
vErrors = vErrors === null ? validate222.errors : vErrors.concat(validate222.errors);
|
|
13736
14536
|
errors = vErrors.length;
|
|
13737
14537
|
}
|
|
13738
14538
|
var _valid0 = _errs3 === errors;
|
|
@@ -13748,8 +14548,8 @@ function validate188(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13748
14548
|
}
|
|
13749
14549
|
}
|
|
13750
14550
|
const _errs4 = errors;
|
|
13751
|
-
if (!
|
|
13752
|
-
vErrors = vErrors === null ?
|
|
14551
|
+
if (!validate225(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
14552
|
+
vErrors = vErrors === null ? validate225.errors : vErrors.concat(validate225.errors);
|
|
13753
14553
|
errors = vErrors.length;
|
|
13754
14554
|
}
|
|
13755
14555
|
var _valid0 = _errs4 === errors;
|
|
@@ -13785,15 +14585,15 @@ function validate188(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13785
14585
|
}
|
|
13786
14586
|
}
|
|
13787
14587
|
}
|
|
13788
|
-
|
|
14588
|
+
validate194.errors = vErrors;
|
|
13789
14589
|
evaluated0.props = props0;
|
|
13790
14590
|
return errors === 0;
|
|
13791
14591
|
}
|
|
13792
|
-
|
|
13793
|
-
function
|
|
14592
|
+
validate194.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14593
|
+
function validate193(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13794
14594
|
let vErrors = null;
|
|
13795
14595
|
let errors = 0;
|
|
13796
|
-
const evaluated0 =
|
|
14596
|
+
const evaluated0 = validate193.evaluated;
|
|
13797
14597
|
if (evaluated0.dynamicProps) {
|
|
13798
14598
|
evaluated0.props = void 0;
|
|
13799
14599
|
}
|
|
@@ -13846,8 +14646,8 @@ function validate187(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13846
14646
|
if (Array.isArray(data1)) {
|
|
13847
14647
|
const len0 = data1.length;
|
|
13848
14648
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
13849
|
-
if (!
|
|
13850
|
-
vErrors = vErrors === null ?
|
|
14649
|
+
if (!validate194(data1[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data1, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
14650
|
+
vErrors = vErrors === null ? validate194.errors : vErrors.concat(validate194.errors);
|
|
13851
14651
|
errors = vErrors.length;
|
|
13852
14652
|
}
|
|
13853
14653
|
}
|
|
@@ -13901,14 +14701,14 @@ function validate187(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13901
14701
|
}
|
|
13902
14702
|
errors++;
|
|
13903
14703
|
}
|
|
13904
|
-
|
|
14704
|
+
validate193.errors = vErrors;
|
|
13905
14705
|
return errors === 0;
|
|
13906
14706
|
}
|
|
13907
|
-
|
|
13908
|
-
function
|
|
14707
|
+
validate193.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14708
|
+
function validate192(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13909
14709
|
let vErrors = null;
|
|
13910
14710
|
let errors = 0;
|
|
13911
|
-
const evaluated0 =
|
|
14711
|
+
const evaluated0 = validate192.evaluated;
|
|
13912
14712
|
if (evaluated0.dynamicProps) {
|
|
13913
14713
|
evaluated0.props = void 0;
|
|
13914
14714
|
}
|
|
@@ -13988,8 +14788,8 @@ function validate186(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13988
14788
|
}
|
|
13989
14789
|
}
|
|
13990
14790
|
if (data.initial_value !== void 0) {
|
|
13991
|
-
if (!
|
|
13992
|
-
vErrors = vErrors === null ?
|
|
14791
|
+
if (!validate193(data.initial_value, { instancePath: instancePath + "/initial_value", parentData: data, parentDataProperty: "initial_value", rootData, dynamicAnchors })) {
|
|
14792
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
13993
14793
|
errors = vErrors.length;
|
|
13994
14794
|
}
|
|
13995
14795
|
}
|
|
@@ -14041,7 +14841,7 @@ function validate186(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14041
14841
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
14042
14842
|
let data5 = data4[i0];
|
|
14043
14843
|
if (!(data5 === "on_enter_pressed" || data5 === "on_character_entered")) {
|
|
14044
|
-
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues:
|
|
14844
|
+
const err11 = { instancePath: instancePath + "/dispatch_action_config/trigger_actions_on/" + i0, schemaPath: "#/$defs/dispatch_action_config_object/properties/trigger_actions_on/items/enum", keyword: "enum", params: { allowedValues: schema145.properties.trigger_actions_on.items.enum }, message: "must be equal to one of the allowed values" };
|
|
14045
14845
|
if (vErrors === null) {
|
|
14046
14846
|
vErrors = [err11];
|
|
14047
14847
|
} else {
|
|
@@ -14114,14 +14914,14 @@ function validate186(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14114
14914
|
}
|
|
14115
14915
|
errors++;
|
|
14116
14916
|
}
|
|
14117
|
-
|
|
14917
|
+
validate192.errors = vErrors;
|
|
14118
14918
|
return errors === 0;
|
|
14119
14919
|
}
|
|
14120
|
-
|
|
14121
|
-
function
|
|
14920
|
+
validate192.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14921
|
+
function validate232(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14122
14922
|
let vErrors = null;
|
|
14123
14923
|
let errors = 0;
|
|
14124
|
-
const evaluated0 =
|
|
14924
|
+
const evaluated0 = validate232.evaluated;
|
|
14125
14925
|
if (evaluated0.dynamicProps) {
|
|
14126
14926
|
evaluated0.props = void 0;
|
|
14127
14927
|
}
|
|
@@ -14277,14 +15077,14 @@ function validate226(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14277
15077
|
}
|
|
14278
15078
|
errors++;
|
|
14279
15079
|
}
|
|
14280
|
-
|
|
15080
|
+
validate232.errors = vErrors;
|
|
14281
15081
|
return errors === 0;
|
|
14282
15082
|
}
|
|
14283
|
-
|
|
14284
|
-
function
|
|
15083
|
+
validate232.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
15084
|
+
function validate164(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14285
15085
|
let vErrors = null;
|
|
14286
15086
|
let errors = 0;
|
|
14287
|
-
const evaluated0 =
|
|
15087
|
+
const evaluated0 = validate164.evaluated;
|
|
14288
15088
|
if (evaluated0.dynamicProps) {
|
|
14289
15089
|
evaluated0.props = void 0;
|
|
14290
15090
|
}
|
|
@@ -14295,8 +15095,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14295
15095
|
let valid0 = false;
|
|
14296
15096
|
let passing0 = null;
|
|
14297
15097
|
const _errs1 = errors;
|
|
14298
|
-
if (!
|
|
14299
|
-
vErrors = vErrors === null ?
|
|
15098
|
+
if (!validate165(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15099
|
+
vErrors = vErrors === null ? validate165.errors : vErrors.concat(validate165.errors);
|
|
14300
15100
|
errors = vErrors.length;
|
|
14301
15101
|
}
|
|
14302
15102
|
var _valid0 = _errs1 === errors;
|
|
@@ -14306,8 +15106,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14306
15106
|
var props0 = true;
|
|
14307
15107
|
}
|
|
14308
15108
|
const _errs2 = errors;
|
|
14309
|
-
if (!
|
|
14310
|
-
vErrors = vErrors === null ?
|
|
15109
|
+
if (!validate168(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15110
|
+
vErrors = vErrors === null ? validate168.errors : vErrors.concat(validate168.errors);
|
|
14311
15111
|
errors = vErrors.length;
|
|
14312
15112
|
}
|
|
14313
15113
|
var _valid0 = _errs2 === errors;
|
|
@@ -14323,8 +15123,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14323
15123
|
}
|
|
14324
15124
|
}
|
|
14325
15125
|
const _errs3 = errors;
|
|
14326
|
-
if (!
|
|
14327
|
-
vErrors = vErrors === null ?
|
|
15126
|
+
if (!validate171(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15127
|
+
vErrors = vErrors === null ? validate171.errors : vErrors.concat(validate171.errors);
|
|
14328
15128
|
errors = vErrors.length;
|
|
14329
15129
|
}
|
|
14330
15130
|
var _valid0 = _errs3 === errors;
|
|
@@ -14340,8 +15140,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14340
15140
|
}
|
|
14341
15141
|
}
|
|
14342
15142
|
const _errs4 = errors;
|
|
14343
|
-
if (!
|
|
14344
|
-
vErrors = vErrors === null ?
|
|
15143
|
+
if (!validate174(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15144
|
+
vErrors = vErrors === null ? validate174.errors : vErrors.concat(validate174.errors);
|
|
14345
15145
|
errors = vErrors.length;
|
|
14346
15146
|
}
|
|
14347
15147
|
var _valid0 = _errs4 === errors;
|
|
@@ -14612,8 +15412,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14612
15412
|
}
|
|
14613
15413
|
}
|
|
14614
15414
|
const _errs20 = errors;
|
|
14615
|
-
if (!
|
|
14616
|
-
vErrors = vErrors === null ?
|
|
15415
|
+
if (!validate192(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15416
|
+
vErrors = vErrors === null ? validate192.errors : vErrors.concat(validate192.errors);
|
|
14617
15417
|
errors = vErrors.length;
|
|
14618
15418
|
}
|
|
14619
15419
|
var _valid0 = _errs20 === errors;
|
|
@@ -14629,8 +15429,8 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14629
15429
|
}
|
|
14630
15430
|
}
|
|
14631
15431
|
const _errs21 = errors;
|
|
14632
|
-
if (!
|
|
14633
|
-
vErrors = vErrors === null ?
|
|
15432
|
+
if (!validate232(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
15433
|
+
vErrors = vErrors === null ? validate232.errors : vErrors.concat(validate232.errors);
|
|
14634
15434
|
errors = vErrors.length;
|
|
14635
15435
|
}
|
|
14636
15436
|
var _valid0 = _errs21 === errors;
|
|
@@ -14683,15 +15483,15 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14683
15483
|
}
|
|
14684
15484
|
}
|
|
14685
15485
|
}
|
|
14686
|
-
|
|
15486
|
+
validate164.errors = vErrors;
|
|
14687
15487
|
evaluated0.props = props0;
|
|
14688
15488
|
return errors === 0;
|
|
14689
15489
|
}
|
|
14690
|
-
|
|
14691
|
-
function
|
|
15490
|
+
validate164.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
15491
|
+
function validate163(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14692
15492
|
let vErrors = null;
|
|
14693
15493
|
let errors = 0;
|
|
14694
|
-
const evaluated0 =
|
|
15494
|
+
const evaluated0 = validate163.evaluated;
|
|
14695
15495
|
if (evaluated0.dynamicProps) {
|
|
14696
15496
|
evaluated0.props = void 0;
|
|
14697
15497
|
}
|
|
@@ -14944,8 +15744,8 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14944
15744
|
}
|
|
14945
15745
|
}
|
|
14946
15746
|
if (data.element !== void 0) {
|
|
14947
|
-
if (!
|
|
14948
|
-
vErrors = vErrors === null ?
|
|
15747
|
+
if (!validate164(data.element, { instancePath: instancePath + "/element", parentData: data, parentDataProperty: "element", rootData, dynamicAnchors })) {
|
|
15748
|
+
vErrors = vErrors === null ? validate164.errors : vErrors.concat(validate164.errors);
|
|
14949
15749
|
errors = vErrors.length;
|
|
14950
15750
|
}
|
|
14951
15751
|
}
|
|
@@ -15122,14 +15922,14 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15122
15922
|
}
|
|
15123
15923
|
errors++;
|
|
15124
15924
|
}
|
|
15125
|
-
|
|
15925
|
+
validate163.errors = vErrors;
|
|
15126
15926
|
return errors === 0;
|
|
15127
15927
|
}
|
|
15128
|
-
|
|
15129
|
-
function
|
|
15928
|
+
validate163.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
15929
|
+
function validate236(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15130
15930
|
let vErrors = null;
|
|
15131
15931
|
let errors = 0;
|
|
15132
|
-
const evaluated0 =
|
|
15932
|
+
const evaluated0 = validate236.evaluated;
|
|
15133
15933
|
if (evaluated0.dynamicProps) {
|
|
15134
15934
|
evaluated0.props = void 0;
|
|
15135
15935
|
}
|
|
@@ -15248,15 +16048,15 @@ function validate230(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15248
16048
|
}
|
|
15249
16049
|
errors++;
|
|
15250
16050
|
}
|
|
15251
|
-
|
|
16051
|
+
validate236.errors = vErrors;
|
|
15252
16052
|
return errors === 0;
|
|
15253
16053
|
}
|
|
15254
|
-
|
|
15255
|
-
var
|
|
15256
|
-
function
|
|
16054
|
+
validate236.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16055
|
+
var schema195 = { "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" } } };
|
|
16056
|
+
function validate239(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15257
16057
|
let vErrors = null;
|
|
15258
16058
|
let errors = 0;
|
|
15259
|
-
const evaluated0 =
|
|
16059
|
+
const evaluated0 = validate239.evaluated;
|
|
15260
16060
|
if (evaluated0.dynamicProps) {
|
|
15261
16061
|
evaluated0.props = void 0;
|
|
15262
16062
|
}
|
|
@@ -15349,14 +16149,14 @@ function validate233(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15349
16149
|
}
|
|
15350
16150
|
}
|
|
15351
16151
|
if (data.details !== void 0) {
|
|
15352
|
-
if (!
|
|
15353
|
-
vErrors = vErrors === null ?
|
|
16152
|
+
if (!validate193(data.details, { instancePath: instancePath + "/details", parentData: data, parentDataProperty: "details", rootData, dynamicAnchors })) {
|
|
16153
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
15354
16154
|
errors = vErrors.length;
|
|
15355
16155
|
}
|
|
15356
16156
|
}
|
|
15357
16157
|
if (data.output !== void 0) {
|
|
15358
|
-
if (!
|
|
15359
|
-
vErrors = vErrors === null ?
|
|
16158
|
+
if (!validate193(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData, dynamicAnchors })) {
|
|
16159
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
15360
16160
|
errors = vErrors.length;
|
|
15361
16161
|
}
|
|
15362
16162
|
}
|
|
@@ -15483,7 +16283,7 @@ function validate233(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15483
16283
|
if (data.status !== void 0) {
|
|
15484
16284
|
let data10 = data.status;
|
|
15485
16285
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
15486
|
-
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
16286
|
+
const err19 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema195.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
15487
16287
|
if (vErrors === null) {
|
|
15488
16288
|
vErrors = [err19];
|
|
15489
16289
|
} else {
|
|
@@ -15532,14 +16332,14 @@ function validate233(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15532
16332
|
}
|
|
15533
16333
|
errors++;
|
|
15534
16334
|
}
|
|
15535
|
-
|
|
16335
|
+
validate239.errors = vErrors;
|
|
15536
16336
|
return errors === 0;
|
|
15537
16337
|
}
|
|
15538
|
-
|
|
15539
|
-
function
|
|
16338
|
+
validate239.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16339
|
+
function validate238(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15540
16340
|
let vErrors = null;
|
|
15541
16341
|
let errors = 0;
|
|
15542
|
-
const evaluated0 =
|
|
16342
|
+
const evaluated0 = validate238.evaluated;
|
|
15543
16343
|
if (evaluated0.dynamicProps) {
|
|
15544
16344
|
evaluated0.props = void 0;
|
|
15545
16345
|
}
|
|
@@ -15775,8 +16575,8 @@ function validate232(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15775
16575
|
if (Array.isArray(data6)) {
|
|
15776
16576
|
const len0 = data6.length;
|
|
15777
16577
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
15778
|
-
if (!
|
|
15779
|
-
vErrors = vErrors === null ?
|
|
16578
|
+
if (!validate239(data6[i0], { instancePath: instancePath + "/tasks/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
16579
|
+
vErrors = vErrors === null ? validate239.errors : vErrors.concat(validate239.errors);
|
|
15780
16580
|
errors = vErrors.length;
|
|
15781
16581
|
}
|
|
15782
16582
|
}
|
|
@@ -15799,14 +16599,14 @@ function validate232(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15799
16599
|
}
|
|
15800
16600
|
errors++;
|
|
15801
16601
|
}
|
|
15802
|
-
|
|
16602
|
+
validate238.errors = vErrors;
|
|
15803
16603
|
return errors === 0;
|
|
15804
16604
|
}
|
|
15805
|
-
|
|
15806
|
-
function
|
|
16605
|
+
validate238.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16606
|
+
function validate248(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15807
16607
|
let vErrors = null;
|
|
15808
16608
|
let errors = 0;
|
|
15809
|
-
const evaluated0 =
|
|
16609
|
+
const evaluated0 = validate248.evaluated;
|
|
15810
16610
|
if (evaluated0.dynamicProps) {
|
|
15811
16611
|
evaluated0.props = void 0;
|
|
15812
16612
|
}
|
|
@@ -16151,15 +16951,15 @@ function validate242(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16151
16951
|
}
|
|
16152
16952
|
}
|
|
16153
16953
|
}
|
|
16154
|
-
|
|
16954
|
+
validate248.errors = vErrors;
|
|
16155
16955
|
evaluated0.props = props0;
|
|
16156
16956
|
return errors === 0;
|
|
16157
16957
|
}
|
|
16158
|
-
|
|
16159
|
-
function
|
|
16958
|
+
validate248.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
16959
|
+
function validate245(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16160
16960
|
let vErrors = null;
|
|
16161
16961
|
let errors = 0;
|
|
16162
|
-
const evaluated0 =
|
|
16962
|
+
const evaluated0 = validate245.evaluated;
|
|
16163
16963
|
if (evaluated0.dynamicProps) {
|
|
16164
16964
|
evaluated0.props = void 0;
|
|
16165
16965
|
}
|
|
@@ -16345,8 +17145,8 @@ function validate239(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16345
17145
|
}
|
|
16346
17146
|
}
|
|
16347
17147
|
if (data.accessory !== void 0) {
|
|
16348
|
-
if (!
|
|
16349
|
-
vErrors = vErrors === null ?
|
|
17148
|
+
if (!validate248(data.accessory, { instancePath: instancePath + "/accessory", parentData: data, parentDataProperty: "accessory", rootData, dynamicAnchors })) {
|
|
17149
|
+
vErrors = vErrors === null ? validate248.errors : vErrors.concat(validate248.errors);
|
|
16350
17150
|
errors = vErrors.length;
|
|
16351
17151
|
}
|
|
16352
17152
|
}
|
|
@@ -16370,15 +17170,15 @@ function validate239(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16370
17170
|
}
|
|
16371
17171
|
errors++;
|
|
16372
17172
|
}
|
|
16373
|
-
|
|
17173
|
+
validate245.errors = vErrors;
|
|
16374
17174
|
return errors === 0;
|
|
16375
17175
|
}
|
|
16376
|
-
|
|
16377
|
-
var
|
|
16378
|
-
function
|
|
17176
|
+
validate245.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17177
|
+
var schema204 = { "description": "Per-column settings inside table_block.column_settings. May be null to skip.", "oneOf": [{ "type": "null" }, { "type": "object", "additionalProperties": false, "properties": { "align": { "enum": ["left", "center", "right"] }, "is_wrapped": { "type": "boolean" } } }] };
|
|
17178
|
+
function validate270(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16379
17179
|
let vErrors = null;
|
|
16380
17180
|
let errors = 0;
|
|
16381
|
-
const evaluated0 =
|
|
17181
|
+
const evaluated0 = validate270.evaluated;
|
|
16382
17182
|
if (evaluated0.dynamicProps) {
|
|
16383
17183
|
evaluated0.props = void 0;
|
|
16384
17184
|
}
|
|
@@ -16503,8 +17303,8 @@ function validate264(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16503
17303
|
if (Array.isArray(data3)) {
|
|
16504
17304
|
const len0 = data3.length;
|
|
16505
17305
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
16506
|
-
if (!
|
|
16507
|
-
vErrors = vErrors === null ?
|
|
17306
|
+
if (!validate194(data3[i0], { instancePath: instancePath + "/elements/" + i0, parentData: data3, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
17307
|
+
vErrors = vErrors === null ? validate194.errors : vErrors.concat(validate194.errors);
|
|
16508
17308
|
errors = vErrors.length;
|
|
16509
17309
|
}
|
|
16510
17310
|
}
|
|
@@ -16558,15 +17358,15 @@ function validate264(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16558
17358
|
}
|
|
16559
17359
|
}
|
|
16560
17360
|
}
|
|
16561
|
-
|
|
17361
|
+
validate270.errors = vErrors;
|
|
16562
17362
|
evaluated0.props = props0;
|
|
16563
17363
|
return errors === 0;
|
|
16564
17364
|
}
|
|
16565
|
-
|
|
16566
|
-
function
|
|
17365
|
+
validate270.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
17366
|
+
function validate269(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16567
17367
|
let vErrors = null;
|
|
16568
17368
|
let errors = 0;
|
|
16569
|
-
const evaluated0 =
|
|
17369
|
+
const evaluated0 = validate269.evaluated;
|
|
16570
17370
|
if (evaluated0.dynamicProps) {
|
|
16571
17371
|
evaluated0.props = void 0;
|
|
16572
17372
|
}
|
|
@@ -16690,8 +17490,8 @@ function validate263(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16690
17490
|
}
|
|
16691
17491
|
const len1 = data3.length;
|
|
16692
17492
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
16693
|
-
if (!
|
|
16694
|
-
vErrors = vErrors === null ?
|
|
17493
|
+
if (!validate270(data3[i1], { instancePath: instancePath + "/rows/" + i0 + "/" + i1, parentData: data3, parentDataProperty: i1, rootData, dynamicAnchors })) {
|
|
17494
|
+
vErrors = vErrors === null ? validate270.errors : vErrors.concat(validate270.errors);
|
|
16695
17495
|
errors = vErrors.length;
|
|
16696
17496
|
}
|
|
16697
17497
|
}
|
|
@@ -16764,7 +17564,7 @@ function validate263(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16764
17564
|
if (data6.align !== void 0) {
|
|
16765
17565
|
let data7 = data6.align;
|
|
16766
17566
|
if (!(data7 === "left" || data7 === "center" || data7 === "right")) {
|
|
16767
|
-
const err16 = { instancePath: instancePath + "/column_settings/" + i2 + "/align", schemaPath: "#/$defs/table_column_setting/oneOf/1/properties/align/enum", keyword: "enum", params: { allowedValues:
|
|
17567
|
+
const err16 = { instancePath: instancePath + "/column_settings/" + i2 + "/align", schemaPath: "#/$defs/table_column_setting/oneOf/1/properties/align/enum", keyword: "enum", params: { allowedValues: schema204.oneOf[1].properties.align.enum }, message: "must be equal to one of the allowed values" };
|
|
16768
17568
|
if (vErrors === null) {
|
|
16769
17569
|
vErrors = [err16];
|
|
16770
17570
|
} else {
|
|
@@ -16841,15 +17641,15 @@ function validate263(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16841
17641
|
}
|
|
16842
17642
|
errors++;
|
|
16843
17643
|
}
|
|
16844
|
-
|
|
17644
|
+
validate269.errors = vErrors;
|
|
16845
17645
|
return errors === 0;
|
|
16846
17646
|
}
|
|
16847
|
-
|
|
16848
|
-
var
|
|
16849
|
-
function
|
|
17647
|
+
validate269.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17648
|
+
var schema205 = { "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" } } };
|
|
17649
|
+
function validate274(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16850
17650
|
let vErrors = null;
|
|
16851
17651
|
let errors = 0;
|
|
16852
|
-
const evaluated0 =
|
|
17652
|
+
const evaluated0 = validate274.evaluated;
|
|
16853
17653
|
if (evaluated0.dynamicProps) {
|
|
16854
17654
|
evaluated0.props = void 0;
|
|
16855
17655
|
}
|
|
@@ -16951,14 +17751,14 @@ function validate268(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16951
17751
|
}
|
|
16952
17752
|
}
|
|
16953
17753
|
if (data.details !== void 0) {
|
|
16954
|
-
if (!
|
|
16955
|
-
vErrors = vErrors === null ?
|
|
17754
|
+
if (!validate193(data.details, { instancePath: instancePath + "/details", parentData: data, parentDataProperty: "details", rootData, dynamicAnchors })) {
|
|
17755
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
16956
17756
|
errors = vErrors.length;
|
|
16957
17757
|
}
|
|
16958
17758
|
}
|
|
16959
17759
|
if (data.output !== void 0) {
|
|
16960
|
-
if (!
|
|
16961
|
-
vErrors = vErrors === null ?
|
|
17760
|
+
if (!validate193(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData, dynamicAnchors })) {
|
|
17761
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
16962
17762
|
errors = vErrors.length;
|
|
16963
17763
|
}
|
|
16964
17764
|
}
|
|
@@ -17085,7 +17885,7 @@ function validate268(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17085
17885
|
if (data.status !== void 0) {
|
|
17086
17886
|
let data10 = data.status;
|
|
17087
17887
|
if (!(data10 === "pending" || data10 === "in_progress" || data10 === "complete" || data10 === "error")) {
|
|
17088
|
-
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
17888
|
+
const err20 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema205.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
17089
17889
|
if (vErrors === null) {
|
|
17090
17890
|
vErrors = [err20];
|
|
17091
17891
|
} else {
|
|
@@ -17134,16 +17934,16 @@ function validate268(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17134
17934
|
}
|
|
17135
17935
|
errors++;
|
|
17136
17936
|
}
|
|
17137
|
-
|
|
17937
|
+
validate274.errors = vErrors;
|
|
17138
17938
|
return errors === 0;
|
|
17139
17939
|
}
|
|
17140
|
-
|
|
17141
|
-
var
|
|
17940
|
+
validate274.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17941
|
+
var schema208 = { "description": "Requires links.embed:write OAuth scope. video_url must be in app's unfurl domains, HTTPS, embeddable, return 2xx, not point to Slack-related domains.", "type": "object", "additionalProperties": false, "required": ["type", "alt_text", "title", "thumbnail_url", "video_url"], "properties": { "type": { "const": "video" }, "alt_text": { "type": "string", "minLength": 1 }, "title": { "allOf": [{ "$ref": "#/$defs/plain_text_object" }, { "properties": { "text": { "maxLength": 199 } } }] }, "thumbnail_url": { "type": "string", "format": "uri" }, "video_url": { "type": "string", "format": "uri", "pattern": "^https://" }, "author_name": { "type": "string", "maxLength": 49 }, "description": { "allOf": [{ "$ref": "#/$defs/plain_text_object" }, { "properties": { "text": { "maxLength": 199 } } }] }, "provider_icon_url": { "type": "string", "format": "uri" }, "provider_name": { "type": "string", "minLength": 1 }, "title_url": { "type": "string", "format": "uri", "pattern": "^https://" }, "block_id": { "$ref": "#/$defs/block_id" } } };
|
|
17142
17942
|
var pattern19 = new RegExp("^https://", "u");
|
|
17143
|
-
function
|
|
17943
|
+
function validate278(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17144
17944
|
let vErrors = null;
|
|
17145
17945
|
let errors = 0;
|
|
17146
|
-
const evaluated0 =
|
|
17946
|
+
const evaluated0 = validate278.evaluated;
|
|
17147
17947
|
if (evaluated0.dynamicProps) {
|
|
17148
17948
|
evaluated0.props = void 0;
|
|
17149
17949
|
}
|
|
@@ -17197,7 +17997,7 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17197
17997
|
errors++;
|
|
17198
17998
|
}
|
|
17199
17999
|
for (const key0 in data) {
|
|
17200
|
-
if (!func81.call(
|
|
18000
|
+
if (!func81.call(schema208.properties, key0)) {
|
|
17201
18001
|
const err5 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
17202
18002
|
if (vErrors === null) {
|
|
17203
18003
|
vErrors = [err5];
|
|
@@ -17652,10 +18452,10 @@ function validate272(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17652
18452
|
}
|
|
17653
18453
|
errors++;
|
|
17654
18454
|
}
|
|
17655
|
-
|
|
18455
|
+
validate278.errors = vErrors;
|
|
17656
18456
|
return errors === 0;
|
|
17657
18457
|
}
|
|
17658
|
-
|
|
18458
|
+
validate278.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17659
18459
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17660
18460
|
let vErrors = null;
|
|
17661
18461
|
let errors = 0;
|
|
@@ -17783,8 +18583,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17783
18583
|
}
|
|
17784
18584
|
}
|
|
17785
18585
|
const _errs8 = errors;
|
|
17786
|
-
if (!
|
|
17787
|
-
vErrors = vErrors === null ?
|
|
18586
|
+
if (!validate155(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18587
|
+
vErrors = vErrors === null ? validate155.errors : vErrors.concat(validate155.errors);
|
|
17788
18588
|
errors = vErrors.length;
|
|
17789
18589
|
}
|
|
17790
18590
|
var _valid0 = _errs8 === errors;
|
|
@@ -17800,8 +18600,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17800
18600
|
}
|
|
17801
18601
|
}
|
|
17802
18602
|
const _errs9 = errors;
|
|
17803
|
-
if (!
|
|
17804
|
-
vErrors = vErrors === null ?
|
|
18603
|
+
if (!validate157(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18604
|
+
vErrors = vErrors === null ? validate157.errors : vErrors.concat(validate157.errors);
|
|
17805
18605
|
errors = vErrors.length;
|
|
17806
18606
|
}
|
|
17807
18607
|
var _valid0 = _errs9 === errors;
|
|
@@ -17817,8 +18617,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17817
18617
|
}
|
|
17818
18618
|
}
|
|
17819
18619
|
const _errs10 = errors;
|
|
17820
|
-
if (!
|
|
17821
|
-
vErrors = vErrors === null ?
|
|
18620
|
+
if (!validate159(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18621
|
+
vErrors = vErrors === null ? validate159.errors : vErrors.concat(validate159.errors);
|
|
17822
18622
|
errors = vErrors.length;
|
|
17823
18623
|
}
|
|
17824
18624
|
var _valid0 = _errs10 === errors;
|
|
@@ -17834,8 +18634,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17834
18634
|
}
|
|
17835
18635
|
}
|
|
17836
18636
|
const _errs11 = errors;
|
|
17837
|
-
if (!
|
|
17838
|
-
vErrors = vErrors === null ?
|
|
18637
|
+
if (!validate161(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18638
|
+
vErrors = vErrors === null ? validate161.errors : vErrors.concat(validate161.errors);
|
|
17839
18639
|
errors = vErrors.length;
|
|
17840
18640
|
}
|
|
17841
18641
|
var _valid0 = _errs11 === errors;
|
|
@@ -17851,8 +18651,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17851
18651
|
}
|
|
17852
18652
|
}
|
|
17853
18653
|
const _errs12 = errors;
|
|
17854
|
-
if (!
|
|
17855
|
-
vErrors = vErrors === null ?
|
|
18654
|
+
if (!validate163(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18655
|
+
vErrors = vErrors === null ? validate163.errors : vErrors.concat(validate163.errors);
|
|
17856
18656
|
errors = vErrors.length;
|
|
17857
18657
|
}
|
|
17858
18658
|
var _valid0 = _errs12 === errors;
|
|
@@ -17868,8 +18668,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17868
18668
|
}
|
|
17869
18669
|
}
|
|
17870
18670
|
const _errs13 = errors;
|
|
17871
|
-
if (!
|
|
17872
|
-
vErrors = vErrors === null ?
|
|
18671
|
+
if (!validate236(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18672
|
+
vErrors = vErrors === null ? validate236.errors : vErrors.concat(validate236.errors);
|
|
17873
18673
|
errors = vErrors.length;
|
|
17874
18674
|
}
|
|
17875
18675
|
var _valid0 = _errs13 === errors;
|
|
@@ -17885,8 +18685,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17885
18685
|
}
|
|
17886
18686
|
}
|
|
17887
18687
|
const _errs14 = errors;
|
|
17888
|
-
if (!
|
|
17889
|
-
vErrors = vErrors === null ?
|
|
18688
|
+
if (!validate238(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18689
|
+
vErrors = vErrors === null ? validate238.errors : vErrors.concat(validate238.errors);
|
|
17890
18690
|
errors = vErrors.length;
|
|
17891
18691
|
}
|
|
17892
18692
|
var _valid0 = _errs14 === errors;
|
|
@@ -17902,8 +18702,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17902
18702
|
}
|
|
17903
18703
|
}
|
|
17904
18704
|
const _errs15 = errors;
|
|
17905
|
-
if (!
|
|
17906
|
-
vErrors = vErrors === null ?
|
|
18705
|
+
if (!validate193(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18706
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
17907
18707
|
errors = vErrors.length;
|
|
17908
18708
|
}
|
|
17909
18709
|
var _valid0 = _errs15 === errors;
|
|
@@ -17919,8 +18719,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17919
18719
|
}
|
|
17920
18720
|
}
|
|
17921
18721
|
const _errs16 = errors;
|
|
17922
|
-
if (!
|
|
17923
|
-
vErrors = vErrors === null ?
|
|
18722
|
+
if (!validate245(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18723
|
+
vErrors = vErrors === null ? validate245.errors : vErrors.concat(validate245.errors);
|
|
17924
18724
|
errors = vErrors.length;
|
|
17925
18725
|
}
|
|
17926
18726
|
var _valid0 = _errs16 === errors;
|
|
@@ -17936,8 +18736,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17936
18736
|
}
|
|
17937
18737
|
}
|
|
17938
18738
|
const _errs17 = errors;
|
|
17939
|
-
if (!
|
|
17940
|
-
vErrors = vErrors === null ?
|
|
18739
|
+
if (!validate269(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18740
|
+
vErrors = vErrors === null ? validate269.errors : vErrors.concat(validate269.errors);
|
|
17941
18741
|
errors = vErrors.length;
|
|
17942
18742
|
}
|
|
17943
18743
|
var _valid0 = _errs17 === errors;
|
|
@@ -17953,8 +18753,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17953
18753
|
}
|
|
17954
18754
|
}
|
|
17955
18755
|
const _errs18 = errors;
|
|
17956
|
-
if (!
|
|
17957
|
-
vErrors = vErrors === null ?
|
|
18756
|
+
if (!validate274(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18757
|
+
vErrors = vErrors === null ? validate274.errors : vErrors.concat(validate274.errors);
|
|
17958
18758
|
errors = vErrors.length;
|
|
17959
18759
|
}
|
|
17960
18760
|
var _valid0 = _errs18 === errors;
|
|
@@ -17969,6 +18769,24 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17969
18769
|
props0 = true;
|
|
17970
18770
|
}
|
|
17971
18771
|
}
|
|
18772
|
+
const _errs19 = errors;
|
|
18773
|
+
if (!validate278(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
18774
|
+
vErrors = vErrors === null ? validate278.errors : vErrors.concat(validate278.errors);
|
|
18775
|
+
errors = vErrors.length;
|
|
18776
|
+
}
|
|
18777
|
+
var _valid0 = _errs19 === errors;
|
|
18778
|
+
if (_valid0 && valid0) {
|
|
18779
|
+
valid0 = false;
|
|
18780
|
+
passing0 = [passing0, 18];
|
|
18781
|
+
} else {
|
|
18782
|
+
if (_valid0) {
|
|
18783
|
+
valid0 = true;
|
|
18784
|
+
passing0 = 18;
|
|
18785
|
+
if (props0 !== true) {
|
|
18786
|
+
props0 = true;
|
|
18787
|
+
}
|
|
18788
|
+
}
|
|
18789
|
+
}
|
|
17972
18790
|
}
|
|
17973
18791
|
}
|
|
17974
18792
|
}
|
|
@@ -18059,12 +18877,12 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18059
18877
|
return errors === 0;
|
|
18060
18878
|
}
|
|
18061
18879
|
validate21.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
18062
|
-
var validateModal =
|
|
18063
|
-
var
|
|
18064
|
-
function
|
|
18880
|
+
var validateModal = validate290;
|
|
18881
|
+
var schema213 = { "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"] } }] };
|
|
18882
|
+
function validate290(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18065
18883
|
let vErrors = null;
|
|
18066
18884
|
let errors = 0;
|
|
18067
|
-
const evaluated0 =
|
|
18885
|
+
const evaluated0 = validate290.evaluated;
|
|
18068
18886
|
if (evaluated0.dynamicProps) {
|
|
18069
18887
|
evaluated0.props = void 0;
|
|
18070
18888
|
}
|
|
@@ -18206,7 +19024,7 @@ function validate284(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18206
19024
|
errors++;
|
|
18207
19025
|
}
|
|
18208
19026
|
for (const key0 in data) {
|
|
18209
|
-
if (!func81.call(
|
|
19027
|
+
if (!func81.call(schema213.properties, key0)) {
|
|
18210
19028
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
18211
19029
|
if (vErrors === null) {
|
|
18212
19030
|
vErrors = [err9];
|
|
@@ -18706,15 +19524,15 @@ function validate284(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18706
19524
|
}
|
|
18707
19525
|
errors++;
|
|
18708
19526
|
}
|
|
18709
|
-
|
|
19527
|
+
validate290.errors = vErrors;
|
|
18710
19528
|
return errors === 0;
|
|
18711
19529
|
}
|
|
18712
|
-
|
|
18713
|
-
var validateHome =
|
|
18714
|
-
function
|
|
19530
|
+
validate290.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19531
|
+
var validateHome = validate292;
|
|
19532
|
+
function validate292(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18715
19533
|
let vErrors = null;
|
|
18716
19534
|
let errors = 0;
|
|
18717
|
-
const evaluated0 =
|
|
19535
|
+
const evaluated0 = validate292.evaluated;
|
|
18718
19536
|
if (evaluated0.dynamicProps) {
|
|
18719
19537
|
evaluated0.props = void 0;
|
|
18720
19538
|
}
|
|
@@ -18875,10 +19693,10 @@ function validate286(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18875
19693
|
}
|
|
18876
19694
|
errors++;
|
|
18877
19695
|
}
|
|
18878
|
-
|
|
19696
|
+
validate292.errors = vErrors;
|
|
18879
19697
|
return errors === 0;
|
|
18880
19698
|
}
|
|
18881
|
-
|
|
19699
|
+
validate292.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18882
19700
|
export {
|
|
18883
19701
|
validateBlocks,
|
|
18884
19702
|
validateHome,
|