@bpmn-io/element-templates-validator 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ All notable changes to [element-templates-validator](https://github.com/bpmn-io/
|
|
6
6
|
|
7
7
|
___Note:__ Yet to be released changes appear here._
|
8
8
|
|
9
|
+
## 0.8.0
|
10
|
+
|
11
|
+
* `DEPS`: update `zeebe-element-templates-json-schema` to `v0.4.0`
|
12
|
+
|
9
13
|
## 0.7.0
|
10
14
|
|
11
15
|
* `DEPS`: update `element-templates-json-schema` to `v0.9.0`
|
package/dist/index.esm.js
CHANGED
@@ -664,9 +664,9 @@ function validateAll(objects) {
|
|
664
664
|
}
|
665
665
|
|
666
666
|
var name = "@camunda/zeebe-element-templates-json-schema";
|
667
|
-
var version = "0.
|
667
|
+
var version = "0.4.0";
|
668
668
|
|
669
|
-
var standaloneZeebeValidator = validate14;var _default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"number","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}}}},"documentationRef":{"$id":"#/documentaionRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"}}};const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:input"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err15 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err32 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs13},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err100 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs15},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err109 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs17 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/properties/" + i4+"/type") || ((err110.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err110.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs17.push(err110);err110.emUsed = true;}}if(emErrs17.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs17},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs18 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs18.push(err112);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err113 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err114 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err117 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err118 of vErrors){if(((((err118.keyword !== "errorMessage") && (!err118.emUsed)) && ((err118.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err118.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err118.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err118.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err118.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err118);err118.emUsed = true;}}if(emErrs19.length){const err119 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const emErrs20 = [];for(const err120 of vErrors){if(!err120.emUsed){emErrs20.push(err120);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err121 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err131 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err132 of vErrors){if(((((err132.keyword !== "errorMessage") && (!err132.emUsed)) && ((err132.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err132.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err132.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err132.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err132.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err132);err132.emUsed = true;}}if(emErrs23.length){const err133 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const emErrs24 = [];for(const err134 of vErrors){if(!err134.emUsed){emErrs24.push(err134);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err135 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err137 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err138 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(errors > 0){const emErrs25 = [];for(const err139 of vErrors){if(((((err139.keyword !== "errorMessage") && (!err139.emUsed)) && ((err139.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err139.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err139.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err139.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err139.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err139);err139.emUsed = true;}}if(emErrs25.length){const err140 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const emErrs26 = [];for(const err141 of vErrors){if(!err141.emUsed){emErrs26.push(err141);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err142 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err143 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err144 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err148 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err150 of vErrors){if((((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && (err150.dataPath === dataPath+"/properties/" + i4)) && (err150.keyword in emErrors5)) && (err150.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err150.schemaPath.slice(38)))){emPropParams2 = obj0[err150.keyword];emParamsErrors2 = emErrors5[err150.keyword][err150.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err150);err150.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err151 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}const emErrs27 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs27.push(err152);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
669
|
+
var standaloneZeebeValidator = validate14;var _default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"number","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}}}},"documentationRef":{"$id":"#/documentaionRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}}}};const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:input"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const pattern3 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err15 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err32 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs13},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err100 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs15},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err109 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs17 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/properties/" + i4+"/type") || ((err110.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err110.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs17.push(err110);err110.emUsed = true;}}if(emErrs17.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs17},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs18 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs18.push(err112);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err113 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err114 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err117 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err118 of vErrors){if(((((err118.keyword !== "errorMessage") && (!err118.emUsed)) && ((err118.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err118.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err118.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err118.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err118.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err118);err118.emUsed = true;}}if(emErrs19.length){const err119 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const emErrs20 = [];for(const err120 of vErrors){if(!err120.emUsed){emErrs20.push(err120);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err121 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err131 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err132 of vErrors){if(((((err132.keyword !== "errorMessage") && (!err132.emUsed)) && ((err132.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err132.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err132.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err132.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err132.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err132);err132.emUsed = true;}}if(emErrs23.length){const err133 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const emErrs24 = [];for(const err134 of vErrors){if(!err134.emUsed){emErrs24.push(err134);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err135 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err137 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err138 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(errors > 0){const emErrs25 = [];for(const err139 of vErrors){if(((((err139.keyword !== "errorMessage") && (!err139.emUsed)) && ((err139.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err139.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err139.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err139.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err139.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err139);err139.emUsed = true;}}if(emErrs25.length){const err140 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const emErrs26 = [];for(const err141 of vErrors){if(!err141.emUsed){emErrs26.push(err141);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err142 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err143 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err144 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err148 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err150 of vErrors){if((((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && (err150.dataPath === dataPath+"/properties/" + i4)) && (err150.keyword in emErrors5)) && (err150.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err150.schemaPath.slice(38)))){emPropParams2 = obj0[err150.keyword];emParamsErrors2 = emErrors5[err150.keyword][err150.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err150);err150.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err151 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}const emErrs27 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs27.push(err152);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data.icon !== undefined){let data61 = data.icon;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.contents === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data61.contents !== undefined){let data62 = data61.contents;if(typeof data62 === "string"){if(!pattern3.test(data62)){const err155 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err157 of vErrors){if((((((err157.keyword !== "errorMessage") && (!err157.emUsed)) && (err157.dataPath === dataPath+"/icon/contents")) && (err157.keyword in emErrors6)) && (err157.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err157.schemaPath.slice(37)))){emErrors6[err157.keyword].push(err157);err157.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err158 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}const emErrs28 = [];for(const err159 of vErrors){if(!err159.emUsed){emErrs28.push(err159);}}vErrors = emErrs28;errors = emErrs28.length;}}}else {const err160 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err161 of vErrors){if((((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && (err161.dataPath === dataPath+"/icon")) && (err161.keyword in emErrors7)) && (err161.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err161.schemaPath.slice(17)))){emPropParams3 = obj0[err161.keyword];emParamsErrors3 = emErrors7[err161.keyword][err161.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err161);err161.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err162 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}const emErrs29 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs29.push(err163);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err164 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
670
670
|
standaloneZeebeValidator.default = _default;
|
671
671
|
|
672
672
|
function getZeebeSchemaPackage() {
|
package/dist/index.js
CHANGED
@@ -668,9 +668,9 @@ function validateAll(objects) {
|
|
668
668
|
}
|
669
669
|
|
670
670
|
var name = "@camunda/zeebe-element-templates-json-schema";
|
671
|
-
var version = "0.
|
671
|
+
var version = "0.4.0";
|
672
672
|
|
673
|
-
var standaloneZeebeValidator = validate14;var _default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"number","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}}}},"documentationRef":{"$id":"#/documentaionRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"}}};const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:input"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err15 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err32 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs13},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err100 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs15},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err109 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs17 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/properties/" + i4+"/type") || ((err110.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err110.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs17.push(err110);err110.emUsed = true;}}if(emErrs17.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs17},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs18 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs18.push(err112);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err113 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err114 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err117 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err118 of vErrors){if(((((err118.keyword !== "errorMessage") && (!err118.emUsed)) && ((err118.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err118.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err118.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err118.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err118.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err118);err118.emUsed = true;}}if(emErrs19.length){const err119 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const emErrs20 = [];for(const err120 of vErrors){if(!err120.emUsed){emErrs20.push(err120);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err121 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err131 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err132 of vErrors){if(((((err132.keyword !== "errorMessage") && (!err132.emUsed)) && ((err132.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err132.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err132.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err132.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err132.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err132);err132.emUsed = true;}}if(emErrs23.length){const err133 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const emErrs24 = [];for(const err134 of vErrors){if(!err134.emUsed){emErrs24.push(err134);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err135 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err137 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err138 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(errors > 0){const emErrs25 = [];for(const err139 of vErrors){if(((((err139.keyword !== "errorMessage") && (!err139.emUsed)) && ((err139.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err139.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err139.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err139.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err139.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err139);err139.emUsed = true;}}if(emErrs25.length){const err140 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const emErrs26 = [];for(const err141 of vErrors){if(!err141.emUsed){emErrs26.push(err141);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err142 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err143 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err144 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err148 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err150 of vErrors){if((((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && (err150.dataPath === dataPath+"/properties/" + i4)) && (err150.keyword in emErrors5)) && (err150.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err150.schemaPath.slice(38)))){emPropParams2 = obj0[err150.keyword];emParamsErrors2 = emErrors5[err150.keyword][err150.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err150);err150.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err151 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}const emErrs27 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs27.push(err152);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
673
|
+
var standaloneZeebeValidator = validate14;var _default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"number","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}}}},"documentationRef":{"$id":"#/documentaionRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}}}};const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:input"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const pattern3 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err15 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err32 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs13},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err100 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs15},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err109 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs17 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/properties/" + i4+"/type") || ((err110.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err110.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs17.push(err110);err110.emUsed = true;}}if(emErrs17.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs17},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs18 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs18.push(err112);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err113 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err114 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err117 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err118 of vErrors){if(((((err118.keyword !== "errorMessage") && (!err118.emUsed)) && ((err118.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err118.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err118.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err118.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err118.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err118);err118.emUsed = true;}}if(emErrs19.length){const err119 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const emErrs20 = [];for(const err120 of vErrors){if(!err120.emUsed){emErrs20.push(err120);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err121 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err131 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err132 of vErrors){if(((((err132.keyword !== "errorMessage") && (!err132.emUsed)) && ((err132.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err132.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err132.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err132.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err132.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err132);err132.emUsed = true;}}if(emErrs23.length){const err133 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const emErrs24 = [];for(const err134 of vErrors){if(!err134.emUsed){emErrs24.push(err134);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err135 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err137 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err138 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(errors > 0){const emErrs25 = [];for(const err139 of vErrors){if(((((err139.keyword !== "errorMessage") && (!err139.emUsed)) && ((err139.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err139.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err139.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err139.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err139.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err139);err139.emUsed = true;}}if(emErrs25.length){const err140 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const emErrs26 = [];for(const err141 of vErrors){if(!err141.emUsed){emErrs26.push(err141);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err142 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err143 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err144 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err148 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err150 of vErrors){if((((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && (err150.dataPath === dataPath+"/properties/" + i4)) && (err150.keyword in emErrors5)) && (err150.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err150.schemaPath.slice(38)))){emPropParams2 = obj0[err150.keyword];emParamsErrors2 = emErrors5[err150.keyword][err150.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err150);err150.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err151 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}const emErrs27 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs27.push(err152);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data.icon !== undefined){let data61 = data.icon;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.contents === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data61.contents !== undefined){let data62 = data61.contents;if(typeof data62 === "string"){if(!pattern3.test(data62)){const err155 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err157 of vErrors){if((((((err157.keyword !== "errorMessage") && (!err157.emUsed)) && (err157.dataPath === dataPath+"/icon/contents")) && (err157.keyword in emErrors6)) && (err157.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err157.schemaPath.slice(37)))){emErrors6[err157.keyword].push(err157);err157.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err158 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}const emErrs28 = [];for(const err159 of vErrors){if(!err159.emUsed){emErrs28.push(err159);}}vErrors = emErrs28;errors = emErrs28.length;}}}else {const err160 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err161 of vErrors){if((((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && (err161.dataPath === dataPath+"/icon")) && (err161.keyword in emErrors7)) && (err161.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err161.schemaPath.slice(17)))){emPropParams3 = obj0[err161.keyword];emParamsErrors3 = emErrors7[err161.keyword][err161.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err161);err161.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err162 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}const emErrs29 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs29.push(err163);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err164 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
674
674
|
standaloneZeebeValidator.default = _default;
|
675
675
|
|
676
676
|
function getZeebeSchemaPackage() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bpmn-io/element-templates-validator",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"description": "Validate element templates based on JSON Schema",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
},
|
57
57
|
"dependencies": {
|
58
58
|
"@camunda/element-templates-json-schema": "^0.9.0",
|
59
|
-
"@camunda/zeebe-element-templates-json-schema": "^0.
|
59
|
+
"@camunda/zeebe-element-templates-json-schema": "^0.4.0",
|
60
60
|
"json-source-map": "^0.6.1",
|
61
61
|
"min-dash": "^3.8.1"
|
62
62
|
}
|