@bpmn-io/element-templates-validator 2.24.0-alpha.0 → 2.25.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/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -666,7 +666,7 @@ function validateAll(objects) {
|
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
var name$1 = "@camunda/zeebe-element-templates-json-schema";
|
|
669
|
-
var version$1 = "0.
|
|
669
|
+
var version$1 = "0.45.0";
|
|
670
670
|
|
|
671
671
|
var standaloneZeebeValidator = {exports: {}};
|
|
672
672
|
|
|
@@ -778,7 +778,7 @@ var hasRequiredStandaloneZeebeValidator;
|
|
|
778
778
|
function requireStandaloneZeebeValidator () {
|
|
779
779
|
if (hasRequiredStandaloneZeebeValidator) return standaloneZeebeValidator.exports;
|
|
780
780
|
hasRequiredStandaloneZeebeValidator = 1;
|
|
781
|
-
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","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 versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","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=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}],"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"processId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:formDefinition","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"errorMessage":"When using ${0/0/binding/type}, \"zeebe:userTask\" must be set on the same element"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:BusinessRuleTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:BusinessRuleTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"decisionId","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ScriptTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ScriptTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"expression"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."}]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["property","type"]},"value":{"const":"versionTag"}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:calledElement","zeebe:formDefinition","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property"]}},"required":["binding"],"not":{"required":["condition"]}}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"}},"required":["property"]},"value":{"const":"versionTag"},"type":{"const":"Hidden"}},"required":["binding","value","type"]},"errorMessage":"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"}},"required":["properties"]}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"formId"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"externalReference"}},"required":["property","type"]}},"required":["binding"]}},"errorMessage":"\"formId\" and \"externalReference\" cannot be used together"}},"required":["properties"]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]}},{"$comment":"When zeebe:adHoc output properties are used, both required bindings must be present together","if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"allOf":[{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"},{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"}]}},"required":["properties"]}},{"$comment":"When zeebe:taskDefinition is used, bpmn:cancelRemainingInstances, bpmn:completionCondition, and zeebe:activeElementsCollection properties are not allowed","if":{"allOf":[{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},{"properties":{"properties":{"contains":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:taskDefinition"},"property":{"const":"type"}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]}]},"then":{"allOf":[{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"enum":["cancelRemainingInstances","completionCondition"]}},"required":["type","name"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/name} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]},{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"activeElementsCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/property} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]}]}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]},"eventDefinition":{"const":"bpmn:SignalEventDefinition"}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:SignalEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"errorMessage":"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"}}}}]},{"$defs":{"timeDateProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDate"}},"required":["type","name"]}},"required":["binding"]},"timeCycleProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeCycle"}},"required":["type","name"]}},"required":["binding"]},"timeDurationProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDuration"}},"required":["type","name"]}},"required":["binding"]}},"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeCycle","timeDuration"]}},"required":["type","name"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"errorMessage":{"required":{"eventDefinition":"Timer bindings require elementType.eventDefinition to equal \"bpmn:TimerEventDefinition\""}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"oneOf":[{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty"}}],"errorMessage":"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."}},"required":["properties"]}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"const":"bpmn:IntermediateCatchEvent"}},"required":["eventDefinition","value"]}},"required":["elementType"]},"then":{"properties":{"properties":{"not":{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"},"errorMessage":"Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"}}}}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"propagateAllChildVariables"}},"required":["property","type"]},"value":{"const":true}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]}},"required":["binding"]}},"errorMessage":"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"}},"required":["properties"]}},{"if":{"properties":{"entriesVisible":{"type":"object","properties":{"outputs":{"const":true}},"required":["outputs"]}},"required":["entriesVisible"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]}},"required":["binding"]}},"errorMessage":"Binding with `type`=`zeebe:output` must not be used when `entriesVisible.outputs` is set to `true`"}}}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:UserTask"]}}}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:executionListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["entriesVisible"],"properties":{"entriesVisible":{"type":"object","required":["executionListeners"],"properties":{"executionListeners":{"const":false}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"entriesVisible":{"properties":{"taskListeners":{"const":false}}}}}}]}]},{"allOf":[{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"completionCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:SequenceFlow"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:SequenceFlow"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"conditionExpression"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ComplexGateway"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ComplexGateway"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"activationCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}}]}],"properties":{"icon":{"properties":{"contents":{"errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","description":"Define the event definition type for a typed event template. Otherwise, ignore.","enum":["bpmn:MessageEventDefinition","bpmn:SignalEventDefinition","bpmn:TimerEventDefinition","bpmn:ConditionalEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:ConditionalEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}}]}]},"configurationTemplates":{"items":{"properties":{"properties":{"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the configuration template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"$comment":"Only atomic property types are supported; `Configuration` is forbidden.","properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"]}}},{"$comment":"Configuration field values are atomic literals or secret references, never FEEL expressions.","not":{"required":["feel"]}},{"$comment":"`optional` is not supported in configuration templates.","not":{"required":["optional"]}}],"properties":{"binding":{"type":"object","description":"Specifying how the property is mapped to the configuration value. Only the `property` binding is supported.","required":["type","name"],"properties":{"type":{"type":"string","description":"The type of a property binding. Always \"property\" for configuration templates.","const":"property"},"name":{"type":"string","description":"The key of the property in the configuration's value object."}}},"secret":{"type":"boolean","description":"Marks the property as a field that typically holds a secret reference. Used by the configuration editor as a rendering hint (e.g. obfuscated input or secret picker); not enforced."},"tooltip":{"type":"string","description":"Hints for the control field."}}}},{"items":{"allOf":[{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}]},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]}}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property in conditions."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the configuration editor and its value should be included in the configuration value.","oneOf":[{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition"},{"properties":{"allMatch":{"type":"array","items":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}}],"properties":{"choices":{"items":{"properties":{"condition":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition"}}}}}}}]}}}}}};const schema29 = {"items":{"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"type":["string","number","boolean"]},"choices":{"items":{"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}}}}};const schema30 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema31 = {"oneOf":[{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}]};const schema36 = {"items":{"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern9 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = /*@__PURE__*/ requireEqual().default;const func13 = /*@__PURE__*/ requireUcs2length().default;const schema22 = {"allOf":[{"type":"array","description":"List of the template's properties.","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"}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","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":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule"]}},"required":["type"]},"type":{"not":{"const":"Configuration"}}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"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","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"oneOf":[{"type":"string","pattern":"^="},{"type":"string","not":{"pattern":"^="},"deprecated":true}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"default":"static"}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"formId\" cannot be a FEEL expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"enum":["externalReference","formId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"enum":["resultVariable","decisionId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"expression"}},"required":["type","property"]}},"required":["type","binding"]},"then":{"properties":{"feel":{"enum":["required"]}},"required":["feel"]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"enum":["resultVariable","expression"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type","value"],"properties":{"choices":{"type":"array","items":{"properties":{"value":{"enum":["latest","versionTag","deployment"]}}}},"type":{"enum":["Hidden","Dropdown"],"errorMessage":"Incorrect type ${0}. Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"},"value":{"enum":["latest","versionTag","deployment"]}}}},{"if":{"properties":{"binding":{"properties":{"property":{"const":"versionTag"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Dropdown","String","Text"],"errorMessage":"Incorrect type ${0}. Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"}}},{"not":{"required":["feel"]},"errorMessage":"Binding with `property`=`versionTag` does not support `feel`"}]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:assignmentDefinition"},"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding"]},"then":{"anyOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Number","Dropdown"]}}},{"required":["type","feel"],"properties":{"type":{"enum":["String","Text"]},"feel":{"const":"required"}}}]}},{"if":{"type":"object","properties":{"type":{"const":"Number"},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","value","type"]},"then":{"properties":{"value":{"type":"integer","minimum":0,"maximum":100}}}},{"if":{"type":"object","properties":{"type":{"enum":["Hidden","Dropdown"]},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"},"choices":{"items":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"}}}}}}}]},{"allOf":[{"$comment":"AdHoc output properties require string-based types (Hidden, String, Text, or Dropdown)","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"$comment":"outputCollection properties must not be FEEL expressions","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"outputCollection\" cannot be a FEEL expression"}}]},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Dropdown","Text"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding","value"],"not":{"required":["feel"]}},"then":{"properties":{"value":{"type":"string","pattern":"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$","description":"The value must be conforming to an ISO 8601 combined date and time representation.","errorMessage":"Must be conforming to an ISO 8601 combined date and time representation"}},"required":["value"]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"enum":["propagateAllParentVariables","propagateAllChildVariables"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","Boolean"]},"value":{"type":"boolean"}},"not":{"required":["feel"]},"errorMessage":"FEEL is not supported for `zeebe:calledElement` variable propagation properties"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeDuration","timeCycle"]}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"},"name":{"const":"condition"}},"required":["type","name"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}},{"required":["feel"],"properties":{"feel":{"const":"required"}}}]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"},"name":{"const":"variableEvents"}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:executionListener","zeebe:taskListener"]}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"const":"Hidden"}},"anyOf":[{"required":["value"]},{"required":["generatedValue"]}]}},{"if":{"properties":{"type":{"const":"Hidden"},"binding":{"properties":{"type":{"not":{"const":"zeebe:userTask"}}},"required":["type"]}},"required":["type","binding"],"not":{"anyOf":[{"required":["value"]},{"required":["generatedValue"]}]}},"then":{"deprecated":true,"deprecationWarning":"Hidden property should specify either 'value' or 'generatedValue'"}},{"if":{"properties":{"editable":{"const":false},"feel":{"const":"optional"}},"required":["editable","feel"]},"then":{"deprecated":true,"deprecationWarning":"Using 'feel: optional' with 'editable: false' is invalid"}},{"if":{"properties":{"optional":{"const":true},"binding":{"properties":{"type":{"const":"zeebe:input"}},"required":["type"]}},"required":["optional","binding"]},"then":{"deprecated":true,"deprecationWarning":"'optional' with 'zeebe:input' binding is deprecated; an empty input mapping (resolved to 'null') should be used for Camunda 8.8+"}},{"$comment":"A `Configuration` property renders a configuration chooser, bound via `zeebe:input` (outbound) or `zeebe:property` (inbound), and references a compatible configuration template.","if":{"properties":{"type":{"const":"Configuration"}},"required":["type"]},"then":{"required":["configurationTemplate"],"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:property"]}},"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:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"]}},"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"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"enum":["processId","bindingType","versionTag","propagateAllParentVariables","propagateAllChildVariables"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]},"then":{"properties":{"property":{"enum":["expression","resultVariable"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:formDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["formId","externalReference","bindingType","versionTag"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable","versionTag","bindingType"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:assignmentDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:priorityDefinition"}},"required":["type"]},"then":{"properties":{"property":{"const":"priority"}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]},"then":{"properties":{"property":{"enum":["activeElementsCollection","outputCollection","outputElement"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskSchedule"}},"required":["type"]},"then":{"properties":{"property":{"enum":["dueDate","followUpDate"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"name"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"enum":["timeCycle","timeDate","timeDuration"]}},"required":["name"]}},{"allOf":[{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"condition"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"variableEvents"}},"required":["name"]}}]},{"allOf":[{"if":{"properties":{"type":{"const":"zeebe:executionListener"}},"required":["type"]},"then":{"properties":{"eventType":{"enum":["start","end"]}},"required":["eventType"]}},{"if":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]},"then":{"properties":{"eventType":{"enum":["creating","assigning","updating","completing","canceling"]}},"required":["eventType"]}},{"if":{"required":["headers"]},"then":{"properties":{"type":{"const":"zeebe:executionListener"}}}},{"if":{"properties":{"type":{"not":{"enum":["zeebe:executionListener","zeebe:taskListener"]}}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["eventType"]},{"required":["retries"]},{"required":["headers"]}]}}}]},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"},{"type":"zeebe:executionListener","eventType":"start","headers":[{"key":"authToken","value":"abc"}]},{"type":"zeebe:taskListener","eventType":"completing"}]}],"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:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:userTask","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule","zeebe:executionListener","zeebe:taskListener","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, zeebe:executionListener, zeebe:taskListener, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of the property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"Source of the output parameter for an output mapping (created with zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"Key of a task header (created with zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"Name of a binding property."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."},"eventType":{"$id":"#/properties/property/binding/eventType","type":"string","description":"The event type of a property binding (zeebe:executionListener, zeebe:taskListener)."},"retries":{"$id":"#/properties/property/binding/retries","type":"string","description":"The number of retries for a listener (zeebe:executionListener, zeebe:taskListener)."},"headers":{"$id":"#/properties/property/binding/headers","type":"array","description":"Headers for an execution listener (zeebe:executionListener).","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false}}}},"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","description":"Defines whether the property supports FEEL expressions. Values can be \"optional\" (toggle), \"required\", or \"static\" (for Boolean/Number fields, persisted as FEEL).","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","description":"Object that defines how a default value should be generated.","required":["type"],"properties":{"type":{"const":"uuid","description":"Value is generated as UUID."}}},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."},"configurationTemplate":{"$id":"#/properties/property/configurationTemplate","type":"string","description":"Identifies the compatible configuration template for a `Configuration` property. Matches the `id` of a configuration template. The Modeler uses it to filter the chooser to compatible configuration instances."},"configurationTemplateVersion":{"$id":"#/properties/property/configurationTemplateVersion","type":"integer","description":"Optional minimum version of the referenced configuration template for a `Configuration` property. When set, a chosen configuration whose template version is below this floor is flagged incompatible at design time. This is a design-time floor only; it is not persisted to the BPMN model."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}},{"items":{"allOf":[{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}}],"properties":{"choices":{"items":{"properties":{"condition":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/properties/condition"}}}}}}}]};const schema23 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema24 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const pattern4 = new RegExp("^=", "u");const pattern6 = new RegExp("^(100|[1-9]?[0-9])$", "u");const pattern8 = new RegExp("^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$", "u");const keyword0 = [];function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isEmpty === undefined){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.isEmpty !== undefined){if(typeof data.isEmpty !== "boolean"){const err9 = {instancePath:instancePath+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}var _valid1 = _errs17 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 3];}else {if(_valid1){valid2 = true;passing1 = 3;}}}}if(!valid2){const err10 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err11 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err12 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err13 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(68)))){emPropParams0 = obj0[err15.keyword];emParamsErrors0 = emErrors0[err15.keyword][err15.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err15);err15.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err16 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.allMatch !== undefined){let data7 = data.allMatch;if(Array.isArray(data7)){if(data7.length < 1){const err19 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs29 = errors;let valid14 = false;let passing2 = null;const _errs30 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.equals === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data8.equals !== undefined){let data9 = data8.equals;if(((typeof data9 !== "string") && (!(typeof data9 == "number"))) && (typeof data9 !== "boolean")){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs33 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.oneOf === undefined){const err22 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.oneOf !== undefined){let data10 = data8.oneOf;if(Array.isArray(data10)){const len2 = data10.length;for(let i2=0; i2<len2; i2++){let data11 = data10[i2];if((typeof data11 !== "string") && (!(typeof data11 == "number"))){const err23 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs33 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 1];}else {if(_valid2){valid14 = true;passing2 = 1;}const _errs38 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isActive === undefined){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data8.isActive !== undefined){if(typeof data8.isActive !== "boolean"){const err26 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid2 = _errs38 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 2];}else {if(_valid2){valid14 = true;passing2 = 2;}const _errs41 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isEmpty === undefined){const err27 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data8.isEmpty !== undefined){if(typeof data8.isEmpty !== "boolean"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}var _valid2 = _errs41 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 3];}else {if(_valid2){valid14 = true;passing2 = 3;}}}}if(!valid14){const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.property === undefined){const err30 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data8.type !== undefined){if("simple" !== data8.type){const err31 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data8.property !== undefined){if(typeof data8.property !== "string"){const err32 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}else {const err33 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.instancePath === instancePath+"/allMatch/" + i1)) && (err34.keyword in emErrors1)) && (err34.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(68)))){emPropParams1 = obj0[err34.keyword];emParamsErrors1 = emErrors1[err34.keyword][err34.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err34);err34.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err35 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}const emErrs1 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs1.push(err36);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err37 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid0 = _errs23 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err38 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs10 = errors;let valid7 = true;const _errs11 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.type !== undefined){const _errs13 = errors;const _errs14 = errors;if("Number" !== data0.type){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid9 = _errs14 === errors;if(valid9){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs15 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err10 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/1/then/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.allOf[1].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid1 = _errs15 === errors;valid7 = _valid1;}if(!valid7){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}const _errs19 = errors;let valid11 = true;const _errs20 = errors;const _errs21 = errors;let valid12 = false;const _errs22 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data0.type !== undefined){let data4 = data0.type;if(!((data4 === "String") || (data4 === "Text"))){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}var _valid3 = _errs22 === errors;if(_valid3){valid12 = true;}const _errs24 = errors;const _errs25 = errors;const _errs26 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid14 = _errs26 === errors;if(valid14){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var _valid3 = _errs24 === errors;if(_valid3 && valid12){valid12 = false;}else {if(_valid3){valid12 = true;}}if(!valid12){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var _valid2 = _errs20 === errors;errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}let ifClause0;if(_valid2){const _errs27 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err17 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/2/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs27 === errors;valid11 = _valid2;ifClause0 = "then";}else {const _errs30 = errors;const _errs31 = errors;const _errs32 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid16 = _errs32 === errors;if(valid16){const err19 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var _valid2 = _errs30 === errors;valid11 = _valid2;ifClause0 = "else";}if(!valid11){const err20 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data6 = data0.value;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err21 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err22 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err23 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err24 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err25 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data0.choices !== undefined){let data11 = data0.choices;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.value === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data12.name === undefined){const err27 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data12.name !== undefined){if(typeof data12.name !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data12.value !== undefined){if(typeof data12.value !== "string"){const err29 = {instancePath:instancePath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err31 of vErrors){if((((((err31.keyword !== "errorMessage") && (!err31.emUsed)) && (err31.instancePath === instancePath+"/" + i0+"/choices/" + i1)) && (err31.keyword in emErrors0)) && (err31.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err31.schemaPath.slice(40)))){emErrors0[err31.keyword].push(err31);err31.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err32 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema22.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}const emErrs2 = [];for(const err33 of vErrors){if(!err33.emUsed){emErrs2.push(err33);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err34 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data0.constraints !== undefined){let data15 = data0.constraints;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.notEmpty !== undefined){if(typeof data15.notEmpty !== "boolean"){const err35 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data15.minLength !== undefined){if(!(typeof data15.minLength == "number")){const err36 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data15.maxLength !== undefined){if(!(typeof data15.maxLength == "number")){const err37 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data15.pattern !== undefined){let data19 = data15.pattern;const _errs60 = errors;let valid23 = false;let passing1 = null;const _errs61 = errors;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.value !== undefined){if(typeof data19.value !== "string"){const err38 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data19.message !== undefined){if(typeof data19.message !== "string"){const err39 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}else {const err40 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid4 = _errs61 === errors;if(_valid4){valid23 = true;passing1 = 0;}const _errs67 = errors;if(typeof data19 !== "string"){const err41 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid4 = _errs67 === errors;if(_valid4 && valid23){valid23 = false;passing1 = [passing1, 1];}else {if(_valid4){valid23 = true;passing1 = 1;}}if(!valid23){const err42 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}}}else {const err43 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err44 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(Array.isArray(data)){const len2 = data.length;for(let i2=0; i2<len2; i2++){let data23 = data[i2];const _errs76 = errors;let valid28 = true;const _errs77 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {if(data23.binding !== undefined){let data24 = data23.binding;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if((data24.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data24.type !== undefined){if("property" !== data24.type){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}}}}var _valid5 = _errs77 === errors;errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}if(_valid5){const _errs80 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){let data26 = data23.type;if(!((((((data26 === "String") || (data26 === "Text")) || (data26 === "Hidden")) || (data26 === "Dropdown")) || (data26 === "Boolean")) || (data26 === "Number"))){const err50 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(errors > 0){const emErrs3 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.instancePath === instancePath+"/" + i2+"/type") || ((err51.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err51.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err51.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err51.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs3.push(err51);err51.emUsed = true;}}if(emErrs3.length){const err52 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs3},message:"invalid property type " + JSON.stringify(data26) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs4 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs4.push(err53);}}vErrors = emErrs4;errors = emErrs4.length;}}}var _valid5 = _errs80 === errors;valid28 = _valid5;}if(!valid28){const err54 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}const _errs83 = errors;let valid32 = true;const _errs84 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(data23.binding !== undefined){let data27 = data23.binding;const _errs85 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data27.type !== undefined){let data28 = data27.type;if(!(((((((((((((((((data28 === "zeebe:input") || (data28 === "zeebe:output")) || (data28 === "zeebe:property")) || (data28 === "zeebe:taskHeader")) || (data28 === "zeebe:taskDefinition:type")) || (data28 === "bpmn:Message#property")) || (data28 === "bpmn:Message#zeebe:subscription#property")) || (data28 === "zeebe:taskDefinition")) || (data28 === "zeebe:calledElement")) || (data28 === "zeebe:linkedResource")) || (data28 === "zeebe:formDefinition")) || (data28 === "zeebe:calledDecision")) || (data28 === "zeebe:script")) || (data28 === "zeebe:assignmentDefinition")) || (data28 === "zeebe:priorityDefinition")) || (data28 === "zeebe:adHoc")) || (data28 === "zeebe:taskSchedule"))){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}}var valid33 = _errs85 === errors;}else {var valid33 = true;}if(valid33){if(data23.type !== undefined){const _errs87 = errors;const _errs88 = errors;const _errs89 = errors;if("Configuration" !== data23.type){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid35 = _errs89 === errors;if(valid35){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}var valid33 = _errs87 === errors;}else {var valid33 = true;}}}}var _valid6 = _errs84 === errors;errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}if(_valid6){const _errs90 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){let data30 = data23.type;if(!((((((data30 === "String") || (data30 === "Text")) || (data30 === "Hidden")) || (data30 === "Dropdown")) || (data30 === "Boolean")) || (data30 === "Number"))){const err60 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs5 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.instancePath === instancePath+"/" + i2+"/type") || ((err61.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err61.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err61.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err61.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs5.push(err61);err61.emUsed = true;}}if(emErrs5.length){const err62 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data30) + " for binding type " + JSON.stringify(data23 && data23.binding && data23.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs6 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs6.push(err63);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid6 = _errs90 === errors;valid32 = _valid6;}if(!valid32){const err64 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}const _errs93 = errors;let valid37 = true;const _errs94 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.optional === undefined) && ("optional")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data23.optional !== undefined){if(true !== data23.optional){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}var _valid7 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid7){const _errs96 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.binding !== undefined){let data32 = data23.binding;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.type === undefined){const err67 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data32.type !== undefined){let data33 = data32.type;if(!((((data33 === "zeebe:input") || (data33 === "zeebe:output")) || (data33 === "zeebe:property")) || (data33 === "zeebe:taskHeader"))){const err68 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs7 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.instancePath === instancePath+"/" + i2+"/binding/type") || ((err69.instancePath.indexOf(instancePath+"/" + i2+"/binding/type") === 0) && (err69.instancePath[instancePath+"/" + i2+"/binding/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs7.push(err69);err69.emUsed = true;}}if(emErrs7.length){const err70 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"optional is not supported for binding type " + JSON.stringify(data33) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs8 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs8.push(err71);}}vErrors = emErrs8;errors = emErrs8.length;}}}}}var _valid7 = _errs96 === errors;valid37 = _valid7;}if(!valid37){const err72 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs100 = errors;let valid41 = true;const _errs101 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.optional === undefined) && ("optional")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data23.optional !== undefined){if(true !== data23.optional){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}}var _valid8 = _errs101 === errors;errors = _errs100;if(vErrors !== null){if(_errs100){vErrors.length = _errs100;}else {vErrors = null;}}if(_valid8){const _errs103 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.constraints !== undefined){let data35 = data23.constraints;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.notEmpty === undefined){const err75 = {instancePath:instancePath+"/" + i2+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data35.notEmpty !== undefined){if(false !== data35.notEmpty){const err76 = {instancePath:instancePath+"/" + i2+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};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.instancePath === instancePath+"/" + i2+"/constraints/notEmpty") || ((err77.instancePath.indexOf(instancePath+"/" + i2+"/constraints/notEmpty") === 0) && (err77.instancePath[instancePath+"/" + i2+"/constraints/notEmpty".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {instancePath:instancePath+"/" + i2+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"optional is not allowed for truthy \"notEmpty\" constraint"};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 _valid8 = _errs103 === errors;valid41 = _valid8;}if(!valid41){const err80 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs107 = errors;let valid45 = true;const _errs108 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data23.feel !== undefined){const _errs110 = errors;const _errs111 = errors;if(null !== data23.feel){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid47 = _errs111 === errors;if(valid47){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}}}}var _valid9 = _errs108 === errors;errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}if(_valid9){const _errs112 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type === undefined){const err84 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data23.type !== undefined){let data38 = data23.type;if(!((((data38 === "String") || (data38 === "Text")) || (data38 === "Number")) || (data38 === "Boolean"))){const err85 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(errors > 0){const emErrs11 = [];for(const err86 of vErrors){if(((((err86.keyword !== "errorMessage") && (!err86.emUsed)) && ((err86.instancePath === instancePath+"/" + i2+"/type") || ((err86.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err86.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err86.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err86.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs11.push(err86);err86.emUsed = true;}}if(emErrs11.length){const err87 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}const emErrs12 = [];for(const err88 of vErrors){if(!err88.emUsed){emErrs12.push(err88);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid9 = _errs112 === errors;valid45 = _valid9;}if(!valid45){const err89 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const _errs115 = errors;let valid49 = true;const _errs116 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.language === undefined) && ("language")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data23.language !== undefined){const _errs118 = errors;const _errs119 = errors;if(null !== data23.language){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid51 = _errs119 === errors;if(valid51){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}}}}}var _valid10 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid10){const _errs120 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){if(!(data23.type === "Text")){const err93 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(errors > 0){const emErrs13 = [];for(const err94 of vErrors){if(((((err94.keyword !== "errorMessage") && (!err94.emUsed)) && ((err94.instancePath === instancePath+"/" + i2+"/type") || ((err94.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err94.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err94.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err94.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs13.push(err94);err94.emUsed = true;}}if(emErrs13.length){const err95 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const emErrs14 = [];for(const err96 of vErrors){if(!err96.emUsed){emErrs14.push(err96);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid10 = _errs120 === errors;valid49 = _valid10;}if(!valid49){const err97 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs123 = errors;let valid53 = true;const _errs124 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.value === undefined) && ("value")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var _valid11 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid11){const _errs125 = errors;const _errs126 = errors;const _errs127 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.generatedValue === undefined) && ("generatedValue")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var valid54 = _errs127 === errors;if(valid54){const err100 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}}var _valid11 = _errs125 === errors;valid53 = _valid11;}if(!valid53){const err101 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs129 = errors;let valid55 = true;const _errs130 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data23.type !== undefined){let data41 = data23.type;if(!((data41 === "Boolean") || (data41 === "Dropdown"))){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid12 = _errs130 === errors;errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}if(_valid12){const _errs132 = errors;const _errs133 = errors;const _errs134 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.generatedValue === undefined) && ("generatedValue")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var valid57 = _errs134 === errors;if(valid57){const err105 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}}var _valid12 = _errs132 === errors;valid55 = _valid12;}if(!valid55){const err106 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const _errs136 = errors;let valid58 = true;const _errs137 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data23.type !== undefined){let data42 = data23.type;if(!((data42 === "String") || (data42 === "Text"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid13 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid13){const _errs139 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.feel !== undefined){let data43 = data23.feel;if(!((data43 === "optional") || (data43 === "required"))){const err109 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}var _valid13 = _errs139 === errors;valid58 = _valid13;}if(!valid58){const err110 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs142 = errors;let valid61 = true;const _errs143 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data23.feel !== undefined){if("required" !== data23.feel){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid14 = _errs143 === errors;errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}if(_valid14){const _errs145 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data45 = data23.value;const _errs147 = errors;let valid64 = false;let passing2 = null;const _errs148 = errors;if(typeof data45 === "string"){if(!pattern4.test(data45)){const err113 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^="},message:"must match pattern \""+"^="+"\""};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var _valid15 = _errs148 === errors;if(_valid15){valid64 = true;passing2 = 0;}const _errs150 = errors;if(typeof data45 !== "string"){const err115 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs152 = errors;const _errs153 = errors;if(typeof data45 === "string"){if(!pattern4.test(data45)){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid65 = _errs153 === errors;if(valid65){const err117 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}}const warning0 = {
|
|
781
|
+
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","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 versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","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=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}],"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"processId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:formDefinition","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"errorMessage":"When using ${0/0/binding/type}, \"zeebe:userTask\" must be set on the same element"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:BusinessRuleTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:BusinessRuleTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"decisionId","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ScriptTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ScriptTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"expression"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."}]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["property","type"]},"value":{"const":"versionTag"}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:calledElement","zeebe:formDefinition","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property"]}},"required":["binding"],"not":{"required":["condition"]}}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"}},"required":["property"]},"value":{"const":"versionTag"},"type":{"const":"Hidden"}},"required":["binding","value","type"]},"errorMessage":"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"}},"required":["properties"]}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"formId"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"externalReference"}},"required":["property","type"]}},"required":["binding"]}},"errorMessage":"\"formId\" and \"externalReference\" cannot be used together"}},"required":["properties"]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]}},{"$comment":"When zeebe:adHoc output properties are used, both required bindings must be present together","if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"allOf":[{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"},{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"}]}},"required":["properties"]}},{"$comment":"When zeebe:taskDefinition is used, bpmn:cancelRemainingInstances, bpmn:completionCondition, and zeebe:activeElementsCollection properties are not allowed","if":{"allOf":[{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},{"properties":{"properties":{"contains":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:taskDefinition"},"property":{"const":"type"}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]}]},"then":{"allOf":[{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"enum":["cancelRemainingInstances","completionCondition"]}},"required":["type","name"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/name} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]},{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"activeElementsCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/property} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]}]}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]},"eventDefinition":{"const":"bpmn:SignalEventDefinition"}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:SignalEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"errorMessage":"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"}}}}]},{"$defs":{"timeDateProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDate"}},"required":["type","name"]}},"required":["binding"]},"timeCycleProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeCycle"}},"required":["type","name"]}},"required":["binding"]},"timeDurationProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDuration"}},"required":["type","name"]}},"required":["binding"]}},"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeCycle","timeDuration"]}},"required":["type","name"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"errorMessage":{"required":{"eventDefinition":"Timer bindings require elementType.eventDefinition to equal \"bpmn:TimerEventDefinition\""}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"oneOf":[{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty"}}],"errorMessage":"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."}},"required":["properties"]}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"const":"bpmn:IntermediateCatchEvent"}},"required":["eventDefinition","value"]}},"required":["elementType"]},"then":{"properties":{"properties":{"not":{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"},"errorMessage":"Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"}}}}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"propagateAllChildVariables"}},"required":["property","type"]},"value":{"const":true}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]}},"required":["binding"]}},"errorMessage":"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"}},"required":["properties"]}},{"if":{"properties":{"entriesVisible":{"type":"object","properties":{"outputs":{"const":true}},"required":["outputs"]}},"required":["entriesVisible"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]}},"required":["binding"]}},"errorMessage":"Binding with `type`=`zeebe:output` must not be used when `entriesVisible.outputs` is set to `true`"}}}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:UserTask"]}}}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:executionListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["entriesVisible"],"properties":{"entriesVisible":{"type":"object","required":["executionListeners"],"properties":{"executionListeners":{"const":false}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"entriesVisible":{"properties":{"taskListeners":{"const":false}}}}}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:jobPriorityDefinition"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ScriptTask","bpmn:BusinessRuleTask","bpmn:ServiceTask","bpmn:SendTask","bpmn:AdHocSubProcess","bpmn:Process","bpmn:IntermediateThrowEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:IntermediateThrowEvent","bpmn:EndEvent"]}}},"then":{"properties":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"}},"required":["eventDefinition"]}}]}}},{"required":["appliesTo"],"properties":{"appliesTo":{"type":"array","minItems":1,"items":{"enum":["bpmn:ScriptTask","bpmn:BusinessRuleTask","bpmn:ServiceTask","bpmn:SendTask","bpmn:AdHocSubProcess","bpmn:Process"]}}}}]}}]},{"allOf":[{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"completionCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:SequenceFlow"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:SequenceFlow"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"conditionExpression"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ComplexGateway"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ComplexGateway"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"activationCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}}]}],"properties":{"icon":{"properties":{"contents":{"errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","description":"Define the event definition type for a typed event template. Otherwise, ignore.","enum":["bpmn:MessageEventDefinition","bpmn:SignalEventDefinition","bpmn:TimerEventDefinition","bpmn:ConditionalEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:ConditionalEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}}]}]},"configurationTemplates":{"items":{"properties":{"properties":{"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the configuration template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"$comment":"Only atomic property types are supported; `Configuration` is forbidden.","properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"]}}},{"$comment":"Configuration field values are atomic literals or secret references, never FEEL expressions.","not":{"required":["feel"]}},{"$comment":"`optional` is not supported in configuration templates.","not":{"required":["optional"]}}],"properties":{"binding":{"type":"object","description":"Specifying how the property is mapped to the configuration value. Only the `property` binding is supported.","required":["type","name"],"properties":{"type":{"type":"string","description":"The type of a property binding. Always \"property\" for configuration templates.","const":"property"},"name":{"type":"string","description":"The key of the property in the configuration's value object."}}},"secret":{"type":"boolean","description":"Marks the property as a field that typically holds a secret reference. Used by the configuration editor as a rendering hint (e.g. obfuscated input or secret picker); not enforced."},"tooltip":{"type":"string","description":"Hints for the control field."}}}},{"items":{"allOf":[{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}]},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]}}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property in conditions."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the configuration editor and its value should be included in the configuration value.","oneOf":[{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition"},{"properties":{"allMatch":{"type":"array","items":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}}],"properties":{"choices":{"items":{"properties":{"condition":{"$ref":"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition"}}}}}}}]}}}}}};const schema29 = {"items":{"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"type":["string","number","boolean"]},"choices":{"items":{"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}}}}};const schema30 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema31 = {"oneOf":[{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}]};const schema36 = {"items":{"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern13 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = /*@__PURE__*/ requireEqual().default;const func12 = /*@__PURE__*/ requireUcs2length().default;const schema22 = {"allOf":[{"type":"array","description":"List of the template's properties.","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"}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","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":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:jobPriorityDefinition","zeebe:adHoc","zeebe:taskSchedule"]}},"required":["type"]},"type":{"not":{"const":"Configuration"}}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"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","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"oneOf":[{"type":"string","pattern":"^="},{"type":"string","not":{"pattern":"^="},"deprecated":true}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"default":"static"}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"formId\" cannot be a FEEL expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"enum":["externalReference","formId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"enum":["resultVariable","decisionId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"expression"}},"required":["type","property"]}},"required":["type","binding"]},"then":{"properties":{"feel":{"enum":["required"]}},"required":["feel"]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"enum":["resultVariable","expression"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type","value"],"properties":{"choices":{"type":"array","items":{"properties":{"value":{"enum":["latest","versionTag","deployment"]}}}},"type":{"enum":["Hidden","Dropdown"],"errorMessage":"Incorrect type ${0}. Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"},"value":{"enum":["latest","versionTag","deployment"]}}}},{"if":{"properties":{"binding":{"properties":{"property":{"const":"versionTag"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Dropdown","String","Text"],"errorMessage":"Incorrect type ${0}. Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"}}},{"not":{"required":["feel"]},"errorMessage":"Binding with `property`=`versionTag` does not support `feel`"}]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:assignmentDefinition"},"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding"]},"then":{"anyOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Number","Dropdown"]}}},{"required":["type","feel"],"properties":{"type":{"enum":["String","Text"]},"feel":{"const":"required"}}}]}},{"if":{"type":"object","properties":{"type":{"const":"Number"},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","value","type"]},"then":{"properties":{"value":{"type":"integer","minimum":0,"maximum":100}}}},{"if":{"type":"object","properties":{"type":{"enum":["Hidden","Dropdown"]},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"},"choices":{"items":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"}}}}}}}]},{"allOf":[{"$comment":"AdHoc output properties require string-based types (Hidden, String, Text, or Dropdown)","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"$comment":"outputCollection properties must not be FEEL expressions","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"outputCollection\" cannot be a FEEL expression"}}]},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Dropdown","Text"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding","value"],"not":{"required":["feel"]}},"then":{"properties":{"value":{"type":"string","pattern":"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$","description":"The value must be conforming to an ISO 8601 combined date and time representation.","errorMessage":"Must be conforming to an ISO 8601 combined date and time representation"}},"required":["value"]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"enum":["propagateAllParentVariables","propagateAllChildVariables"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","Boolean"]},"value":{"type":"boolean"}},"not":{"required":["feel"]},"errorMessage":"FEEL is not supported for `zeebe:calledElement` variable propagation properties"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeDuration","timeCycle"]}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"},"name":{"const":"condition"}},"required":["type","name"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}},{"required":["feel"],"properties":{"feel":{"const":"required"}}}]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"},"name":{"const":"variableEvents"}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:executionListener","zeebe:taskListener"]}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"const":"Hidden"}},"anyOf":[{"required":["value"]},{"required":["generatedValue"]}]}},{"if":{"properties":{"type":{"const":"Hidden"},"binding":{"properties":{"type":{"not":{"const":"zeebe:userTask"}}},"required":["type"]}},"required":["type","binding"],"not":{"anyOf":[{"required":["value"]},{"required":["generatedValue"]}]}},"then":{"deprecated":true,"deprecationWarning":"Hidden property should specify either 'value' or 'generatedValue'"}},{"if":{"properties":{"editable":{"const":false},"feel":{"const":"optional"}},"required":["editable","feel"]},"then":{"deprecated":true,"deprecationWarning":"Using 'feel: optional' with 'editable: false' is invalid"}},{"if":{"properties":{"optional":{"const":true},"binding":{"properties":{"type":{"const":"zeebe:input"}},"required":["type"]}},"required":["optional","binding"]},"then":{"deprecated":true,"deprecationWarning":"'optional' with 'zeebe:input' binding is deprecated; an empty input mapping (resolved to 'null') should be used for Camunda 8.8+"}},{"allOf":[{"if":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:jobPriorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden","Number","Dropdown"]}},"required":["type"]}},{"if":{"type":"object","properties":{"type":{"const":"Number"},"binding":{"properties":{"type":{"const":"zeebe:jobPriorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","value","type"]},"then":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"string","pattern":"^=.*"}]}}}},{"if":{"type":"object","properties":{"type":{"enum":["Hidden","Dropdown"]},"binding":{"properties":{"type":{"const":"zeebe:jobPriorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"value":{"type":"string","pattern":"^(=.*|-?[0-9]+)$"},"choices":{"items":{"properties":{"value":{"type":"string","pattern":"^(=.*|-?[0-9]+)$"}}}}}}}]},{"$comment":"A `Configuration` property renders a configuration chooser, bound via `zeebe:input` (outbound) or `zeebe:property` (inbound), and references a compatible configuration template.","if":{"properties":{"type":{"const":"Configuration"}},"required":["type"]},"then":{"required":["configurationTemplate"],"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:property"]}},"required":["type"]},"configurationTemplate":{"$id":"#/properties/property/configurationTemplate","type":"string","description":"Identifies the compatible configuration template for a `Configuration` property. Matches the `id` of a configuration template. The Modeler uses it to filter the chooser to compatible configuration instances."},"configurationTemplateVersion":{"$id":"#/properties/property/configurationTemplateVersion","type":"integer","description":"Optional minimum version of the referenced configuration template for a `Configuration` property. When set, a chosen configuration whose template version is below this floor is flagged incompatible at design time. This is a design-time floor only; it is not persisted to the BPMN model."}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"businessId"}},"required":["type","property"]}},"required":["binding"]},"then":{"properties":{"value":{"if":{"type":"string","not":{"pattern":"^="}},"then":{"maxLength":255}}}}}],"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:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"]}},"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"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"enum":["processId","bindingType","versionTag","propagateAllParentVariables","propagateAllChildVariables","businessId"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]},"then":{"properties":{"property":{"enum":["expression","resultVariable"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:formDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["formId","externalReference","bindingType","versionTag"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable","versionTag","bindingType"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:assignmentDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:priorityDefinition"}},"required":["type"]},"then":{"properties":{"property":{"const":"priority"}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]},"then":{"properties":{"property":{"enum":["activeElementsCollection","outputCollection","outputElement"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskSchedule"}},"required":["type"]},"then":{"properties":{"property":{"enum":["dueDate","followUpDate"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"name"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"enum":["timeCycle","timeDate","timeDuration"]}},"required":["name"]}},{"allOf":[{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"condition"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"variableEvents"}},"required":["name"]}}]},{"allOf":[{"if":{"properties":{"type":{"const":"zeebe:executionListener"}},"required":["type"]},"then":{"properties":{"eventType":{"enum":["start","end"]}},"required":["eventType"]}},{"if":{"properties":{"type":{"const":"zeebe:taskListener"}},"required":["type"]},"then":{"properties":{"eventType":{"enum":["creating","assigning","updating","completing","canceling"]}},"required":["eventType"]}},{"if":{"required":["headers"]},"then":{"properties":{"type":{"const":"zeebe:executionListener"}}}},{"if":{"properties":{"type":{"not":{"enum":["zeebe:executionListener","zeebe:taskListener"]}}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["eventType"]},{"required":["retries"]},{"required":["headers"]}]}}}]},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"},{"type":"zeebe:executionListener","eventType":"start","headers":[{"key":"authToken","value":"abc"}]},{"type":"zeebe:taskListener","eventType":"completing"}]},{"if":{"properties":{"type":{"const":"zeebe:jobPriorityDefinition"}},"required":["type"]},"then":{"properties":{"property":{"const":"priority"}},"required":["property"]}}],"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:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:userTask","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:jobPriorityDefinition","zeebe:adHoc","zeebe:taskSchedule","zeebe:executionListener","zeebe:taskListener","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:jobPriorityDefinition, zeebe:adHoc, zeebe:taskSchedule, zeebe:executionListener, zeebe:taskListener, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of the property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"Source of the output parameter for an output mapping (created with zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"Key of a task header (created with zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"Name of a binding property."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."},"eventType":{"$id":"#/properties/property/binding/eventType","type":"string","description":"The event type of a property binding (zeebe:executionListener, zeebe:taskListener)."},"retries":{"$id":"#/properties/property/binding/retries","type":"string","description":"The number of retries for a listener (zeebe:executionListener, zeebe:taskListener)."},"headers":{"$id":"#/properties/property/binding/headers","type":"array","description":"Headers for an execution listener (zeebe:executionListener).","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false}}}},"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","description":"Defines whether the property supports FEEL expressions. Values can be \"optional\" (toggle), \"required\", or \"static\" (for Boolean/Number fields, persisted as FEEL).","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","description":"Object that defines how a default value should be generated.","required":["type"],"properties":{"type":{"const":"uuid","description":"Value is generated as UUID."}}},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}},{"items":{"allOf":[{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}}],"properties":{"choices":{"items":{"properties":{"condition":{"$ref":"#/definitions/properties/allOf/2/items/allOf/0/properties/condition"}}}}}}}]};const schema23 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema24 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]},{"properties":{"isEmpty":{"type":"boolean","description":"Checks if the referenced property's value is empty (true) or not empty (false)."}},"required":["isEmpty"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const pattern4 = new RegExp("^=", "u");const pattern6 = new RegExp("^(100|[1-9]?[0-9])$", "u");const pattern8 = new RegExp("^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$", "u");const pattern9 = new RegExp("^=.*", "u");const pattern10 = new RegExp("^(=.*|-?[0-9]+)$", "u");const keyword0 = [];function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isEmpty === undefined){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.isEmpty !== undefined){if(typeof data.isEmpty !== "boolean"){const err9 = {instancePath:instancePath+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}var _valid1 = _errs17 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 3];}else {if(_valid1){valid2 = true;passing1 = 3;}}}}if(!valid2){const err10 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err11 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err12 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err13 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(68)))){emPropParams0 = obj0[err15.keyword];emParamsErrors0 = emErrors0[err15.keyword][err15.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err15);err15.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err16 = {instancePath,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.allMatch !== undefined){let data7 = data.allMatch;if(Array.isArray(data7)){if(data7.length < 1){const err19 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs29 = errors;let valid14 = false;let passing2 = null;const _errs30 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.equals === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data8.equals !== undefined){let data9 = data8.equals;if(((typeof data9 !== "string") && (!(typeof data9 == "number"))) && (typeof data9 !== "boolean")){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs33 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.oneOf === undefined){const err22 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.oneOf !== undefined){let data10 = data8.oneOf;if(Array.isArray(data10)){const len2 = data10.length;for(let i2=0; i2<len2; i2++){let data11 = data10[i2];if((typeof data11 !== "string") && (!(typeof data11 == "number"))){const err23 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs33 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 1];}else {if(_valid2){valid14 = true;passing2 = 1;}const _errs38 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isActive === undefined){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data8.isActive !== undefined){if(typeof data8.isActive !== "boolean"){const err26 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid2 = _errs38 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 2];}else {if(_valid2){valid14 = true;passing2 = 2;}const _errs41 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isEmpty === undefined){const err27 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data8.isEmpty !== undefined){if(typeof data8.isEmpty !== "boolean"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}var _valid2 = _errs41 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 3];}else {if(_valid2){valid14 = true;passing2 = 3;}}}}if(!valid14){const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.property === undefined){const err30 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data8.type !== undefined){if("simple" !== data8.type){const err31 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data8.property !== undefined){if(typeof data8.property !== "string"){const err32 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}else {const err33 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.instancePath === instancePath+"/allMatch/" + i1)) && (err34.keyword in emErrors1)) && (err34.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(68)))){emPropParams1 = obj0[err34.keyword];emParamsErrors1 = emErrors1[err34.keyword][err34.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err34);err34.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err35 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}const emErrs1 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs1.push(err36);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err37 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid0 = _errs23 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err38 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs10 = errors;let valid7 = true;const _errs11 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.type !== undefined){const _errs13 = errors;const _errs14 = errors;if("Number" !== data0.type){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid9 = _errs14 === errors;if(valid9){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs15 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err10 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/1/then/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.allOf[1].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid1 = _errs15 === errors;valid7 = _valid1;}if(!valid7){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}const _errs19 = errors;let valid11 = true;const _errs20 = errors;const _errs21 = errors;let valid12 = false;const _errs22 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data0.type !== undefined){let data4 = data0.type;if(!((data4 === "String") || (data4 === "Text"))){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}var _valid3 = _errs22 === errors;if(_valid3){valid12 = true;}const _errs24 = errors;const _errs25 = errors;const _errs26 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid14 = _errs26 === errors;if(valid14){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var _valid3 = _errs24 === errors;if(_valid3 && valid12){valid12 = false;}else {if(_valid3){valid12 = true;}}if(!valid12){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var _valid2 = _errs20 === errors;errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}let ifClause0;if(_valid2){const _errs27 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err17 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/2/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs27 === errors;valid11 = _valid2;ifClause0 = "then";}else {const _errs30 = errors;const _errs31 = errors;const _errs32 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid16 = _errs32 === errors;if(valid16){const err19 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var _valid2 = _errs30 === errors;valid11 = _valid2;ifClause0 = "else";}if(!valid11){const err20 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data6 = data0.value;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err21 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err22 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err23 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err24 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err25 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data0.choices !== undefined){let data11 = data0.choices;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.value === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data12.name === undefined){const err27 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data12.name !== undefined){if(typeof data12.name !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data12.value !== undefined){if(typeof data12.value !== "string"){const err29 = {instancePath:instancePath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err31 of vErrors){if((((((err31.keyword !== "errorMessage") && (!err31.emUsed)) && (err31.instancePath === instancePath+"/" + i0+"/choices/" + i1)) && (err31.keyword in emErrors0)) && (err31.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err31.schemaPath.slice(40)))){emErrors0[err31.keyword].push(err31);err31.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err32 = {instancePath:instancePath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema22.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}const emErrs2 = [];for(const err33 of vErrors){if(!err33.emUsed){emErrs2.push(err33);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err34 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data0.constraints !== undefined){let data15 = data0.constraints;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.notEmpty !== undefined){if(typeof data15.notEmpty !== "boolean"){const err35 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data15.minLength !== undefined){if(!(typeof data15.minLength == "number")){const err36 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data15.maxLength !== undefined){if(!(typeof data15.maxLength == "number")){const err37 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data15.pattern !== undefined){let data19 = data15.pattern;const _errs60 = errors;let valid23 = false;let passing1 = null;const _errs61 = errors;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.value !== undefined){if(typeof data19.value !== "string"){const err38 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data19.message !== undefined){if(typeof data19.message !== "string"){const err39 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}else {const err40 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid4 = _errs61 === errors;if(_valid4){valid23 = true;passing1 = 0;}const _errs67 = errors;if(typeof data19 !== "string"){const err41 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid4 = _errs67 === errors;if(_valid4 && valid23){valid23 = false;passing1 = [passing1, 1];}else {if(_valid4){valid23 = true;passing1 = 1;}}if(!valid23){const err42 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}}}else {const err43 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err44 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(Array.isArray(data)){const len2 = data.length;for(let i2=0; i2<len2; i2++){let data23 = data[i2];const _errs76 = errors;let valid28 = true;const _errs77 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {if(data23.binding !== undefined){let data24 = data23.binding;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if((data24.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data24.type !== undefined){if("property" !== data24.type){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}}}}var _valid5 = _errs77 === errors;errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}if(_valid5){const _errs80 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){let data26 = data23.type;if(!((((((data26 === "String") || (data26 === "Text")) || (data26 === "Hidden")) || (data26 === "Dropdown")) || (data26 === "Boolean")) || (data26 === "Number"))){const err50 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(errors > 0){const emErrs3 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.instancePath === instancePath+"/" + i2+"/type") || ((err51.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err51.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err51.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err51.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs3.push(err51);err51.emUsed = true;}}if(emErrs3.length){const err52 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs3},message:"invalid property type " + JSON.stringify(data26) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs4 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs4.push(err53);}}vErrors = emErrs4;errors = emErrs4.length;}}}var _valid5 = _errs80 === errors;valid28 = _valid5;}if(!valid28){const err54 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}const _errs83 = errors;let valid32 = true;const _errs84 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(data23.binding !== undefined){let data27 = data23.binding;const _errs85 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.type === undefined) && ("type")){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data27.type !== undefined){let data28 = data27.type;if(!((((((((((((((((((data28 === "zeebe:input") || (data28 === "zeebe:output")) || (data28 === "zeebe:property")) || (data28 === "zeebe:taskHeader")) || (data28 === "zeebe:taskDefinition:type")) || (data28 === "bpmn:Message#property")) || (data28 === "bpmn:Message#zeebe:subscription#property")) || (data28 === "zeebe:taskDefinition")) || (data28 === "zeebe:calledElement")) || (data28 === "zeebe:linkedResource")) || (data28 === "zeebe:formDefinition")) || (data28 === "zeebe:calledDecision")) || (data28 === "zeebe:script")) || (data28 === "zeebe:assignmentDefinition")) || (data28 === "zeebe:priorityDefinition")) || (data28 === "zeebe:jobPriorityDefinition")) || (data28 === "zeebe:adHoc")) || (data28 === "zeebe:taskSchedule"))){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}}var valid33 = _errs85 === errors;}else {var valid33 = true;}if(valid33){if(data23.type !== undefined){const _errs87 = errors;const _errs88 = errors;const _errs89 = errors;if("Configuration" !== data23.type){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid35 = _errs89 === errors;if(valid35){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}var valid33 = _errs87 === errors;}else {var valid33 = true;}}}}var _valid6 = _errs84 === errors;errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}if(_valid6){const _errs90 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){let data30 = data23.type;if(!((((((data30 === "String") || (data30 === "Text")) || (data30 === "Hidden")) || (data30 === "Dropdown")) || (data30 === "Boolean")) || (data30 === "Number"))){const err60 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs5 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.instancePath === instancePath+"/" + i2+"/type") || ((err61.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err61.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err61.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err61.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs5.push(err61);err61.emUsed = true;}}if(emErrs5.length){const err62 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data30) + " for binding type " + JSON.stringify(data23 && data23.binding && data23.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs6 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs6.push(err63);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid6 = _errs90 === errors;valid32 = _valid6;}if(!valid32){const err64 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}const _errs93 = errors;let valid37 = true;const _errs94 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.optional === undefined) && ("optional")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data23.optional !== undefined){if(true !== data23.optional){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}var _valid7 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid7){const _errs96 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.binding !== undefined){let data32 = data23.binding;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.type === undefined){const err67 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data32.type !== undefined){let data33 = data32.type;if(!((((data33 === "zeebe:input") || (data33 === "zeebe:output")) || (data33 === "zeebe:property")) || (data33 === "zeebe:taskHeader"))){const err68 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs7 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.instancePath === instancePath+"/" + i2+"/binding/type") || ((err69.instancePath.indexOf(instancePath+"/" + i2+"/binding/type") === 0) && (err69.instancePath[instancePath+"/" + i2+"/binding/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs7.push(err69);err69.emUsed = true;}}if(emErrs7.length){const err70 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"optional is not supported for binding type " + JSON.stringify(data33) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs8 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs8.push(err71);}}vErrors = emErrs8;errors = emErrs8.length;}}}}}var _valid7 = _errs96 === errors;valid37 = _valid7;}if(!valid37){const err72 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs100 = errors;let valid41 = true;const _errs101 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.optional === undefined) && ("optional")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data23.optional !== undefined){if(true !== data23.optional){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}}var _valid8 = _errs101 === errors;errors = _errs100;if(vErrors !== null){if(_errs100){vErrors.length = _errs100;}else {vErrors = null;}}if(_valid8){const _errs103 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.constraints !== undefined){let data35 = data23.constraints;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.notEmpty === undefined){const err75 = {instancePath:instancePath+"/" + i2+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data35.notEmpty !== undefined){if(false !== data35.notEmpty){const err76 = {instancePath:instancePath+"/" + i2+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};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.instancePath === instancePath+"/" + i2+"/constraints/notEmpty") || ((err77.instancePath.indexOf(instancePath+"/" + i2+"/constraints/notEmpty") === 0) && (err77.instancePath[instancePath+"/" + i2+"/constraints/notEmpty".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {instancePath:instancePath+"/" + i2+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"optional is not allowed for truthy \"notEmpty\" constraint"};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 _valid8 = _errs103 === errors;valid41 = _valid8;}if(!valid41){const err80 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs107 = errors;let valid45 = true;const _errs108 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data23.feel !== undefined){const _errs110 = errors;const _errs111 = errors;if(null !== data23.feel){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid47 = _errs111 === errors;if(valid47){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}}}}}var _valid9 = _errs108 === errors;errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}if(_valid9){const _errs112 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type === undefined){const err84 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data23.type !== undefined){let data38 = data23.type;if(!((((data38 === "String") || (data38 === "Text")) || (data38 === "Number")) || (data38 === "Boolean"))){const err85 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(errors > 0){const emErrs11 = [];for(const err86 of vErrors){if(((((err86.keyword !== "errorMessage") && (!err86.emUsed)) && ((err86.instancePath === instancePath+"/" + i2+"/type") || ((err86.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err86.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err86.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err86.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs11.push(err86);err86.emUsed = true;}}if(emErrs11.length){const err87 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}const emErrs12 = [];for(const err88 of vErrors){if(!err88.emUsed){emErrs12.push(err88);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid9 = _errs112 === errors;valid45 = _valid9;}if(!valid45){const err89 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const _errs115 = errors;let valid49 = true;const _errs116 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.language === undefined) && ("language")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data23.language !== undefined){const _errs118 = errors;const _errs119 = errors;if(null !== data23.language){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid51 = _errs119 === errors;if(valid51){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}}}}}var _valid10 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid10){const _errs120 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type !== undefined){if(!(data23.type === "Text")){const err93 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(errors > 0){const emErrs13 = [];for(const err94 of vErrors){if(((((err94.keyword !== "errorMessage") && (!err94.emUsed)) && ((err94.instancePath === instancePath+"/" + i2+"/type") || ((err94.instancePath.indexOf(instancePath+"/" + i2+"/type") === 0) && (err94.instancePath[instancePath+"/" + i2+"/type".length] === "/")))) && (err94.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err94.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs13.push(err94);err94.emUsed = true;}}if(emErrs13.length){const err95 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const emErrs14 = [];for(const err96 of vErrors){if(!err96.emUsed){emErrs14.push(err96);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid10 = _errs120 === errors;valid49 = _valid10;}if(!valid49){const err97 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs123 = errors;let valid53 = true;const _errs124 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.value === undefined) && ("value")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var _valid11 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid11){const _errs125 = errors;const _errs126 = errors;const _errs127 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.generatedValue === undefined) && ("generatedValue")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}var valid54 = _errs127 === errors;if(valid54){const err100 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}}var _valid11 = _errs125 === errors;valid53 = _valid11;}if(!valid53){const err101 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs129 = errors;let valid55 = true;const _errs130 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data23.type !== undefined){let data41 = data23.type;if(!((data41 === "Boolean") || (data41 === "Dropdown"))){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid12 = _errs130 === errors;errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}if(_valid12){const _errs132 = errors;const _errs133 = errors;const _errs134 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.generatedValue === undefined) && ("generatedValue")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var valid57 = _errs134 === errors;if(valid57){const err105 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}}var _valid12 = _errs132 === errors;valid55 = _valid12;}if(!valid55){const err106 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const _errs136 = errors;let valid58 = true;const _errs137 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data23.type !== undefined){let data42 = data23.type;if(!((data42 === "String") || (data42 === "Text"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid13 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid13){const _errs139 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.feel !== undefined){let data43 = data23.feel;if(!((data43 === "optional") || (data43 === "required"))){const err109 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}var _valid13 = _errs139 === errors;valid58 = _valid13;}if(!valid58){const err110 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs142 = errors;let valid61 = true;const _errs143 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.feel === undefined) && ("feel")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data23.feel !== undefined){if("required" !== data23.feel){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid14 = _errs143 === errors;errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}if(_valid14){const _errs145 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data45 = data23.value;const _errs147 = errors;let valid64 = false;let passing2 = null;const _errs148 = errors;if(typeof data45 === "string"){if(!pattern4.test(data45)){const err113 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^="},message:"must match pattern \""+"^="+"\""};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var _valid15 = _errs148 === errors;if(_valid15){valid64 = true;passing2 = 0;}const _errs150 = errors;if(typeof data45 !== "string"){const err115 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs152 = errors;const _errs153 = errors;if(typeof data45 === "string"){if(!pattern4.test(data45)){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid65 = _errs153 === errors;if(valid65){const err117 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}}const warning0 = {
|
|
782
782
|
keyword: "deprecated",
|
|
783
783
|
instancePath: instancePath + "/" + i2+"/value",
|
|
784
784
|
schemaPath: "#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/deprecated",
|
|
@@ -802,13 +802,13 @@ standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.d
|
|
|
802
802
|
schemaPath: "#/allOf/1/items/allOf/32/then/deprecated",
|
|
803
803
|
params: {},
|
|
804
804
|
message: "'optional' with 'zeebe:input' binding is deprecated; an empty input mapping (resolved to 'null') should be used for Camunda 8.8+"
|
|
805
|
-
};keyword0.push(warning3);validate14.warnings = keyword0;var _valid47 = _errs439 === errors;valid199 = _valid47;}if(!valid199){const err383 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/32/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}const _errs443 = errors;let valid202 = true;const _errs444 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {if(data23.type !== undefined){if("Configuration" !== data23.type){const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}}}var _valid48 = _errs444 === errors;errors = _errs443;if(vErrors !== null){if(_errs443){vErrors.length = _errs443;}else {vErrors = null;}}if(_valid48){const _errs446 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.configurationTemplate === undefined){const err386 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/then/required",keyword:"required",params:{missingProperty: "configurationTemplate"},message:"must have required property '"+"configurationTemplate"+"'"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}if(data23.binding !== undefined){let data166 = data23.binding;if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if(data166.type === undefined){const err387 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/allOf/33/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if(data166.type !== undefined){let data167 = data166.type;if(!((data167 === "zeebe:input") || (data167 === "zeebe:property"))){const err388 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/33/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[33].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}}}}var _valid48 = _errs446 === errors;valid202 = _valid48;}if(!valid202){const err389 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.binding === undefined){const err390 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}if(data23.binding !== undefined){let data168 = data23.binding;const _errs452 = errors;let valid208 = true;const _errs453 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {if(data168.type !== undefined){let data169 = data168.type;if(!(((((((((data169 === "property") || (data169 === "zeebe:property")) || (data169 === "zeebe:input")) || (data169 === "bpmn:Message#property")) || (data169 === "bpmn:Message#zeebe:subscription#property")) || (data169 === "bpmn:Signal#property")) || (data169 === "bpmn:TimerEventDefinition#property")) || (data169 === "bpmn:ConditionalEventDefinition#property")) || (data169 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}}}var _valid49 = _errs453 === errors;errors = _errs452;if(vErrors !== null){if(_errs452){vErrors.length = _errs452;}else {vErrors = null;}}if(_valid49){const _errs455 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.name === undefined){const err393 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}}if(errors > 0){const emErrs39 = [];for(const err394 of vErrors){if(((((err394.keyword !== "errorMessage") && (!err394.emUsed)) && ((err394.instancePath === instancePath+"/" + i2+"/binding") || ((err394.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err394.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err394.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err394.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs39.push(err394);err394.emUsed = true;}}if(emErrs39.length){const err395 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"property.binding " + JSON.stringify(data168 && data168.type) + " requires name"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}const emErrs40 = [];for(const err396 of vErrors){if(!err396.emUsed){emErrs40.push(err396);}}vErrors = emErrs40;errors = emErrs40.length;}var _valid49 = _errs455 === errors;valid208 = _valid49;}if(!valid208){const err397 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}const _errs457 = errors;let valid210 = true;const _errs458 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {if(data168.type !== undefined){if("zeebe:output" !== data168.type){const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}}var _valid50 = _errs458 === errors;errors = _errs457;if(vErrors !== null){if(_errs457){vErrors.length = _errs457;}else {vErrors = null;}}if(_valid50){const _errs460 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.source === undefined){const err400 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}if(errors > 0){const emErrs41 = [];for(const err401 of vErrors){if(((((err401.keyword !== "errorMessage") && (!err401.emUsed)) && ((err401.instancePath === instancePath+"/" + i2+"/binding") || ((err401.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err401.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err401.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err401.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs41.push(err401);err401.emUsed = true;}}if(emErrs41.length){const err402 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"property.binding " + JSON.stringify(data168 && data168.type) + " requires source"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}const emErrs42 = [];for(const err403 of vErrors){if(!err403.emUsed){emErrs42.push(err403);}}vErrors = emErrs42;errors = emErrs42.length;}var _valid50 = _errs460 === errors;valid210 = _valid50;}if(!valid210){const err404 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}const _errs462 = errors;let valid212 = true;const _errs463 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}else {if(data168.type !== undefined){if("zeebe:taskHeader" !== data168.type){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}}}var _valid51 = _errs463 === errors;errors = _errs462;if(vErrors !== null){if(_errs462){vErrors.length = _errs462;}else {vErrors = null;}}if(_valid51){const _errs465 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.key === undefined){const err407 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}if(errors > 0){const emErrs43 = [];for(const err408 of vErrors){if(((((err408.keyword !== "errorMessage") && (!err408.emUsed)) && ((err408.instancePath === instancePath+"/" + i2+"/binding") || ((err408.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err408.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err408.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err408.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs43.push(err408);err408.emUsed = true;}}if(emErrs43.length){const err409 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs43},message:"property.binding " + JSON.stringify(data168 && data168.type) + " requires key"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}const emErrs44 = [];for(const err410 of vErrors){if(!err410.emUsed){emErrs44.push(err410);}}vErrors = emErrs44;errors = emErrs44.length;}var _valid51 = _errs465 === errors;valid212 = _valid51;}if(!valid212){const err411 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}const _errs467 = errors;let valid214 = true;const _errs468 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}else {if(data168.type !== undefined){if("zeebe:taskDefinition" !== data168.type){const err413 = {};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}}}var _valid52 = _errs468 === errors;errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}if(_valid52){const _errs470 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err414 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}if(data168.property !== undefined){let data173 = data168.property;if(!((data173 === "type") || (data173 === "retries"))){const err415 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}}var _valid52 = _errs470 === errors;valid214 = _valid52;}if(!valid214){const err416 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}const _errs473 = errors;let valid217 = true;const _errs474 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err417 = {};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}else {if(data168.type !== undefined){if("zeebe:taskDefinition:type" !== data168.type){const err418 = {};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}}}var _valid53 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid53){const _errs476 = errors;const warning4 = {
|
|
805
|
+
};keyword0.push(warning3);validate14.warnings = keyword0;var _valid47 = _errs439 === errors;valid199 = _valid47;}if(!valid199){const err383 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/32/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}const _errs443 = errors;let valid203 = true;const _errs444 = errors;if(errors === _errs444){if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {if(data23.binding !== undefined){let data165 = data23.binding;if(data165 && typeof data165 == "object" && !Array.isArray(data165)){if(((data165.type === undefined) && ("type")) || ((data165.property === undefined) && ("property"))){const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {if(data165.type !== undefined){const _errs447 = errors;if("zeebe:jobPriorityDefinition" !== data165.type){const err386 = {};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}var valid205 = _errs447 === errors;}else {var valid205 = true;}if(valid205){if(data165.property !== undefined){const _errs448 = errors;if("priority" !== data165.property){const err387 = {};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}var valid205 = _errs448 === errors;}else {var valid205 = true;}}}}}}}else {const err388 = {};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}var _valid48 = _errs444 === errors;errors = _errs443;if(vErrors !== null){if(_errs443){vErrors.length = _errs443;}else {vErrors = null;}}if(_valid48){const _errs449 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type === undefined){const err389 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data23.type !== undefined){let data168 = data23.type;if(!(((data168 === "Hidden") || (data168 === "Number")) || (data168 === "Dropdown"))){const err390 = {instancePath:instancePath+"/" + i2+"/type",schemaPath:"#/allOf/1/items/allOf/33/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[33].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}var _valid48 = _errs449 === errors;valid203 = _valid48;}if(!valid203){const err391 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}const _errs452 = errors;let valid207 = true;const _errs453 = errors;if(errors === _errs453){if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((((data23.binding === undefined) && ("binding")) || ((data23.value === undefined) && ("value"))) || ((data23.type === undefined) && ("type"))){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}else {if(data23.type !== undefined){const _errs455 = errors;if("Number" !== data23.type){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid208 = _errs455 === errors;}else {var valid208 = true;}if(valid208){if(data23.binding !== undefined){let data170 = data23.binding;const _errs456 = errors;if(data170 && typeof data170 == "object" && !Array.isArray(data170)){if(((data170.type === undefined) && ("type")) || ((data170.property === undefined) && ("property"))){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}else {if(data170.type !== undefined){const _errs457 = errors;if("zeebe:jobPriorityDefinition" !== data170.type){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid209 = _errs457 === errors;}else {var valid209 = true;}if(valid209){if(data170.property !== undefined){const _errs458 = errors;if("priority" !== data170.property){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}var valid209 = _errs458 === errors;}else {var valid209 = true;}}}}var valid208 = _errs456 === errors;}else {var valid208 = true;}}}}else {const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}var _valid49 = _errs453 === errors;errors = _errs452;if(vErrors !== null){if(_errs452){vErrors.length = _errs452;}else {vErrors = null;}}if(_valid49){const _errs459 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data173 = data23.value;const _errs461 = errors;let valid211 = false;const _errs462 = errors;if(!((typeof data173 == "number") && (!(data173 % 1) && !isNaN(data173)))){const err398 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/1/then/properties/value/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid50 = _errs462 === errors;valid211 = valid211 || _valid50;if(!valid211){const _errs464 = errors;if(typeof data173 === "string"){if(!pattern9.test(data173)){const err399 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/1/then/properties/value/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^=.*"},message:"must match pattern \""+"^=.*"+"\""};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}else {const err400 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/1/then/properties/value/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid50 = _errs464 === errors;valid211 = valid211 || _valid50;}if(!valid211){const err401 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/1/then/properties/value/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {errors = _errs461;if(vErrors !== null){if(_errs461){vErrors.length = _errs461;}else {vErrors = null;}}}}}var _valid49 = _errs459 === errors;valid207 = _valid49;}if(!valid207){const err402 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}const _errs467 = errors;let valid212 = true;const _errs468 = errors;if(errors === _errs468){if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(((data23.binding === undefined) && ("binding")) || ((data23.type === undefined) && ("type"))){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {if(data23.type !== undefined){let data174 = data23.type;const _errs470 = errors;if(!((data174 === "Hidden") || (data174 === "Dropdown"))){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid213 = _errs470 === errors;}else {var valid213 = true;}if(valid213){if(data23.binding !== undefined){let data175 = data23.binding;const _errs471 = errors;if(data175 && typeof data175 == "object" && !Array.isArray(data175)){if(((data175.type === undefined) && ("type")) || ((data175.property === undefined) && ("property"))){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}else {if(data175.type !== undefined){const _errs472 = errors;if("zeebe:jobPriorityDefinition" !== data175.type){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}var valid214 = _errs472 === errors;}else {var valid214 = true;}if(valid214){if(data175.property !== undefined){const _errs473 = errors;if("priority" !== data175.property){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}var valid214 = _errs473 === errors;}else {var valid214 = true;}}}}var valid213 = _errs471 === errors;}else {var valid213 = true;}}}}else {const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}var _valid51 = _errs468 === errors;errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}if(_valid51){const _errs474 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data178 = data23.value;if(typeof data178 === "string"){if(!pattern10.test(data178)){const err409 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/2/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(=.*|-?[0-9]+)$"},message:"must match pattern \""+"^(=.*|-?[0-9]+)$"+"\""};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}else {const err410 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/2/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}if(data23.choices !== undefined){let data179 = data23.choices;if(Array.isArray(data179)){const len5 = data179.length;for(let i5=0; i5<len5; i5++){let data180 = data179[i5];if(data180 && typeof data180 == "object" && !Array.isArray(data180)){if(data180.value !== undefined){let data181 = data180.value;if(typeof data181 === "string"){if(!pattern10.test(data181)){const err411 = {instancePath:instancePath+"/" + i2+"/choices/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/2/then/properties/choices/items/properties/value/pattern",keyword:"pattern",params:{pattern: "^(=.*|-?[0-9]+)$"},message:"must match pattern \""+"^(=.*|-?[0-9]+)$"+"\""};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}else {const err412 = {instancePath:instancePath+"/" + i2+"/choices/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/33/allOf/2/then/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}}}}}}var _valid51 = _errs474 === errors;valid212 = _valid51;}if(!valid212){const err413 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/33/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}const _errs483 = errors;let valid219 = true;const _errs484 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err414 = {};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}else {if(data23.type !== undefined){if("Configuration" !== data23.type){const err415 = {};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}}}var _valid52 = _errs484 === errors;errors = _errs483;if(vErrors !== null){if(_errs483){vErrors.length = _errs483;}else {vErrors = null;}}if(_valid52){const _errs486 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.configurationTemplate === undefined){const err416 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/34/then/required",keyword:"required",params:{missingProperty: "configurationTemplate"},message:"must have required property '"+"configurationTemplate"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}if(data23.binding !== undefined){let data183 = data23.binding;if(data183 && typeof data183 == "object" && !Array.isArray(data183)){if(data183.type === undefined){const err417 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/allOf/34/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}if(data183.type !== undefined){let data184 = data183.type;if(!((data184 === "zeebe:input") || (data184 === "zeebe:property"))){const err418 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/allOf/34/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[34].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}}}if(data23.configurationTemplate !== undefined){if(typeof data23.configurationTemplate !== "string"){const err419 = {instancePath:instancePath+"/" + i2+"/configurationTemplate",schemaPath:"#/allOf/1/items/allOf/34/then/properties/configurationTemplate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}}if(data23.configurationTemplateVersion !== undefined){let data186 = data23.configurationTemplateVersion;if(!((typeof data186 == "number") && (!(data186 % 1) && !isNaN(data186)))){const err420 = {instancePath:instancePath+"/" + i2+"/configurationTemplateVersion",schemaPath:"#/allOf/1/items/allOf/34/then/properties/configurationTemplateVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}var _valid52 = _errs486 === errors;valid219 = _valid52;}if(!valid219){const err421 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/34/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}const _errs494 = errors;let valid223 = true;const _errs495 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}else {if(data23.binding !== undefined){let data187 = data23.binding;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if(((data187.type === undefined) && ("type")) || ((data187.property === undefined) && ("property"))){const err423 = {};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(data187.type !== undefined){const _errs497 = errors;if("zeebe:calledElement" !== data187.type){const err424 = {};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}var valid225 = _errs497 === errors;}else {var valid225 = true;}if(valid225){if(data187.property !== undefined){const _errs498 = errors;if("businessId" !== data187.property){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}var valid225 = _errs498 === errors;}else {var valid225 = true;}}}}}}}var _valid53 = _errs495 === errors;errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}if(_valid53){const _errs499 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data190 = data23.value;const _errs501 = errors;let valid227 = true;const _errs502 = errors;if(typeof data190 !== "string"){const err426 = {};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}const _errs504 = errors;const _errs505 = errors;if(typeof data190 === "string"){if(!pattern4.test(data190)){const err427 = {};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}var valid228 = _errs505 === errors;if(valid228){const err428 = {};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid54 = _errs502 === errors;errors = _errs501;if(vErrors !== null){if(_errs501){vErrors.length = _errs501;}else {vErrors = null;}}if(_valid54){const _errs506 = errors;if(typeof data190 === "string"){if(func12(data190) > 255){const err429 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/35/then/properties/value/then/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}var _valid54 = _errs506 === errors;valid227 = _valid54;}if(!valid227){const err430 = {instancePath:instancePath+"/" + i2+"/value",schemaPath:"#/allOf/1/items/allOf/35/then/properties/value/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}var _valid53 = _errs499 === errors;valid223 = _valid53;}if(!valid223){const err431 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/allOf/35/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.binding === undefined){const err432 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if(data23.binding !== undefined){let data191 = data23.binding;const _errs510 = errors;let valid231 = true;const _errs511 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {if(data191.type !== undefined){let data192 = data191.type;if(!(((((((((data192 === "property") || (data192 === "zeebe:property")) || (data192 === "zeebe:input")) || (data192 === "bpmn:Message#property")) || (data192 === "bpmn:Message#zeebe:subscription#property")) || (data192 === "bpmn:Signal#property")) || (data192 === "bpmn:TimerEventDefinition#property")) || (data192 === "bpmn:ConditionalEventDefinition#property")) || (data192 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}}}var _valid55 = _errs511 === errors;errors = _errs510;if(vErrors !== null){if(_errs510){vErrors.length = _errs510;}else {vErrors = null;}}if(_valid55){const _errs513 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.name === undefined){const err435 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}if(errors > 0){const emErrs39 = [];for(const err436 of vErrors){if(((((err436.keyword !== "errorMessage") && (!err436.emUsed)) && ((err436.instancePath === instancePath+"/" + i2+"/binding") || ((err436.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err436.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err436.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err436.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs39.push(err436);err436.emUsed = true;}}if(emErrs39.length){const err437 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"property.binding " + JSON.stringify(data191 && data191.type) + " requires name"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}const emErrs40 = [];for(const err438 of vErrors){if(!err438.emUsed){emErrs40.push(err438);}}vErrors = emErrs40;errors = emErrs40.length;}var _valid55 = _errs513 === errors;valid231 = _valid55;}if(!valid231){const err439 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}const _errs515 = errors;let valid233 = true;const _errs516 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}else {if(data191.type !== undefined){if("zeebe:output" !== data191.type){const err441 = {};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}}}}var _valid56 = _errs516 === errors;errors = _errs515;if(vErrors !== null){if(_errs515){vErrors.length = _errs515;}else {vErrors = null;}}if(_valid56){const _errs518 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.source === undefined){const err442 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}if(errors > 0){const emErrs41 = [];for(const err443 of vErrors){if(((((err443.keyword !== "errorMessage") && (!err443.emUsed)) && ((err443.instancePath === instancePath+"/" + i2+"/binding") || ((err443.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err443.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err443.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err443.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs41.push(err443);err443.emUsed = true;}}if(emErrs41.length){const err444 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"property.binding " + JSON.stringify(data191 && data191.type) + " requires source"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}const emErrs42 = [];for(const err445 of vErrors){if(!err445.emUsed){emErrs42.push(err445);}}vErrors = emErrs42;errors = emErrs42.length;}var _valid56 = _errs518 === errors;valid233 = _valid56;}if(!valid233){const err446 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}const _errs520 = errors;let valid235 = true;const _errs521 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}else {if(data191.type !== undefined){if("zeebe:taskHeader" !== data191.type){const err448 = {};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}}}var _valid57 = _errs521 === errors;errors = _errs520;if(vErrors !== null){if(_errs520){vErrors.length = _errs520;}else {vErrors = null;}}if(_valid57){const _errs523 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.key === undefined){const err449 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}}if(errors > 0){const emErrs43 = [];for(const err450 of vErrors){if(((((err450.keyword !== "errorMessage") && (!err450.emUsed)) && ((err450.instancePath === instancePath+"/" + i2+"/binding") || ((err450.instancePath.indexOf(instancePath+"/" + i2+"/binding") === 0) && (err450.instancePath[instancePath+"/" + i2+"/binding".length] === "/")))) && (err450.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err450.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs43.push(err450);err450.emUsed = true;}}if(emErrs43.length){const err451 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs43},message:"property.binding " + JSON.stringify(data191 && data191.type) + " requires key"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}const emErrs44 = [];for(const err452 of vErrors){if(!err452.emUsed){emErrs44.push(err452);}}vErrors = emErrs44;errors = emErrs44.length;}var _valid57 = _errs523 === errors;valid235 = _valid57;}if(!valid235){const err453 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}const _errs525 = errors;let valid237 = true;const _errs526 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {if(data191.type !== undefined){if("zeebe:taskDefinition" !== data191.type){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}}}var _valid58 = _errs526 === errors;errors = _errs525;if(vErrors !== null){if(_errs525){vErrors.length = _errs525;}else {vErrors = null;}}if(_valid58){const _errs528 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err456 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if(data191.property !== undefined){let data196 = data191.property;if(!((data196 === "type") || (data196 === "retries"))){const err457 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}var _valid58 = _errs528 === errors;valid237 = _valid58;}if(!valid237){const err458 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const _errs531 = errors;let valid240 = true;const _errs532 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err459 = {};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}else {if(data191.type !== undefined){if("zeebe:taskDefinition:type" !== data191.type){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}}}var _valid59 = _errs532 === errors;errors = _errs531;if(vErrors !== null){if(_errs531){vErrors.length = _errs531;}else {vErrors = null;}}if(_valid59){const _errs534 = errors;const warning4 = {
|
|
806
806
|
keyword: "deprecated",
|
|
807
807
|
instancePath: instancePath + "/" + i2+"/binding",
|
|
808
808
|
schemaPath: "#/allOf/1/items/properties/binding/allOf/4/then/deprecated",
|
|
809
809
|
params: {},
|
|
810
810
|
message: "Value is deprecated"
|
|
811
|
-
};keyword0.push(warning4);validate14.warnings = keyword0;var _valid53 = _errs476 === errors;valid217 = _valid53;}if(!valid217){const err419 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}const _errs478 = errors;let valid219 = true;const _errs479 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err420 = {};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}else {if(data168.type !== undefined){if("zeebe:calledElement" !== data168.type){const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}}}var _valid54 = _errs479 === errors;errors = _errs478;if(vErrors !== null){if(_errs478){vErrors.length = _errs478;}else {vErrors = null;}}if(_valid54){const _errs481 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err422 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if(data168.property !== undefined){let data176 = data168.property;if(!(((((data176 === "processId") || (data176 === "bindingType")) || (data176 === "versionTag")) || (data176 === "propagateAllParentVariables")) || (data176 === "propagateAllChildVariables"))){const err423 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[5].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}}}var _valid54 = _errs481 === errors;valid219 = _valid54;}if(!valid219){const err424 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}const _errs484 = errors;let valid222 = true;const _errs485 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}else {if(data168.type !== undefined){if("zeebe:script" !== data168.type){const err426 = {};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}}}var _valid55 = _errs485 === errors;errors = _errs484;if(vErrors !== null){if(_errs484){vErrors.length = _errs484;}else {vErrors = null;}}if(_valid55){const _errs487 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err427 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}if(data168.property !== undefined){let data178 = data168.property;if(!((data178 === "expression") || (data178 === "resultVariable"))){const err428 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[6].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}}var _valid55 = _errs487 === errors;valid222 = _valid55;}if(!valid222){const err429 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}const _errs490 = errors;let valid225 = true;const _errs491 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}else {if(data168.type !== undefined){if("zeebe:formDefinition" !== data168.type){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}}}var _valid56 = _errs491 === errors;errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}if(_valid56){const _errs493 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err432 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if(data168.property !== undefined){let data180 = data168.property;if(!((((data180 === "formId") || (data180 === "externalReference")) || (data180 === "bindingType")) || (data180 === "versionTag"))){const err433 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[7].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}}var _valid56 = _errs493 === errors;valid225 = _valid56;}if(!valid225){const err434 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}const _errs496 = errors;let valid228 = true;const _errs497 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}else {if(data168.type !== undefined){if("zeebe:calledDecision" !== data168.type){const err436 = {};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}}}}var _valid57 = _errs497 === errors;errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}if(_valid57){const _errs499 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err437 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data168.property !== undefined){let data182 = data168.property;if(!((((data182 === "decisionId") || (data182 === "resultVariable")) || (data182 === "versionTag")) || (data182 === "bindingType"))){const err438 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[8].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}}var _valid57 = _errs499 === errors;valid228 = _valid57;}if(!valid228){const err439 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}const _errs502 = errors;let valid231 = true;const _errs503 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}else {if(data168.type !== undefined){if("zeebe:assignmentDefinition" !== data168.type){const err441 = {};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}}}}var _valid58 = _errs503 === errors;errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}if(_valid58){const _errs505 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err442 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}if(data168.property !== undefined){let data184 = data168.property;if(!(((data184 === "assignee") || (data184 === "candidateUsers")) || (data184 === "candidateGroups"))){const err443 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[9].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}}var _valid58 = _errs505 === errors;valid231 = _valid58;}if(!valid231){const err444 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}const _errs508 = errors;let valid234 = true;const _errs509 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}else {if(data168.type !== undefined){if("zeebe:priorityDefinition" !== data168.type){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}}}var _valid59 = _errs509 === errors;errors = _errs508;if(vErrors !== null){if(_errs508){vErrors.length = _errs508;}else {vErrors = null;}}if(_valid59){const _errs511 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err447 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if(data168.property !== undefined){if("priority" !== data168.property){const err448 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/properties/property/const",keyword:"const",params:{allowedValue: "priority"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}}var _valid59 = _errs511 === errors;valid234 = _valid59;}if(!valid234){const err449 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}const _errs514 = errors;let valid237 = true;const _errs515 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}else {if(data168.type !== undefined){if("zeebe:adHoc" !== data168.type){const err451 = {};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}}}var _valid60 = _errs515 === errors;errors = _errs514;if(vErrors !== null){if(_errs514){vErrors.length = _errs514;}else {vErrors = null;}}if(_valid60){const _errs517 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err452 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}if(data168.property !== undefined){let data188 = data168.property;if(!(((data188 === "activeElementsCollection") || (data188 === "outputCollection")) || (data188 === "outputElement"))){const err453 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[11].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}}var _valid60 = _errs517 === errors;valid237 = _valid60;}if(!valid237){const err454 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}const _errs520 = errors;let valid240 = true;const _errs521 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}else {if(data168.type !== undefined){if("zeebe:taskSchedule" !== data168.type){const err456 = {};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}}var _valid61 = _errs521 === errors;errors = _errs520;if(vErrors !== null){if(_errs520){vErrors.length = _errs520;}else {vErrors = null;}}if(_valid61){const _errs523 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.property === undefined){const err457 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if(data168.property !== undefined){let data190 = data168.property;if(!((data190 === "dueDate") || (data190 === "followUpDate"))){const err458 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[12].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}}var _valid61 = _errs523 === errors;valid240 = _valid61;}if(!valid240){const err459 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}const _errs526 = errors;let valid243 = true;const _errs527 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}else {if(data168.type !== undefined){if("bpmn:Signal#property" !== data168.type){const err461 = {};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}}}var _valid62 = _errs527 === errors;errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}if(_valid62){const _errs529 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.name === undefined){const err462 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}if(data168.name !== undefined){if("name" !== data168.name){const err463 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/properties/name/const",keyword:"const",params:{allowedValue: "name"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}}var _valid62 = _errs529 === errors;valid243 = _valid62;}if(!valid243){const err464 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}const _errs532 = errors;let valid246 = true;const _errs533 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}else {if(data168.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data168.type){const err466 = {};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}}}var _valid63 = _errs533 === errors;errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}if(_valid63){const _errs535 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.name === undefined){const err467 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data168.name !== undefined){let data194 = data168.name;if(!(((data194 === "timeCycle") || (data194 === "timeDate")) || (data194 === "timeDuration"))){const err468 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/properties/name/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[14].then.properties.name.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}var _valid63 = _errs535 === errors;valid246 = _valid63;}if(!valid246){const err469 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}const _errs539 = errors;let valid250 = true;const _errs540 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err470 = {};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}else {if(data168.type !== undefined){if("bpmn:ConditionalEventDefinition#property" !== data168.type){const err471 = {};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}}}var _valid64 = _errs540 === errors;errors = _errs539;if(vErrors !== null){if(_errs539){vErrors.length = _errs539;}else {vErrors = null;}}if(_valid64){const _errs542 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.name === undefined){const err472 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}if(data168.name !== undefined){if("condition" !== data168.name){const err473 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/properties/name/const",keyword:"const",params:{allowedValue: "condition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}}var _valid64 = _errs542 === errors;valid250 = _valid64;}if(!valid250){const err474 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}const _errs545 = errors;let valid253 = true;const _errs546 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err475 = {};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}else {if(data168.type !== undefined){if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data168.type){const err476 = {};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}}}}var _valid65 = _errs546 === errors;errors = _errs545;if(vErrors !== null){if(_errs545){vErrors.length = _errs545;}else {vErrors = null;}}if(_valid65){const _errs548 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.name === undefined){const err477 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data168.name !== undefined){if("variableEvents" !== data168.name){const err478 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/properties/name/const",keyword:"const",params:{allowedValue: "variableEvents"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}}var _valid65 = _errs548 === errors;valid253 = _valid65;}if(!valid253){const err479 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}const _errs552 = errors;let valid257 = true;const _errs553 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}else {if(data168.type !== undefined){if("zeebe:executionListener" !== data168.type){const err481 = {};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}}}var _valid66 = _errs553 === errors;errors = _errs552;if(vErrors !== null){if(_errs552){vErrors.length = _errs552;}else {vErrors = null;}}if(_valid66){const _errs555 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.eventType === undefined){const err482 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventType"},message:"must have required property '"+"eventType"+"'"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}if(data168.eventType !== undefined){let data200 = data168.eventType;if(!((data200 === "start") || (data200 === "end"))){const err483 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/then/properties/eventType/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[16].allOf[0].then.properties.eventType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}}}var _valid66 = _errs555 === errors;valid257 = _valid66;}if(!valid257){const err484 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}const _errs558 = errors;let valid260 = true;const _errs559 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err485 = {};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}else {if(data168.type !== undefined){if("zeebe:taskListener" !== data168.type){const err486 = {};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}}}}var _valid67 = _errs559 === errors;errors = _errs558;if(vErrors !== null){if(_errs558){vErrors.length = _errs558;}else {vErrors = null;}}if(_valid67){const _errs561 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.eventType === undefined){const err487 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/then/required",keyword:"required",params:{missingProperty: "eventType"},message:"must have required property '"+"eventType"+"'"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data168.eventType !== undefined){let data202 = data168.eventType;if(!(((((data202 === "creating") || (data202 === "assigning")) || (data202 === "updating")) || (data202 === "completing")) || (data202 === "canceling"))){const err488 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/then/properties/eventType/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[16].allOf[1].then.properties.eventType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}}var _valid67 = _errs561 === errors;valid260 = _valid67;}if(!valid260){const err489 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}const _errs564 = errors;let valid263 = true;const _errs565 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.headers === undefined) && ("headers")){const err490 = {};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}var _valid68 = _errs565 === errors;errors = _errs564;if(vErrors !== null){if(_errs564){vErrors.length = _errs564;}else {vErrors = null;}}if(_valid68){const _errs566 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.type !== undefined){if("zeebe:executionListener" !== data168.type){const err491 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/2/then/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:executionListener"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}var _valid68 = _errs566 === errors;valid263 = _valid68;}if(!valid263){const err492 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}const _errs569 = errors;let valid265 = true;const _errs570 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.type === undefined) && ("type")){const err493 = {};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {if(data168.type !== undefined){let data204 = data168.type;const _errs572 = errors;const _errs573 = errors;if(!((data204 === "zeebe:executionListener") || (data204 === "zeebe:taskListener"))){const err494 = {};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}var valid267 = _errs573 === errors;if(valid267){const err495 = {};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}else {errors = _errs572;if(vErrors !== null){if(_errs572){vErrors.length = _errs572;}else {vErrors = null;}}}}}}var _valid69 = _errs570 === errors;errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}if(_valid69){const _errs574 = errors;const _errs575 = errors;const _errs576 = errors;const _errs577 = errors;let valid269 = false;const _errs578 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.eventType === undefined) && ("eventType")){const err496 = {};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}var _valid70 = _errs578 === errors;valid269 = valid269 || _valid70;if(!valid269){const _errs579 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.retries === undefined) && ("retries")){const err497 = {};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}var _valid70 = _errs579 === errors;valid269 = valid269 || _valid70;if(!valid269){const _errs580 = errors;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if((data168.headers === undefined) && ("headers")){const err498 = {};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}var _valid70 = _errs580 === errors;valid269 = valid269 || _valid70;}}if(!valid269){const err499 = {};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}else {errors = _errs577;if(vErrors !== null){if(_errs577){vErrors.length = _errs577;}else {vErrors = null;}}}var valid268 = _errs576 === errors;if(valid268){const err500 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/3/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}else {errors = _errs575;if(vErrors !== null){if(_errs575){vErrors.length = _errs575;}else {vErrors = null;}}}var _valid69 = _errs574 === errors;valid265 = _valid69;}if(!valid265){const err501 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(data168.type === undefined){const err502 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data168.type !== undefined){let data205 = data168.type;if(typeof data205 !== "string"){const err503 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}if(!(((((((((((((((((((((((((data205 === "property") || (data205 === "zeebe:taskDefinition:type")) || (data205 === "zeebe:input")) || (data205 === "zeebe:output")) || (data205 === "zeebe:property")) || (data205 === "zeebe:taskHeader")) || (data205 === "bpmn:Message#property")) || (data205 === "bpmn:Message#zeebe:subscription#property")) || (data205 === "zeebe:taskDefinition")) || (data205 === "zeebe:calledElement")) || (data205 === "zeebe:linkedResource")) || (data205 === "zeebe:userTask")) || (data205 === "zeebe:formDefinition")) || (data205 === "zeebe:calledDecision")) || (data205 === "zeebe:script")) || (data205 === "zeebe:assignmentDefinition")) || (data205 === "zeebe:priorityDefinition")) || (data205 === "zeebe:adHoc")) || (data205 === "zeebe:taskSchedule")) || (data205 === "zeebe:executionListener")) || (data205 === "zeebe:taskListener")) || (data205 === "bpmn:Signal#property")) || (data205 === "bpmn:TimerEventDefinition#property")) || (data205 === "bpmn:ConditionalEventDefinition#property")) || (data205 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err504 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if(errors > 0){const emErrs45 = [];for(const err505 of vErrors){if(((((err505.keyword !== "errorMessage") && (!err505.emUsed)) && ((err505.instancePath === instancePath+"/" + i2+"/binding/type") || ((err505.instancePath.indexOf(instancePath+"/" + i2+"/binding/type") === 0) && (err505.instancePath[instancePath+"/" + i2+"/binding/type".length] === "/")))) && (err505.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err505.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs45.push(err505);err505.emUsed = true;}}if(emErrs45.length){const err506 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"invalid property.binding type " + JSON.stringify(data205) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, zeebe:executionListener, zeebe:taskListener, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}const emErrs46 = [];for(const err507 of vErrors){if(!err507.emUsed){emErrs46.push(err507);}}vErrors = emErrs46;errors = emErrs46.length;}}if(data168.name !== undefined){if(typeof data168.name !== "string"){const err508 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data168.source !== undefined){if(typeof data168.source !== "string"){const err509 = {instancePath:instancePath+"/" + i2+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}}if(data168.key !== undefined){if(typeof data168.key !== "string"){const err510 = {instancePath:instancePath+"/" + i2+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}if(data168.property !== undefined){if(typeof data168.property !== "string"){const err511 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}}if(data168.linkName !== undefined){if(typeof data168.linkName !== "string"){const err512 = {instancePath:instancePath+"/" + i2+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}if(data168.eventType !== undefined){if(typeof data168.eventType !== "string"){const err513 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/properties/eventType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(data168.retries !== undefined){if(typeof data168.retries !== "string"){const err514 = {instancePath:instancePath+"/" + i2+"/binding/retries",schemaPath:"#/allOf/1/items/properties/binding/properties/retries/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}}if(data168.headers !== undefined){let data213 = data168.headers;if(Array.isArray(data213)){const len5 = data213.length;for(let i5=0; i5<len5; i5++){let data214 = data213[i5];if(data214 && typeof data214 == "object" && !Array.isArray(data214)){if(data214.key === undefined){const err515 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if(data214.value === undefined){const err516 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}for(const key1 in data214){if(!((key1 === "key") || (key1 === "value"))){const err517 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}if(data214.key !== undefined){if(typeof data214.key !== "string"){const err518 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5+"/key",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data214.value !== undefined){if(typeof data214.value !== "string"){const err519 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5+"/value",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}}else {const err520 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i5,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}}}else {const err521 = {instancePath:instancePath+"/" + i2+"/binding/headers",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(data23.optional !== undefined){if(typeof data23.optional !== "boolean"){const err523 = {instancePath:instancePath+"/" + i2+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}if(data23.feel !== undefined){let data218 = data23.feel;if(typeof data218 !== "string"){const err524 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if(!(((data218 === "optional") || (data218 === "required")) || (data218 === "static"))){const err525 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data23.language !== undefined){if(typeof data23.language !== "string"){const err526 = {instancePath:instancePath+"/" + i2+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(data23.generatedValue !== undefined){let data220 = data23.generatedValue;if(data220 && typeof data220 == "object" && !Array.isArray(data220)){if(data220.type === undefined){const err527 = {instancePath:instancePath+"/" + i2+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if(data220.type !== undefined){if("uuid" !== data220.type){const err528 = {instancePath:instancePath+"/" + i2+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}else {const err529 = {instancePath:instancePath+"/" + i2+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}}if(data23.tooltip !== undefined){if(typeof data23.tooltip !== "string"){const err530 = {instancePath:instancePath+"/" + i2+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}if(data23.configurationTemplate !== undefined){if(typeof data23.configurationTemplate !== "string"){const err531 = {instancePath:instancePath+"/" + i2+"/configurationTemplate",schemaPath:"#/allOf/1/items/properties/configurationTemplate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}if(data23.configurationTemplateVersion !== undefined){let data224 = data23.configurationTemplateVersion;if(!((typeof data224 == "number") && (!(data224 % 1) && !isNaN(data224)))){const err532 = {instancePath:instancePath+"/" + i2+"/configurationTemplateVersion",schemaPath:"#/allOf/1/items/properties/configurationTemplateVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}}}else {const err533 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(errors > 0){const emErrors1 = {"required":{"binding":[]}};const templates1 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i2) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err534 of vErrors){if((((((err534.keyword !== "errorMessage") && (!err534.emUsed)) && (err534.instancePath === instancePath+"/" + i2)) && (err534.keyword in emErrors1)) && (err534.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err534.schemaPath.slice(15)))){emPropParams0 = obj0[err534.keyword];emParamsErrors0 = emErrors1[err534.keyword][err534.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err534);err534.emUsed = true;}}}for(const key2 in emErrors1){for(const keyProp0 in emErrors1[key2]){emParamsErrors0 = emErrors1[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key2] && templates1[key2][keyProp0];const err535 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema22.allOf[1].items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}}}const emErrs47 = [];for(const err536 of vErrors){if(!err536.emUsed){emErrs47.push(err536);}}vErrors = emErrs47;errors = emErrs47.length;}}}else {const err537 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if(Array.isArray(data)){const len6 = data.length;for(let i6=0; i6<len6; i6++){let data225 = data[i6];const _errs626 = errors;let valid279 = true;const _errs627 = errors;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(((data225.id === undefined) && ("id")) || ((data225.condition === undefined) && ("condition"))){const err538 = {};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}else {if(data225.condition !== undefined){let data226 = data225.condition;if(data226 && typeof data226 == "object" && !Array.isArray(data226)){if((data226.property === undefined) && ("property")){const err539 = {};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}else {if(data226.property !== undefined){if(!func0(data226.property, schema23.properties.property.const)){const err540 = {};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}}}}}}}var _valid71 = _errs627 === errors;errors = _errs626;if(vErrors !== null){if(_errs626){vErrors.length = _errs626;}else {vErrors = null;}}if(_valid71){const _errs631 = errors;const _errs632 = errors;const _errs633 = errors;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if((data225.condition === undefined) && ("condition")){const err541 = {};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}}var valid283 = _errs633 === errors;if(valid283){const err542 = {instancePath:instancePath+"/" + i6,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}else {errors = _errs632;if(vErrors !== null){if(_errs632){vErrors.length = _errs632;}else {vErrors = null;}}}if(errors > 0){const emErrs48 = [];for(const err543 of vErrors){if(((((err543.keyword !== "errorMessage") && (!err543.emUsed)) && ((err543.instancePath === instancePath+"/" + i6) || ((err543.instancePath.indexOf(instancePath+"/" + i6) === 0) && (err543.instancePath[instancePath+"/" + i6.length] === "/")))) && (err543.schemaPath.indexOf("#/allOf/2/items/allOf/0/allOf/0/then") === 0)) && (err543.schemaPath["#/allOf/2/items/allOf/0/allOf/0/then".length] === "/")){emErrs48.push(err543);err543.emUsed = true;}}if(emErrs48.length){const err544 = {instancePath:instancePath+"/" + i6,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs48},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}const emErrs49 = [];for(const err545 of vErrors){if(!err545.emUsed){emErrs49.push(err545);}}vErrors = emErrs49;errors = emErrs49.length;}var _valid71 = _errs631 === errors;valid279 = _valid71;}if(!valid279){const err546 = {instancePath:instancePath+"/" + i6,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(data225.id !== undefined){if(typeof data225.id !== "string"){const err547 = {instancePath:instancePath+"/" + i6+"/id",schemaPath:"#/allOf/2/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}}if(data225.condition !== undefined){let data229 = data225.condition;if(!(data229 && typeof data229 == "object" && !Array.isArray(data229))){const err548 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}const _errs638 = errors;let valid285 = false;let passing3 = null;const _errs639 = errors;const _errs642 = errors;let valid287 = false;let passing4 = null;const _errs643 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.equals === undefined){const err549 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if(data229.equals !== undefined){let data230 = data229.equals;if(((typeof data230 !== "string") && (!(typeof data230 == "number"))) && (typeof data230 !== "boolean")){const err550 = {instancePath:instancePath+"/" + i6+"/condition/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}}var _valid73 = _errs643 === errors;if(_valid73){valid287 = true;passing4 = 0;}const _errs646 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.oneOf === undefined){const err551 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}if(data229.oneOf !== undefined){let data231 = data229.oneOf;if(Array.isArray(data231)){const len7 = data231.length;for(let i7=0; i7<len7; i7++){let data232 = data231[i7];if((typeof data232 !== "string") && (!(typeof data232 == "number"))){const err552 = {instancePath:instancePath+"/" + i6+"/condition/oneOf/" + i7,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}}}else {const err553 = {instancePath:instancePath+"/" + i6+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}}}var _valid73 = _errs646 === errors;if(_valid73 && valid287){valid287 = false;passing4 = [passing4, 1];}else {if(_valid73){valid287 = true;passing4 = 1;}const _errs651 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.isActive === undefined){const err554 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if(data229.isActive !== undefined){if(typeof data229.isActive !== "boolean"){const err555 = {instancePath:instancePath+"/" + i6+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}}var _valid73 = _errs651 === errors;if(_valid73 && valid287){valid287 = false;passing4 = [passing4, 2];}else {if(_valid73){valid287 = true;passing4 = 2;}const _errs654 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.isEmpty === undefined){const err556 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if(data229.isEmpty !== undefined){if(typeof data229.isEmpty !== "boolean"){const err557 = {instancePath:instancePath+"/" + i6+"/condition/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}var _valid73 = _errs654 === errors;if(_valid73 && valid287){valid287 = false;passing4 = [passing4, 3];}else {if(_valid73){valid287 = true;passing4 = 3;}}}}if(!valid287){const err558 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}else {errors = _errs642;if(vErrors !== null){if(_errs642){vErrors.length = _errs642;}else {vErrors = null;}}}if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.property === undefined){const err559 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}if(data229.type !== undefined){if("simple" !== data229.type){const err560 = {instancePath:instancePath+"/" + i6+"/condition/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data229.property !== undefined){if(typeof data229.property !== "string"){const err561 = {instancePath:instancePath+"/" + i6+"/condition/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}}}else {const err562 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err563 of vErrors){if((((((err563.keyword !== "errorMessage") && (!err563.emUsed)) && (err563.instancePath === instancePath+"/" + i6+"/condition")) && (err563.keyword in emErrors2)) && (err563.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err563.schemaPath.slice(68)))){emPropParams1 = obj0[err563.keyword];emParamsErrors1 = emErrors2[err563.keyword][err563.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err563);err563.emUsed = true;}}}for(const key3 in emErrors2){for(const keyProp1 in emErrors2[key3]){emParamsErrors1 = emErrors2[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key3] && templates2[key3][keyProp1];const err564 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}}const emErrs50 = [];for(const err565 of vErrors){if(!err565.emUsed){emErrs50.push(err565);}}vErrors = emErrs50;errors = emErrs50.length;}var _valid72 = _errs639 === errors;if(_valid72){valid285 = true;passing3 = 0;}const _errs660 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.allMatch === undefined){const err566 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(data229.allMatch !== undefined){let data237 = data229.allMatch;if(Array.isArray(data237)){if(data237.length < 1){const err567 = {instancePath:instancePath+"/" + i6+"/condition/allMatch",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}const len8 = data237.length;for(let i8=0; i8<len8; i8++){let data238 = data237[i8];const _errs666 = errors;let valid299 = false;let passing5 = null;const _errs667 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.equals === undefined){const err568 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data238.equals !== undefined){let data239 = data238.equals;if(((typeof data239 !== "string") && (!(typeof data239 == "number"))) && (typeof data239 !== "boolean")){const err569 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}}var _valid74 = _errs667 === errors;if(_valid74){valid299 = true;passing5 = 0;}const _errs670 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.oneOf === undefined){const err570 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}if(data238.oneOf !== undefined){let data240 = data238.oneOf;if(Array.isArray(data240)){const len9 = data240.length;for(let i9=0; i9<len9; i9++){let data241 = data240[i9];if((typeof data241 !== "string") && (!(typeof data241 == "number"))){const err571 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/oneOf/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}}}else {const err572 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}}}var _valid74 = _errs670 === errors;if(_valid74 && valid299){valid299 = false;passing5 = [passing5, 1];}else {if(_valid74){valid299 = true;passing5 = 1;}const _errs675 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.isActive === undefined){const err573 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if(data238.isActive !== undefined){if(typeof data238.isActive !== "boolean"){const err574 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}}var _valid74 = _errs675 === errors;if(_valid74 && valid299){valid299 = false;passing5 = [passing5, 2];}else {if(_valid74){valid299 = true;passing5 = 2;}const _errs678 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.isEmpty === undefined){const err575 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if(data238.isEmpty !== undefined){if(typeof data238.isEmpty !== "boolean"){const err576 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}}var _valid74 = _errs678 === errors;if(_valid74 && valid299){valid299 = false;passing5 = [passing5, 3];}else {if(_valid74){valid299 = true;passing5 = 3;}}}}if(!valid299){const err577 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}else {errors = _errs666;if(vErrors !== null){if(_errs666){vErrors.length = _errs666;}else {vErrors = null;}}}if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.property === undefined){const err578 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}if(data238.type !== undefined){if("simple" !== data238.type){const err579 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}}if(data238.property !== undefined){if(typeof data238.property !== "string"){const err580 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}}}else {const err581 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}if(errors > 0){const emErrors3 = {"required":{"property":[]}};const templates3 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err582 of vErrors){if((((((err582.keyword !== "errorMessage") && (!err582.emUsed)) && (err582.instancePath === instancePath+"/" + i6+"/condition/allMatch/" + i8)) && (err582.keyword in emErrors3)) && (err582.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err582.schemaPath.slice(68)))){emPropParams2 = obj0[err582.keyword];emParamsErrors2 = emErrors3[err582.keyword][err582.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err582);err582.emUsed = true;}}}for(const key4 in emErrors3){for(const keyProp2 in emErrors3[key4]){emParamsErrors2 = emErrors3[key4][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key4] && templates3[key4][keyProp2];const err583 = {instancePath:instancePath+"/" + i6+"/condition/allMatch/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema24.errorMessage[key4][keyProp2]};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}}}const emErrs51 = [];for(const err584 of vErrors){if(!err584.emUsed){emErrs51.push(err584);}}vErrors = emErrs51;errors = emErrs51.length;}}}else {const err585 = {instancePath:instancePath+"/" + i6+"/condition/allMatch",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}}var _valid72 = _errs660 === errors;if(_valid72 && valid285){valid285 = false;passing3 = [passing3, 1];}else {if(_valid72){valid285 = true;passing3 = 1;}}if(!valid285){const err586 = {instancePath:instancePath+"/" + i6+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}else {errors = _errs638;if(vErrors !== null){if(_errs638){vErrors.length = _errs638;}else {vErrors = null;}}}}}if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(data225.choices !== undefined){let data246 = data225.choices;if(Array.isArray(data246)){const len10 = data246.length;for(let i10=0; i10<len10; i10++){let data247 = data246[i10];if(data247 && typeof data247 == "object" && !Array.isArray(data247)){if(data247.condition !== undefined){if(!(validate17(data247.condition, {instancePath:instancePath+"/" + i6+"/choices/" + i10+"/condition",parentData:data247,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}}}}}}}validate16.errors = vErrors;return errors === 0;}function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isEmpty === undefined){const err8 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.isEmpty !== undefined){if(typeof data.isEmpty !== "boolean"){const err9 = {instancePath:instancePath+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}var _valid1 = _errs17 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 3];}else {if(_valid1){valid2 = true;passing1 = 3;}}}}if(!valid2){const err10 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err11 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err12 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err13 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.allMatch !== undefined){let data7 = data.allMatch;if(Array.isArray(data7)){if(data7.length < 1){const err16 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs29 = errors;let valid14 = false;let passing2 = null;const _errs30 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.equals === undefined){const err17 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data8.equals !== undefined){let data9 = data8.equals;if(((typeof data9 !== "string") && (!(typeof data9 == "number"))) && (typeof data9 !== "boolean")){const err18 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs33 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.oneOf === undefined){const err19 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data8.oneOf !== undefined){let data10 = data8.oneOf;if(Array.isArray(data10)){const len2 = data10.length;for(let i2=0; i2<len2; i2++){let data11 = data10[i2];if((typeof data11 !== "string") && (!(typeof data11 == "number"))){const err20 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid2 = _errs33 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 1];}else {if(_valid2){valid14 = true;passing2 = 1;}const _errs38 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isActive === undefined){const err22 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.isActive !== undefined){if(typeof data8.isActive !== "boolean"){const err23 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}var _valid2 = _errs38 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 2];}else {if(_valid2){valid14 = true;passing2 = 2;}const _errs41 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isEmpty === undefined){const err24 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data8.isEmpty !== undefined){if(typeof data8.isEmpty !== "boolean"){const err25 = {instancePath:instancePath+"/allMatch/" + i1+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}var _valid2 = _errs41 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 3];}else {if(_valid2){valid14 = true;passing2 = 3;}}}}if(!valid14){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.property === undefined){const err27 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data8.type !== undefined){if("simple" !== data8.type){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data8.property !== undefined){if(typeof data8.property !== "string"){const err29 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid0 = _errs23 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err32 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate20.errors = vErrors;return errors === 0;}const wrapper0 = {validate: validate22};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs3 = errors;const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.presetId === undefined) && ("presetId")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid1 = _errs4 === errors;if(valid1){const err1 = {instancePath,schemaPath:"#/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.steps === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.steps === undefined) && ("steps")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.presetId === undefined){const err5 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "presetId"},message:"must have required property '"+"presetId"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs5 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err6 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err8 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err9 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.keywords !== undefined){let data2 = data.keywords;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(typeof data2[i0] !== "string"){const err10 = {instancePath:instancePath+"/keywords/" + i0,schemaPath:"#/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/keywords",schemaPath:"#/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.steps !== undefined){let data4 = data.steps;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(wrapper0.validate(data4[i1], {instancePath:instancePath+"/steps/" + i1,parentData:data4,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}}}else {const err12 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.presetId !== undefined){if(typeof data.presetId !== "string"){const err13 = {instancePath:instancePath+"/presetId",schemaPath:"#/properties/presetId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}validate22.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.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 err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.groups !== undefined){let data16 = data.groups;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.id === undefined){const err33 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data17.label === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data17.id !== undefined){if(typeof data17.id !== "string"){const err35 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.instancePath === instancePath+"/groups/" + i2)) && (err38.keyword in emErrors3)) && (err38.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(33)))){emPropParams1 = obj0[err38.keyword];emParamsErrors1 = emErrors3[err38.keyword][err38.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err38);err38.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err39 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}const emErrs3 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs3.push(err40);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err41 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.documentationRef !== undefined){let data20 = data.documentationRef;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err42 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err44 of vErrors){if((((((err44.keyword !== "errorMessage") && (!err44.emUsed)) && (err44.instancePath === instancePath+"/documentationRef")) && (err44.keyword in emErrors4)) && (err44.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err44.schemaPath.slice(37)))){emErrors4[err44.keyword].push(err44);err44.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err45 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}const emErrs4 = [];for(const err46 of vErrors){if(!err46.emUsed){emErrs4.push(err46);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath)) && (err47.keyword in emErrors5)) && (err47.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(9)))){emPropParams2 = obj0[err47.keyword];emParamsErrors2 = emErrors5[err47.keyword][err47.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err47);err47.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 err48 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs46 = errors;let valid15 = true;const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data.properties !== undefined){let data21 = data.properties;if(Array.isArray(data21)){const _errs49 = errors;const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];const _errs50 = errors;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if((data22.binding === undefined) && ("binding")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data22.binding !== undefined){let data23 = data22.binding;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data23.type !== undefined){if("bpmn:Message#property" !== data23.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}}}}var valid17 = _errs50 === errors;if(valid17){break;}}if(!valid17){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err55 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data.elementType !== undefined){let data25 = data.elementType;const _errs56 = errors;let valid22 = true;const _errs57 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value !== undefined){let data26 = data25.value;if(!(((((data26 === "bpmn:StartEvent") || (data26 === "bpmn:IntermediateCatchEvent")) || (data26 === "bpmn:IntermediateThrowEvent")) || (data26 === "bpmn:BoundaryEvent")) || (data26 === "bpmn:EndEvent"))){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid1 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid1){const _errs59 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.eventDefinition === undefined){const err57 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}var _valid1 = _errs59 === errors;valid22 = _valid1;}if(!valid22){const err58 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err59 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data25.value !== undefined){let data27 = data25.value;if(!(((((((data27 === "bpmn:ReceiveTask") || (data27 === "bpmn:SendTask")) || (data27 === "bpmn:StartEvent")) || (data27 === "bpmn:IntermediateCatchEvent")) || (data27 === "bpmn:IntermediateThrowEvent")) || (data27 === "bpmn:BoundaryEvent")) || (data27 === "bpmn:EndEvent"))){const err60 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}}}var _valid0 = _errs53 === errors;valid15 = _valid0;}if(!valid15){const err61 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}const _errs62 = errors;let valid25 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data.properties !== undefined){let data28 = data.properties;if(Array.isArray(data28)){const _errs65 = errors;const len4 = data28.length;for(let i4=0; i4<len4; i4++){let data29 = data28[i4];const _errs66 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.binding === undefined) && ("binding")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data29.binding !== undefined){let data30 = data29.binding;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if((data30.type === undefined) && ("type")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data30.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data30.type){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}}}}}var valid27 = _errs66 === errors;if(valid27){break;}}if(!valid27){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}}}}}}var _valid2 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid2){const _errs69 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err67 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data.elementType !== undefined){let data32 = data.elementType;const _errs72 = errors;let valid32 = true;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){let data33 = data32.value;if(!(((((data33 === "bpmn:StartEvent") || (data33 === "bpmn:IntermediateCatchEvent")) || (data33 === "bpmn:IntermediateThrowEvent")) || (data33 === "bpmn:BoundaryEvent")) || (data33 === "bpmn:EndEvent"))){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid3 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid3){const _errs75 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.eventDefinition === undefined){const err69 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid3 = _errs75 === errors;valid32 = _valid3;}if(!valid32){const err70 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value === undefined){const err71 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data32.value !== undefined){let data34 = data32.value;if(!((((((data34 === "bpmn:ReceiveTask") || (data34 === "bpmn:StartEvent")) || (data34 === "bpmn:IntermediateCatchEvent")) || (data34 === "bpmn:IntermediateThrowEvent")) || (data34 === "bpmn:BoundaryEvent")) || (data34 === "bpmn:EndEvent"))){const err72 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}var _valid2 = _errs69 === errors;valid25 = _valid2;}if(!valid25){const err73 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}const _errs78 = errors;let valid35 = true;const _errs79 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data.properties !== undefined){let data35 = data.properties;if(Array.isArray(data35)){const _errs81 = errors;const len5 = data35.length;for(let i5=0; i5<len5; i5++){let data36 = data35[i5];const _errs82 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data37.type !== undefined){if("zeebe:calledElement" !== data37.type){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}}}}}var valid37 = _errs82 === errors;if(valid37){break;}}if(!valid37){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}}}}}var _valid4 = _errs79 === errors;errors = _errs78;if(vErrors !== null){if(_errs78){vErrors.length = _errs78;}else {vErrors = null;}}if(_valid4){const _errs85 = errors;const _errs86 = errors;let valid40 = false;const _errs87 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err79 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data.elementType !== undefined){let data39 = data.elementType;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(data39.value === undefined){const err80 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data39.value !== undefined){if("bpmn:CallActivity" !== data39.value){const err81 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}}}var _valid5 = _errs87 === errors;valid40 = valid40 || _valid5;if(!valid40){const _errs90 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err82 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err83 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}var _valid5 = _errs90 === errors;valid40 = valid40 || _valid5;}if(!valid40){const err84 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data.properties !== undefined){let data42 = data.properties;if(Array.isArray(data42)){const _errs93 = errors;const len6 = data42.length;for(let i6=0; i6<len6; i6++){let data43 = data42[i6];const _errs94 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.binding === undefined){const err86 = {instancePath:instancePath+"/properties/" + i6,schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.binding !== undefined){let data44 = data43.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.property === undefined){const err87 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type === undefined){const err88 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data44.type !== undefined){if("zeebe:calledElement" !== data44.type){const err89 = {instancePath:instancePath+"/properties/" + i6+"/binding/type",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:calledElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data44.property !== undefined){if("processId" !== data44.property){const err90 = {instancePath:instancePath+"/properties/" + i6+"/binding/property",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}}var valid45 = _errs94 === errors;if(valid45){break;}}if(!valid45){const err91 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}}if(errors > 0){const emErrs6 = [];for(const err92 of vErrors){if(((((err92.keyword !== "errorMessage") && (!err92.emUsed)) && ((err92.instancePath === instancePath+"/properties") || ((err92.instancePath.indexOf(instancePath+"/properties") === 0) && (err92.instancePath[instancePath+"/properties".length] === "/")))) && (err92.schemaPath.indexOf("#/allOf/1/allOf/2/then/properties/properties") === 0)) && (err92.schemaPath["#/allOf/1/allOf/2/then/properties/properties".length] === "/")){emErrs6.push(err92);err92.emUsed = true;}}if(emErrs6.length){const err93 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const emErrs7 = [];for(const err94 of vErrors){if(!err94.emUsed){emErrs7.push(err94);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid4 = _errs85 === errors;valid35 = _valid4;}if(!valid35){const err95 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const _errs99 = errors;let valid48 = true;const _errs100 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data.properties !== undefined){let data47 = data.properties;if(Array.isArray(data47)){const _errs102 = errors;const len7 = data47.length;for(let i7=0; i7<len7; i7++){let data48 = data47[i7];const _errs103 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if((data48.binding === undefined) && ("binding")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data48.binding !== undefined){let data49 = data48.binding;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data49.type !== undefined){if("zeebe:userTask" !== data49.type){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}}}}var valid50 = _errs103 === errors;if(valid50){break;}}if(!valid50){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}}}}}var _valid6 = _errs100 === errors;errors = _errs99;if(vErrors !== null){if(_errs99){vErrors.length = _errs99;}else {vErrors = null;}}if(_valid6){const _errs106 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err101 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data.elementType !== undefined){let data51 = data.elementType;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.value === undefined){const err102 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data51.value !== undefined){if("bpmn:UserTask" !== data51.value){const err103 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}var _valid6 = _errs106 === errors;valid48 = _valid6;}if(!valid48){const err104 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs110 = errors;let valid55 = true;const _errs111 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data.properties !== undefined){let data53 = data.properties;if(Array.isArray(data53)){const _errs113 = errors;const len8 = data53.length;for(let i8=0; i8<len8; i8++){let data54 = data53[i8];const _errs114 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.binding === undefined) && ("binding")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data54.binding !== undefined){let data55 = data54.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((((data56 === "zeebe:formDefinition") || (data56 === "zeebe:assignmentDefinition")) || (data56 === "zeebe:priorityDefinition")) || (data56 === "zeebe:taskSchedule"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}}}}var valid57 = _errs114 === errors;if(valid57){break;}}if(!valid57){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs117 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err110 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data.properties !== undefined){let data57 = data.properties;if(Array.isArray(data57)){const _errs119 = errors;const len9 = data57.length;for(let i9=0; i9<len9; i9++){let data58 = data57[i9];const _errs120 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.binding === undefined){const err111 = {instancePath:instancePath+"/properties/" + i9,schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data58.binding !== undefined){let data59 = data58.binding;if(data59 && typeof data59 == "object" && !Array.isArray(data59)){if(data59.type === undefined){const err112 = {instancePath:instancePath+"/properties/" + i9+"/binding",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data59.type !== undefined){if("zeebe:userTask" !== data59.type){const err113 = {instancePath:instancePath+"/properties/" + i9+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}}}var valid61 = _errs120 === errors;if(valid61){break;}}if(!valid61){const err114 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}}if(errors > 0){const emErrs8 = [];for(const err115 of vErrors){if(((((err115.keyword !== "errorMessage") && (!err115.emUsed)) && ((err115.instancePath === instancePath+"/properties") || ((err115.instancePath.indexOf(instancePath+"/properties") === 0) && (err115.instancePath[instancePath+"/properties".length] === "/")))) && (err115.schemaPath.indexOf("#/allOf/1/allOf/4/then/properties/properties") === 0)) && (err115.schemaPath["#/allOf/1/allOf/4/then/properties/properties".length] === "/")){emErrs8.push(err115);err115.emUsed = true;}}if(emErrs8.length){const err116 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"When using " + JSON.stringify(data57 && data57["0"] && data57["0"].binding && data57["0"].binding.type) + ", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const emErrs9 = [];for(const err117 of vErrors){if(!err117.emUsed){emErrs9.push(err117);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid7 = _errs117 === errors;valid55 = _valid7;}if(!valid55){const err118 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const _errs124 = errors;let valid64 = true;const _errs125 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data.properties !== undefined){let data61 = data.properties;if(Array.isArray(data61)){const _errs127 = errors;const len10 = data61.length;for(let i10=0; i10<len10; i10++){let data62 = data61[i10];const _errs128 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.binding === undefined) && ("binding")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data62.binding !== undefined){let data63 = data62.binding;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if((data63.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data63.type !== undefined){if("zeebe:calledDecision" !== data63.type){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}}}}var valid66 = _errs128 === errors;if(valid66){break;}}if(!valid66){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}}}}}var _valid8 = _errs125 === errors;errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid69 = false;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err124 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data.elementType !== undefined){let data65 = data.elementType;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.value === undefined){const err125 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data65.value !== undefined){if("bpmn:BusinessRuleTask" !== data65.value){const err126 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:BusinessRuleTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}}}var _valid9 = _errs133 === errors;valid69 = valid69 || _valid9;if(!valid69){const _errs136 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err127 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err128 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}var _valid9 = _errs136 === errors;valid69 = valid69 || _valid9;}if(!valid69){const err129 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data68 = data.properties;if(Array.isArray(data68)){const _errs140 = errors;const len11 = data68.length;for(let i11=0; i11<len11; i11++){let data69 = data68[i11];const _errs141 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.binding === undefined){const err130 = {instancePath:instancePath+"/properties/" + i11,schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data69.binding !== undefined){let data70 = data69.binding;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.property === undefined){const err131 = {instancePath:instancePath+"/properties/" + i11+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data70.property !== undefined){if("decisionId" !== data70.property){const err132 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "decisionId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(errors > 0){const emErrs10 = [];for(const err133 of vErrors){if(((((err133.keyword !== "errorMessage") && (!err133.emUsed)) && ((err133.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err133.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err133.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err133.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err133.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err133);err133.emUsed = true;}}if(emErrs10.length){const err134 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const emErrs11 = [];for(const err135 of vErrors){if(!err135.emUsed){emErrs11.push(err135);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid75 = _errs141 === errors;if(valid75){break;}}if(!valid75){const err136 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data72 = data.properties;if(Array.isArray(data72)){const _errs146 = errors;const len12 = data72.length;for(let i12=0; i12<len12; i12++){let data73 = data72[i12];const _errs147 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.binding === undefined){const err137 = {instancePath:instancePath+"/properties/" + i12,schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data73.binding !== undefined){let data74 = data73.binding;if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.property === undefined){const err138 = {instancePath:instancePath+"/properties/" + i12+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data74.property !== undefined){if("resultVariable" !== data74.property){const err139 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(errors > 0){const emErrs12 = [];for(const err140 of vErrors){if(((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && ((err140.instancePath === instancePath+"/properties/" + i12+"/binding/property") || ((err140.instancePath.indexOf(instancePath+"/properties/" + i12+"/binding/property") === 0) && (err140.instancePath[instancePath+"/properties/" + i12+"/binding/property".length] === "/")))) && (err140.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err140.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs12.push(err140);err140.emUsed = true;}}if(emErrs12.length){const err141 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const emErrs13 = [];for(const err142 of vErrors){if(!err142.emUsed){emErrs13.push(err142);}}vErrors = emErrs13;errors = emErrs13.length;}}}}}var valid79 = _errs147 === errors;if(valid79){break;}}if(!valid79){const err143 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err144 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data.properties !== undefined){let data76 = data.properties;const _errs152 = errors;const _errs153 = errors;if(Array.isArray(data76)){const _errs154 = errors;const len13 = data76.length;for(let i13=0; i13<len13; i13++){let data77 = data76[i13];const _errs155 = errors;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if((data77.binding === undefined) && ("binding")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data77.binding !== undefined){let data78 = data77.binding;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if((data78.type === undefined) && ("type")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data78.type !== undefined){let data79 = data78.type;if(!((data79 === "zeebe:taskDefinition") || (data79 === "zeebe:taskDefinition:type"))){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}}}}}var valid84 = _errs155 === errors;if(valid84){break;}}if(!valid84){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}}var valid83 = _errs153 === errors;if(valid83){const err149 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}}}}if(errors > 0){const emErrs14 = [];for(const err150 of vErrors){if(((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && ((err150.instancePath === instancePath) || ((err150.instancePath.indexOf(instancePath) === 0) && (err150.instancePath[instancePath.length] === "/")))) && (err150.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err150.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs14.push(err150);err150.emUsed = true;}}if(emErrs14.length){const err151 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}const emErrs15 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs15.push(err152);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid8 = _errs131 === errors;valid64 = _valid8;}if(!valid64){const err153 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs159 = errors;let valid87 = true;const _errs160 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data.properties !== undefined){let data80 = data.properties;if(Array.isArray(data80)){const _errs162 = errors;const len14 = data80.length;for(let i14=0; i14<len14; i14++){let data81 = data80[i14];const _errs163 = errors;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if((data81.binding === undefined) && ("binding")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {if(data81.binding !== undefined){let data82 = data81.binding;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if((data82.type === undefined) && ("type")){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}else {if(data82.type !== undefined){if("zeebe:script" !== data82.type){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}}}}}var valid89 = _errs163 === errors;if(valid89){break;}}if(!valid89){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}}}}}var _valid10 = _errs160 === errors;errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}if(_valid10){const _errs166 = errors;const _errs167 = errors;let valid92 = false;const _errs168 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err159 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data.elementType !== undefined){let data84 = data.elementType;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value === undefined){const err160 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data84.value !== undefined){if("bpmn:ScriptTask" !== data84.value){const err161 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:ScriptTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}}var _valid11 = _errs168 === errors;valid92 = valid92 || _valid11;if(!valid92){const _errs171 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err162 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err163 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}var _valid11 = _errs171 === errors;valid92 = valid92 || _valid11;}if(!valid92){const err164 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {errors = _errs167;if(vErrors !== null){if(_errs167){vErrors.length = _errs167;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data87 = data.properties;if(Array.isArray(data87)){const _errs175 = errors;const len15 = data87.length;for(let i15=0; i15<len15; i15++){let data88 = data87[i15];const _errs176 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err165 = {instancePath:instancePath+"/properties/" + i15,schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.property === undefined){const err166 = {instancePath:instancePath+"/properties/" + i15+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data89.property !== undefined){if("expression" !== data89.property){const err167 = {instancePath:instancePath+"/properties/" + i15+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "expression"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}}}var valid98 = _errs176 === errors;if(valid98){break;}}if(!valid98){const err168 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data91 = data.properties;if(Array.isArray(data91)){const _errs181 = errors;const len16 = data91.length;for(let i16=0; i16<len16; i16++){let data92 = data91[i16];const _errs182 = errors;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if(data92.binding === undefined){const err169 = {instancePath:instancePath+"/properties/" + i16,schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(data92.binding !== undefined){let data93 = data92.binding;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.property === undefined){const err170 = {instancePath:instancePath+"/properties/" + i16+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data93.property !== undefined){if("resultVariable" !== data93.property){const err171 = {instancePath:instancePath+"/properties/" + i16+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}}var valid102 = _errs182 === errors;if(valid102){break;}}if(!valid102){const err172 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err173 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data.properties !== undefined){let data95 = data.properties;const _errs187 = errors;const _errs188 = errors;if(Array.isArray(data95)){const _errs189 = errors;const len17 = data95.length;for(let i17=0; i17<len17; i17++){let data96 = data95[i17];const _errs190 = errors;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if((data96.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data96.binding !== undefined){let data97 = data96.binding;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if((data97.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data97.type !== undefined){let data98 = data97.type;if(!((data98 === "zeebe:taskDefinition") || (data98 === "zeebe:taskDefinition:type"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}}}}var valid107 = _errs190 === errors;if(valid107){break;}}if(!valid107){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}}var valid106 = _errs188 === errors;if(valid106){const err178 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}}}if(errors > 0){const emErrs16 = [];for(const err179 of vErrors){if(((((err179.keyword !== "errorMessage") && (!err179.emUsed)) && ((err179.instancePath === instancePath) || ((err179.instancePath.indexOf(instancePath) === 0) && (err179.instancePath[instancePath.length] === "/")))) && (err179.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err179.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs16.push(err179);err179.emUsed = true;}}if(emErrs16.length){const err180 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}const emErrs17 = [];for(const err181 of vErrors){if(!err181.emUsed){emErrs17.push(err181);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid10 = _errs166 === errors;valid87 = _valid10;}if(!valid87){const err182 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}const _errs195 = errors;let valid111 = true;const _errs196 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}else {if(data.properties !== undefined){let data99 = data.properties;if(Array.isArray(data99)){const _errs198 = errors;const len18 = data99.length;for(let i18=0; i18<len18; i18++){let data100 = data99[i18];const _errs199 = errors;if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if(((data100.binding === undefined) && ("binding")) || ((data100.value === undefined) && ("value"))){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(data100.binding !== undefined){let data101 = data100.binding;const _errs200 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.property === undefined) && ("property")) || ((data101.type === undefined) && ("type"))){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data101.property !== undefined){const _errs201 = errors;if("bindingType" !== data101.property){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var valid115 = _errs201 === errors;}else {var valid115 = true;}if(valid115){if(data101.type !== undefined){let data103 = data101.type;const _errs202 = errors;if(!((((data103 === "zeebe:calledDecision") || (data103 === "zeebe:formDefinition")) || (data103 === "zeebe:calledElement")) || (data103 === "zeebe:linkedResource"))){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid115 = _errs202 === errors;}else {var valid115 = true;}}}}var valid114 = _errs200 === errors;}else {var valid114 = true;}if(valid114){if(data100.value !== undefined){const _errs203 = errors;if("versionTag" !== data100.value){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid114 = _errs203 === errors;}else {var valid114 = true;}}}}var valid113 = _errs199 === errors;if(valid113){break;}}if(!valid113){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {errors = _errs198;if(vErrors !== null){if(_errs198){vErrors.length = _errs198;}else {vErrors = null;}}}}}}}var _valid12 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid12){const _errs204 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err190 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.properties !== undefined){let data105 = data.properties;if(Array.isArray(data105)){const _errs206 = errors;const len19 = data105.length;for(let i19=0; i19<len19; i19++){let data106 = data105[i19];const _errs207 = errors;if(data106 && typeof data106 == "object" && !Array.isArray(data106)){if(data106.binding === undefined){const err191 = {instancePath:instancePath+"/properties/" + i19,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data106.binding !== undefined){let data107 = data106.binding;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.property === undefined){const err192 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data107.type === undefined){const err193 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data107.type !== undefined){let data108 = data107.type;if(!((((data108 === "zeebe:calledDecision") || (data108 === "zeebe:formDefinition")) || (data108 === "zeebe:calledElement")) || (data108 === "zeebe:linkedResource"))){const err194 = {instancePath:instancePath+"/properties/" + i19+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[7].allOf[0].then.properties.properties.contains.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data107.property !== undefined){if("versionTag" !== data107.property){const err195 = {instancePath:instancePath+"/properties/" + i19+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}}}var valid117 = _errs207 === errors;if(valid117){break;}}if(!valid117){const err196 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}}if(errors > 0){const emErrs18 = [];for(const err197 of vErrors){if(((((err197.keyword !== "errorMessage") && (!err197.emUsed)) && ((err197.instancePath === instancePath+"/properties") || ((err197.instancePath.indexOf(instancePath+"/properties") === 0) && (err197.instancePath[instancePath+"/properties".length] === "/")))) && (err197.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/0/then/properties/properties") === 0)) && (err197.schemaPath["#/allOf/1/allOf/7/allOf/0/then/properties/properties".length] === "/")){emErrs18.push(err197);err197.emUsed = true;}}if(emErrs18.length){const err198 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const emErrs19 = [];for(const err199 of vErrors){if(!err199.emUsed){emErrs19.push(err199);}}vErrors = emErrs19;errors = emErrs19.length;}}}var _valid12 = _errs204 === errors;valid111 = _valid12;}if(!valid111){const err200 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const _errs212 = errors;let valid120 = true;const _errs213 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}else {if(data.properties !== undefined){let data110 = data.properties;if(Array.isArray(data110)){const _errs215 = errors;const len20 = data110.length;for(let i20=0; i20<len20; i20++){let data111 = data110[i20];const _errs216 = errors;const _errs217 = errors;const _errs218 = errors;if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.condition === undefined) && ("condition")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}var valid123 = _errs218 === errors;if(valid123){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}if(errors === _errs216){if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.binding === undefined) && ("binding")){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(data111.binding !== undefined){let data112 = data111.binding;if(data112 && typeof data112 == "object" && !Array.isArray(data112)){if((data112.property === undefined) && ("property")){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {if(data112.type !== undefined){let data113 = data112.type;const _errs220 = errors;if(!((((data113 === "zeebe:calledDecision") || (data113 === "zeebe:calledElement")) || (data113 === "zeebe:formDefinition")) || (data113 === "zeebe:linkedResource"))){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var valid125 = _errs220 === errors;}else {var valid125 = true;}if(valid125){if(data112.property !== undefined){const _errs221 = errors;if("versionTag" !== data112.property){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var valid125 = _errs221 === errors;}else {var valid125 = true;}}}}}}}}var valid122 = _errs216 === errors;if(valid122){break;}}if(!valid122){const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}}}}}}var _valid13 = _errs213 === errors;errors = _errs212;if(vErrors !== null){if(_errs212){vErrors.length = _errs212;}else {vErrors = null;}}if(_valid13){const _errs222 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err209 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data.properties !== undefined){let data115 = data.properties;if(Array.isArray(data115)){const _errs224 = errors;const len21 = data115.length;for(let i21=0; i21<len21; i21++){let data116 = data115[i21];const _errs225 = errors;if(data116 && typeof data116 == "object" && !Array.isArray(data116)){if(data116.binding === undefined){const err210 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(data116.value === undefined){const err211 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data116.type === undefined){const err212 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data116.binding !== undefined){let data117 = data116.binding;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(data117.property === undefined){const err213 = {instancePath:instancePath+"/properties/" + i21+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data117.property !== undefined){if("bindingType" !== data117.property){const err214 = {instancePath:instancePath+"/properties/" + i21+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "bindingType"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}}}if(data116.value !== undefined){if("versionTag" !== data116.value){const err215 = {instancePath:instancePath+"/properties/" + i21+"/value",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/value/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data116.type !== undefined){if("Hidden" !== data116.type){const err216 = {instancePath:instancePath+"/properties/" + i21+"/type",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/type/const",keyword:"const",params:{allowedValue: "Hidden"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}var valid127 = _errs225 === errors;if(valid127){break;}}if(!valid127){const err217 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {errors = _errs224;if(vErrors !== null){if(_errs224){vErrors.length = _errs224;}else {vErrors = null;}}}}if(errors > 0){const emErrs20 = [];for(const err218 of vErrors){if(((((err218.keyword !== "errorMessage") && (!err218.emUsed)) && ((err218.instancePath === instancePath+"/properties") || ((err218.instancePath.indexOf(instancePath+"/properties") === 0) && (err218.instancePath[instancePath+"/properties".length] === "/")))) && (err218.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/1/then/properties/properties") === 0)) && (err218.schemaPath["#/allOf/1/allOf/7/allOf/1/then/properties/properties".length] === "/")){emErrs20.push(err218);err218.emUsed = true;}}if(emErrs20.length){const err219 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const emErrs21 = [];for(const err220 of vErrors){if(!err220.emUsed){emErrs21.push(err220);}}vErrors = emErrs21;errors = emErrs21.length;}}}var _valid13 = _errs222 === errors;valid120 = _valid13;}if(!valid120){const err221 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}const _errs231 = errors;let valid130 = true;const _errs232 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}else {if(data.properties !== undefined){let data121 = data.properties;if(Array.isArray(data121)){const _errs234 = errors;const len22 = data121.length;for(let i22=0; i22<len22; i22++){let data122 = data121[i22];const _errs235 = errors;if(data122 && typeof data122 == "object" && !Array.isArray(data122)){if((data122.binding === undefined) && ("binding")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {if(data122.binding !== undefined){let data123 = data122.binding;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(((data123.property === undefined) && ("property")) || ((data123.type === undefined) && ("type"))){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data123.property !== undefined){const _errs237 = errors;if("bindingType" !== data123.property){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var valid134 = _errs237 === errors;}else {var valid134 = true;}if(valid134){if(data123.type !== undefined){const _errs238 = errors;if("zeebe:formDefinition" !== data123.type){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid134 = _errs238 === errors;}else {var valid134 = true;}}}}}}}var valid132 = _errs235 === errors;if(valid132){break;}}if(!valid132){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}}}}}var _valid14 = _errs232 === errors;errors = _errs231;if(vErrors !== null){if(_errs231){vErrors.length = _errs231;}else {vErrors = null;}}if(_valid14){const _errs239 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err228 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data.properties !== undefined){let data126 = data.properties;if(Array.isArray(data126)){const _errs241 = errors;const len23 = data126.length;for(let i23=0; i23<len23; i23++){let data127 = data126[i23];const _errs242 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.binding === undefined){const err229 = {instancePath:instancePath+"/properties/" + i23,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if(data127.binding !== undefined){let data128 = data127.binding;if(data128 && typeof data128 == "object" && !Array.isArray(data128)){if(data128.property === undefined){const err230 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if(data128.type === undefined){const err231 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data128.type !== undefined){if("zeebe:formDefinition" !== data128.type){const err232 = {instancePath:instancePath+"/properties/" + i23+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:formDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data128.property !== undefined){if("formId" !== data128.property){const err233 = {instancePath:instancePath+"/properties/" + i23+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "formId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}}}var valid136 = _errs242 === errors;if(valid136){break;}}if(!valid136){const err234 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs241;if(vErrors !== null){if(_errs241){vErrors.length = _errs241;}else {vErrors = null;}}}}if(errors > 0){const emErrs22 = [];for(const err235 of vErrors){if(((((err235.keyword !== "errorMessage") && (!err235.emUsed)) && ((err235.instancePath === instancePath+"/properties") || ((err235.instancePath.indexOf(instancePath+"/properties") === 0) && (err235.instancePath[instancePath+"/properties".length] === "/")))) && (err235.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/2/then/properties/properties") === 0)) && (err235.schemaPath["#/allOf/1/allOf/7/allOf/2/then/properties/properties".length] === "/")){emErrs22.push(err235);err235.emUsed = true;}}if(emErrs22.length){const err236 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const emErrs23 = [];for(const err237 of vErrors){if(!err237.emUsed){emErrs23.push(err237);}}vErrors = emErrs23;errors = emErrs23.length;}}}var _valid14 = _errs239 === errors;valid130 = _valid14;}if(!valid130){const err238 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}const _errs247 = errors;let valid139 = true;const _errs248 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {if(data.properties !== undefined){let data131 = data.properties;if(Array.isArray(data131)){const _errs250 = errors;const len24 = data131.length;for(let i24=0; i24<len24; i24++){let data132 = data131[i24];const _errs251 = errors;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if((data132.binding === undefined) && ("binding")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data132.binding !== undefined){let data133 = data132.binding;if(data133 && typeof data133 == "object" && !Array.isArray(data133)){if(((data133.property === undefined) && ("property")) || ((data133.type === undefined) && ("type"))){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data133.property !== undefined){const _errs253 = errors;if("formId" !== data133.property){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var valid143 = _errs253 === errors;}else {var valid143 = true;}if(valid143){if(data133.type !== undefined){const _errs254 = errors;if("zeebe:formDefinition" !== data133.type){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}var valid143 = _errs254 === errors;}else {var valid143 = true;}}}}}}}var valid141 = _errs251 === errors;if(valid141){break;}}if(!valid141){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {errors = _errs250;if(vErrors !== null){if(_errs250){vErrors.length = _errs250;}else {vErrors = null;}}}}}}}var _valid15 = _errs248 === errors;errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}if(_valid15){const _errs255 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err245 = {instancePath,schemaPath:"#/allOf/1/allOf/8/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data.properties !== undefined){let data136 = data.properties;const _errs257 = errors;const _errs258 = errors;if(Array.isArray(data136)){const _errs259 = errors;const len25 = data136.length;for(let i25=0; i25<len25; i25++){let data137 = data136[i25];const _errs260 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if((data137.binding === undefined) && ("binding")){const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(data137.binding !== undefined){let data138 = data137.binding;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(((data138.property === undefined) && ("property")) || ((data138.type === undefined) && ("type"))){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data138.type !== undefined){const _errs262 = errors;if("zeebe:formDefinition" !== data138.type){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}var valid148 = _errs262 === errors;}else {var valid148 = true;}if(valid148){if(data138.property !== undefined){const _errs263 = errors;if("externalReference" !== data138.property){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var valid148 = _errs263 === errors;}else {var valid148 = true;}}}}}}}var valid146 = _errs260 === errors;if(valid146){break;}}if(!valid146){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}}var valid145 = _errs258 === errors;if(valid145){const err251 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err252 of vErrors){if(((((err252.keyword !== "errorMessage") && (!err252.emUsed)) && ((err252.instancePath === instancePath+"/properties") || ((err252.instancePath.indexOf(instancePath+"/properties") === 0) && (err252.instancePath[instancePath+"/properties".length] === "/")))) && (err252.schemaPath.indexOf("#/allOf/1/allOf/8/then/properties/properties") === 0)) && (err252.schemaPath["#/allOf/1/allOf/8/then/properties/properties".length] === "/")){emErrs24.push(err252);err252.emUsed = true;}}if(emErrs24.length){const err253 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"\"formId\" and \"externalReference\" cannot be used together"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}const emErrs25 = [];for(const err254 of vErrors){if(!err254.emUsed){emErrs25.push(err254);}}vErrors = emErrs25;errors = emErrs25.length;}}}var _valid15 = _errs255 === errors;valid139 = _valid15;}if(!valid139){const err255 = {instancePath,schemaPath:"#/allOf/1/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}const _errs266 = errors;let valid150 = true;const _errs267 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err256 = {};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {if(data.properties !== undefined){let data141 = data.properties;if(Array.isArray(data141)){const _errs269 = errors;const len26 = data141.length;for(let i26=0; i26<len26; i26++){let data142 = data141[i26];const _errs270 = errors;if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if((data142.binding === undefined) && ("binding")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data142.binding !== undefined){let data143 = data142.binding;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if((data143.type === undefined) && ("type")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data143.type !== undefined){if("zeebe:adHoc" !== data143.type){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}}}}}}var valid152 = _errs270 === errors;if(valid152){break;}}if(!valid152){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs269;if(vErrors !== null){if(_errs269){vErrors.length = _errs269;}else {vErrors = null;}}}}}}}var _valid16 = _errs267 === errors;errors = _errs266;if(vErrors !== null){if(_errs266){vErrors.length = _errs266;}else {vErrors = null;}}if(_valid16){const _errs273 = errors;const _errs274 = errors;let valid155 = false;const _errs275 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err261 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(data.elementType !== undefined){let data145 = data.elementType;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.value === undefined){const err262 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data145.value !== undefined){if("bpmn:AdHocSubProcess" !== data145.value){const err263 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:AdHocSubProcess"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}}}var _valid17 = _errs275 === errors;valid155 = valid155 || _valid17;if(!valid155){const _errs278 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err264 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err265 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}var _valid17 = _errs278 === errors;valid155 = valid155 || _valid17;}if(!valid155){const err266 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}else {errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}}var _valid16 = _errs273 === errors;valid150 = _valid16;}if(!valid150){const err267 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const _errs282 = errors;let valid159 = true;const _errs283 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data.properties !== undefined){let data148 = data.properties;if(Array.isArray(data148)){const _errs285 = errors;const len27 = data148.length;for(let i27=0; i27<len27; i27++){let data149 = data148[i27];const _errs286 = errors;if(data149 && typeof data149 == "object" && !Array.isArray(data149)){if((data149.binding === undefined) && ("binding")){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {if(data149.binding !== undefined){let data150 = data149.binding;if(data150 && typeof data150 == "object" && !Array.isArray(data150)){if(((data150.type === undefined) && ("type")) || ((data150.property === undefined) && ("property"))){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {if(data150.type !== undefined){const _errs288 = errors;if("zeebe:adHoc" !== data150.type){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var valid163 = _errs288 === errors;}else {var valid163 = true;}if(valid163){if(data150.property !== undefined){let data152 = data150.property;const _errs289 = errors;if(!((data152 === "outputCollection") || (data152 === "outputElement"))){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var valid163 = _errs289 === errors;}else {var valid163 = true;}}}}}}}var valid161 = _errs286 === errors;if(valid161){break;}}if(!valid161){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}}}}}}var _valid18 = _errs283 === errors;errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}if(_valid18){const _errs290 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err274 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data.properties !== undefined){let data153 = data.properties;if(Array.isArray(data153)){const _errs293 = errors;const len28 = data153.length;for(let i28=0; i28<len28; i28++){let data154 = data153[i28];const _errs294 = errors;if(data154 && typeof data154 == "object" && !Array.isArray(data154)){if(data154.binding === undefined){const err275 = {instancePath:instancePath+"/properties/" + i28,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if(data154.binding !== undefined){let data155 = data154.binding;if(data155 && typeof data155 == "object" && !Array.isArray(data155)){if(data155.type === undefined){const err276 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if(data155.property === undefined){const err277 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data155.type !== undefined){if("zeebe:adHoc" !== data155.type){const err278 = {instancePath:instancePath+"/properties/" + i28+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data155.property !== undefined){if("outputElement" !== data155.property){const err279 = {instancePath:instancePath+"/properties/" + i28+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}}}}var valid166 = _errs294 === errors;if(valid166){break;}}if(!valid166){const err280 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {errors = _errs293;if(vErrors !== null){if(_errs293){vErrors.length = _errs293;}else {vErrors = null;}}}}if(errors > 0){const emErrs26 = [];for(const err281 of vErrors){if(((((err281.keyword !== "errorMessage") && (!err281.emUsed)) && ((err281.instancePath === instancePath+"/properties") || ((err281.instancePath.indexOf(instancePath+"/properties") === 0) && (err281.instancePath[instancePath+"/properties".length] === "/")))) && (err281.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0") === 0)) && (err281.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0".length] === "/")){emErrs26.push(err281);err281.emUsed = true;}}if(emErrs26.length){const err282 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}const emErrs27 = [];for(const err283 of vErrors){if(!err283.emUsed){emErrs27.push(err283);}}vErrors = emErrs27;errors = emErrs27.length;}if(Array.isArray(data153)){const _errs299 = errors;const len29 = data153.length;for(let i29=0; i29<len29; i29++){let data158 = data153[i29];const _errs300 = errors;if(data158 && typeof data158 == "object" && !Array.isArray(data158)){if(data158.binding === undefined){const err284 = {instancePath:instancePath+"/properties/" + i29,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data158.binding !== undefined){let data159 = data158.binding;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(data159.type === undefined){const err285 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data159.property === undefined){const err286 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data159.type !== undefined){if("zeebe:adHoc" !== data159.type){const err287 = {instancePath:instancePath+"/properties/" + i29+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(data159.property !== undefined){if("outputCollection" !== data159.property){const err288 = {instancePath:instancePath+"/properties/" + i29+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputCollection"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}}}}var valid169 = _errs300 === errors;if(valid169){break;}}if(!valid169){const err289 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs299;if(vErrors !== null){if(_errs299){vErrors.length = _errs299;}else {vErrors = null;}}}}if(errors > 0){const emErrs28 = [];for(const err290 of vErrors){if(((((err290.keyword !== "errorMessage") && (!err290.emUsed)) && ((err290.instancePath === instancePath+"/properties") || ((err290.instancePath.indexOf(instancePath+"/properties") === 0) && (err290.instancePath[instancePath+"/properties".length] === "/")))) && (err290.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1") === 0)) && (err290.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1".length] === "/")){emErrs28.push(err290);err290.emUsed = true;}}if(emErrs28.length){const err291 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}const emErrs29 = [];for(const err292 of vErrors){if(!err292.emUsed){emErrs29.push(err292);}}vErrors = emErrs29;errors = emErrs29.length;}}}var _valid18 = _errs290 === errors;valid159 = _valid18;}if(!valid159){const err293 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}const _errs306 = errors;let valid172 = true;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid174 = false;const _errs310 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {if(data.elementType !== undefined){let data162 = data.elementType;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if((data162.value === undefined) && ("value")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data162.value !== undefined){if("bpmn:AdHocSubProcess" !== data162.value){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}}}}}var _valid20 = _errs310 === errors;valid174 = valid174 || _valid20;if(!valid174){const _errs313 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[2].if.allOf[0].anyOf[1].properties.appliesTo.const)){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid20 = _errs313 === errors;valid174 = valid174 || _valid20;}if(!valid174){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid173 = _errs308 === errors;if(valid173){const _errs315 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}else {if(data.properties !== undefined){let data165 = data.properties;if(Array.isArray(data165)){const _errs317 = errors;const len30 = data165.length;for(let i30=0; i30<len30; i30++){let data166 = data165[i30];const _errs318 = errors;if(errors === _errs318){if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if((data166.binding === undefined) && ("binding")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {if(data166.binding !== undefined){let data167 = data166.binding;if(data167 && typeof data167 == "object" && !Array.isArray(data167)){if(((data167.type === undefined) && ("type")) || ((data167.property === undefined) && ("property"))){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {if(data167.type !== undefined){const _errs321 = errors;if("zeebe:taskDefinition" !== data167.type){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var valid181 = _errs321 === errors;}else {var valid181 = true;}if(valid181){if(data167.property !== undefined){const _errs322 = errors;if("type" !== data167.property){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid181 = _errs322 === errors;}else {var valid181 = true;}}}}}}}else {const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}var valid179 = _errs318 === errors;if(valid179){break;}}if(!valid179){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}}}}var valid173 = _errs315 === errors;}var _valid19 = _errs307 === errors;errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}if(_valid19){const _errs323 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err307 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data.properties !== undefined){let data170 = data.properties;if(Array.isArray(data170)){const len31 = data170.length;for(let i31=0; i31<len31; i31++){let data171 = data170[i31];const _errs327 = errors;const _errs328 = errors;if(data171 && typeof data171 == "object" && !Array.isArray(data171)){if((data171.binding === undefined) && ("binding")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}else {if(data171.binding !== undefined){let data172 = data171.binding;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(((data172.type === undefined) && ("type")) || ((data172.name === undefined) && ("name"))){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {if(data172.type !== undefined){const _errs330 = errors;if("property" !== data172.type){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}var valid188 = _errs330 === errors;}else {var valid188 = true;}if(valid188){if(data172.name !== undefined){let data174 = data172.name;const _errs331 = errors;if(!((data174 === "cancelRemainingInstances") || (data174 === "completionCondition"))){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var valid188 = _errs331 === errors;}else {var valid188 = true;}}}}}}}var valid186 = _errs328 === errors;if(valid186){const err312 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {errors = _errs327;if(vErrors !== null){if(_errs327){vErrors.length = _errs327;}else {vErrors = null;}}}if(errors > 0){const emErrs30 = [];for(const err313 of vErrors){if(((((err313.keyword !== "errorMessage") && (!err313.emUsed)) && ((err313.instancePath === instancePath+"/properties/" + i31) || ((err313.instancePath.indexOf(instancePath+"/properties/" + i31) === 0) && (err313.instancePath[instancePath+"/properties/" + i31.length] === "/")))) && (err313.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items") === 0)) && (err313.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items".length] === "/")){emErrs30.push(err313);err313.emUsed = true;}}if(emErrs30.length){const err314 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs30},message:"Property " + JSON.stringify(data171 && data171.binding && data171.binding.name) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}const emErrs31 = [];for(const err315 of vErrors){if(!err315.emUsed){emErrs31.push(err315);}}vErrors = emErrs31;errors = emErrs31.length;}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err316 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data.properties !== undefined){let data175 = data.properties;if(Array.isArray(data175)){const len32 = data175.length;for(let i32=0; i32<len32; i32++){let data176 = data175[i32];const _errs335 = errors;const _errs336 = errors;if(data176 && typeof data176 == "object" && !Array.isArray(data176)){if((data176.binding === undefined) && ("binding")){const err317 = {};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}else {if(data176.binding !== undefined){let data177 = data176.binding;if(data177 && typeof data177 == "object" && !Array.isArray(data177)){if(((data177.type === undefined) && ("type")) || ((data177.property === undefined) && ("property"))){const err318 = {};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}else {if(data177.type !== undefined){const _errs338 = errors;if("zeebe:adHoc" !== data177.type){const err319 = {};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var valid194 = _errs338 === errors;}else {var valid194 = true;}if(valid194){if(data177.property !== undefined){const _errs339 = errors;if("activeElementsCollection" !== data177.property){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var valid194 = _errs339 === errors;}else {var valid194 = true;}}}}}}}var valid192 = _errs336 === errors;if(valid192){const err321 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}if(errors > 0){const emErrs32 = [];for(const err322 of vErrors){if(((((err322.keyword !== "errorMessage") && (!err322.emUsed)) && ((err322.instancePath === instancePath+"/properties/" + i32) || ((err322.instancePath.indexOf(instancePath+"/properties/" + i32) === 0) && (err322.instancePath[instancePath+"/properties/" + i32.length] === "/")))) && (err322.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items") === 0)) && (err322.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items".length] === "/")){emErrs32.push(err322);err322.emUsed = true;}}if(emErrs32.length){const err323 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs32},message:"Property " + JSON.stringify(data176 && data176.binding && data176.binding.property) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}const emErrs33 = [];for(const err324 of vErrors){if(!err324.emUsed){emErrs33.push(err324);}}vErrors = emErrs33;errors = emErrs33.length;}}}}}var _valid19 = _errs323 === errors;valid172 = _valid19;}if(!valid172){const err325 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const _errs342 = errors;let valid196 = true;const _errs343 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}else {if(data.properties !== undefined){let data180 = data.properties;if(Array.isArray(data180)){const _errs345 = errors;const len33 = data180.length;for(let i33=0; i33<len33; i33++){let data181 = data180[i33];const _errs346 = errors;if(data181 && typeof data181 == "object" && !Array.isArray(data181)){if((data181.binding === undefined) && ("binding")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data181.binding !== undefined){let data182 = data181.binding;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if((data182.type === undefined) && ("type")){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data182.type !== undefined){if("bpmn:Signal#property" !== data182.type){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}}}}}var valid198 = _errs346 === errors;if(valid198){break;}}if(!valid198){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}else {errors = _errs345;if(vErrors !== null){if(_errs345){vErrors.length = _errs345;}else {vErrors = null;}}}}}}}var _valid21 = _errs343 === errors;errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}if(_valid21){const _errs349 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err331 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(data.elementType !== undefined){let data184 = data.elementType;if(data184 && typeof data184 == "object" && !Array.isArray(data184)){if(data184.eventDefinition === undefined){const err332 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data184.value === undefined){const err333 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data184.value !== undefined){let data185 = data184.value;if(!(((((data185 === "bpmn:StartEvent") || (data185 === "bpmn:IntermediateCatchEvent")) || (data185 === "bpmn:IntermediateThrowEvent")) || (data185 === "bpmn:BoundaryEvent")) || (data185 === "bpmn:EndEvent"))){const err334 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[10].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}if(data184.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data184.eventDefinition){const err335 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:SignalEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}}}var _valid21 = _errs349 === errors;valid196 = _valid21;}if(!valid196){const err336 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}const _errs354 = errors;let valid203 = true;const _errs355 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}else {if(data.elementType !== undefined){let data187 = data.elementType;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if((data187.eventDefinition === undefined) && ("eventDefinition")){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data187.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data187.eventDefinition){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}}}}}}var _valid22 = _errs355 === errors;errors = _errs354;if(vErrors !== null){if(_errs354){vErrors.length = _errs354;}else {vErrors = null;}}if(_valid22){const _errs358 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data189 = data.properties;if(Array.isArray(data189)){const _errs360 = errors;const len34 = data189.length;for(let i34=0; i34<len34; i34++){let data190 = data189[i34];const _errs361 = errors;if(data190 && typeof data190 == "object" && !Array.isArray(data190)){if(data190.binding === undefined){const err340 = {instancePath:instancePath+"/properties/" + i34,schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data190.binding !== undefined){let data191 = data190.binding;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.type === undefined){const err341 = {instancePath:instancePath+"/properties/" + i34+"/binding",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data191.type !== undefined){if("bpmn:Signal#property" !== data191.type){const err342 = {instancePath:instancePath+"/properties/" + i34+"/binding/type",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:Signal#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}}}}var valid207 = _errs361 === errors;if(valid207){break;}}if(!valid207){const err343 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}else {errors = _errs360;if(vErrors !== null){if(_errs360){vErrors.length = _errs360;}else {vErrors = null;}}}}if(errors > 0){const emErrs34 = [];for(const err344 of vErrors){if(((((err344.keyword !== "errorMessage") && (!err344.emUsed)) && ((err344.instancePath === instancePath+"/properties") || ((err344.instancePath.indexOf(instancePath+"/properties") === 0) && (err344.instancePath[instancePath+"/properties".length] === "/")))) && (err344.schemaPath.indexOf("#/allOf/1/allOf/10/allOf/1/then/properties/properties") === 0)) && (err344.schemaPath["#/allOf/1/allOf/10/allOf/1/then/properties/properties".length] === "/")){emErrs34.push(err344);err344.emUsed = true;}}if(emErrs34.length){const err345 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs34},message:"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}const emErrs35 = [];for(const err346 of vErrors){if(!err346.emUsed){emErrs35.push(err346);}}vErrors = emErrs35;errors = emErrs35.length;}}}var _valid22 = _errs358 === errors;valid203 = _valid22;}if(!valid203){const err347 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}const _errs366 = errors;let valid211 = true;const _errs367 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}else {if(data.properties !== undefined){let data193 = data.properties;if(Array.isArray(data193)){const _errs369 = errors;const len35 = data193.length;for(let i35=0; i35<len35; i35++){let data194 = data193[i35];const _errs370 = errors;if(data194 && typeof data194 == "object" && !Array.isArray(data194)){if((data194.binding === undefined) && ("binding")){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}else {if(data194.binding !== undefined){let data195 = data194.binding;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(((data195.type === undefined) && ("type")) || ((data195.name === undefined) && ("name"))){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}else {if(data195.type !== undefined){const _errs372 = errors;if("bpmn:TimerEventDefinition#property" !== data195.type){const err351 = {};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var valid215 = _errs372 === errors;}else {var valid215 = true;}if(valid215){if(data195.name !== undefined){let data197 = data195.name;const _errs373 = errors;if(!(((data197 === "timeDate") || (data197 === "timeCycle")) || (data197 === "timeDuration"))){const err352 = {};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid215 = _errs373 === errors;}else {var valid215 = true;}}}}}}}var valid213 = _errs370 === errors;if(valid213){break;}}if(!valid213){const err353 = {};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {errors = _errs369;if(vErrors !== null){if(_errs369){vErrors.length = _errs369;}else {vErrors = null;}}}}}}}var _valid23 = _errs367 === errors;errors = _errs366;if(vErrors !== null){if(_errs366){vErrors.length = _errs366;}else {vErrors = null;}}if(_valid23){const _errs374 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err354 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(data.elementType !== undefined){let data198 = data.elementType;if(data198 && typeof data198 == "object" && !Array.isArray(data198)){if(data198.eventDefinition === undefined){const err355 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data198.value === undefined){const err356 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if(data198.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data198.eventDefinition){const err357 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}if(data198.value !== undefined){let data200 = data198.value;if(!(((data200 === "bpmn:StartEvent") || (data200 === "bpmn:IntermediateCatchEvent")) || (data200 === "bpmn:BoundaryEvent"))){const err358 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}}if(errors > 0){const emErrors6 = {"required":{"eventDefinition":[]}};const templates6 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err359 of vErrors){if((((((err359.keyword !== "errorMessage") && (!err359.emUsed)) && (err359.instancePath === instancePath+"/elementType")) && (err359.keyword in emErrors6)) && (err359.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/0/then/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err359.schemaPath.slice(54)))){emPropParams3 = obj0[err359.keyword];emParamsErrors3 = emErrors6[err359.keyword][err359.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err359);err359.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err360 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}}const emErrs36 = [];for(const err361 of vErrors){if(!err361.emUsed){emErrs36.push(err361);}}vErrors = emErrs36;errors = emErrs36.length;}}}var _valid23 = _errs374 === errors;valid211 = _valid23;}if(!valid211){const err362 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}const _errs379 = errors;let valid218 = true;const _errs380 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {if(data.elementType !== undefined){let data201 = data.elementType;if(data201 && typeof data201 == "object" && !Array.isArray(data201)){if((data201.eventDefinition === undefined) && ("eventDefinition")){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data201.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data201.eventDefinition){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}}}}}var _valid24 = _errs380 === errors;errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}if(_valid24){const _errs383 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err366 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data.properties !== undefined){let data203 = data.properties;const _errs385 = errors;let valid222 = false;let passing0 = null;const _errs386 = errors;if(Array.isArray(data203)){const _errs387 = errors;const len36 = data203.length;for(let i36=0; i36<len36; i36++){let data204 = data203[i36];const _errs388 = errors;if(data204 && typeof data204 == "object" && !Array.isArray(data204)){if(data204.binding === undefined){const err367 = {instancePath:instancePath+"/properties/" + i36,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data204.binding !== undefined){let data205 = data204.binding;if(data205 && typeof data205 == "object" && !Array.isArray(data205)){if(data205.type === undefined){const err368 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data205.name === undefined){const err369 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data205.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data205.type){const err370 = {instancePath:instancePath+"/properties/" + i36+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(data205.name !== undefined){if("timeDate" !== data205.name){const err371 = {instancePath:instancePath+"/properties/" + i36+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDate"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}}}var valid223 = _errs388 === errors;if(valid223){break;}}if(!valid223){const err372 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {errors = _errs387;if(vErrors !== null){if(_errs387){vErrors.length = _errs387;}else {vErrors = null;}}}}var _valid25 = _errs386 === errors;if(_valid25){valid222 = true;passing0 = 0;}const _errs393 = errors;if(Array.isArray(data203)){const _errs394 = errors;const len37 = data203.length;for(let i37=0; i37<len37; i37++){let data208 = data203[i37];const _errs395 = errors;if(data208 && typeof data208 == "object" && !Array.isArray(data208)){if(data208.binding === undefined){const err373 = {instancePath:instancePath+"/properties/" + i37,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}if(data208.binding !== undefined){let data209 = data208.binding;if(data209 && typeof data209 == "object" && !Array.isArray(data209)){if(data209.type === undefined){const err374 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data209.name === undefined){const err375 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data209.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data209.type){const err376 = {instancePath:instancePath+"/properties/" + i37+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(data209.name !== undefined){if("timeCycle" !== data209.name){const err377 = {instancePath:instancePath+"/properties/" + i37+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeCycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}}}}var valid227 = _errs395 === errors;if(valid227){break;}}if(!valid227){const err378 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}else {errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}}}var _valid25 = _errs393 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 1];}else {if(_valid25){valid222 = true;passing0 = 1;}const _errs400 = errors;if(Array.isArray(data203)){const _errs401 = errors;const len38 = data203.length;for(let i38=0; i38<len38; i38++){let data212 = data203[i38];const _errs402 = errors;if(data212 && typeof data212 == "object" && !Array.isArray(data212)){if(data212.binding === undefined){const err379 = {instancePath:instancePath+"/properties/" + i38,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if(data212.binding !== undefined){let data213 = data212.binding;if(data213 && typeof data213 == "object" && !Array.isArray(data213)){if(data213.type === undefined){const err380 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data213.name === undefined){const err381 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data213.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data213.type){const err382 = {instancePath:instancePath+"/properties/" + i38+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}if(data213.name !== undefined){if("timeDuration" !== data213.name){const err383 = {instancePath:instancePath+"/properties/" + i38+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDuration"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}}}}var valid231 = _errs402 === errors;if(valid231){break;}}if(!valid231){const err384 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/2/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {errors = _errs401;if(vErrors !== null){if(_errs401){vErrors.length = _errs401;}else {vErrors = null;}}}}var _valid25 = _errs400 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 2];}else {if(_valid25){valid222 = true;passing0 = 2;}}}if(!valid222){const err385 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs385;if(vErrors !== null){if(_errs385){vErrors.length = _errs385;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err386 of vErrors){if(((((err386.keyword !== "errorMessage") && (!err386.emUsed)) && ((err386.instancePath === instancePath+"/properties") || ((err386.instancePath.indexOf(instancePath+"/properties") === 0) && (err386.instancePath[instancePath+"/properties".length] === "/")))) && (err386.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/1/then/properties/properties") === 0)) && (err386.schemaPath["#/allOf/1/allOf/11/allOf/1/then/properties/properties".length] === "/")){emErrs37.push(err386);err386.emUsed = true;}}if(emErrs37.length){const err387 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}const emErrs38 = [];for(const err388 of vErrors){if(!err388.emUsed){emErrs38.push(err388);}}vErrors = emErrs38;errors = emErrs38.length;}}}var _valid24 = _errs383 === errors;valid218 = _valid24;}if(!valid218){const err389 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}const _errs408 = errors;let valid235 = true;const _errs409 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(data.elementType !== undefined){let data216 = data.elementType;if(data216 && typeof data216 == "object" && !Array.isArray(data216)){if(((data216.eventDefinition === undefined) && ("eventDefinition")) || ((data216.value === undefined) && ("value"))){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {if(data216.eventDefinition !== undefined){const _errs411 = errors;if("bpmn:TimerEventDefinition" !== data216.eventDefinition){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}var valid237 = _errs411 === errors;}else {var valid237 = true;}if(valid237){if(data216.value !== undefined){const _errs412 = errors;if("bpmn:IntermediateCatchEvent" !== data216.value){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid237 = _errs412 === errors;}else {var valid237 = true;}}}}}}}var _valid26 = _errs409 === errors;errors = _errs408;if(vErrors !== null){if(_errs408){vErrors.length = _errs408;}else {vErrors = null;}}if(_valid26){const _errs413 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data219 = data.properties;const _errs415 = errors;const _errs416 = errors;if(Array.isArray(data219)){const _errs417 = errors;const len39 = data219.length;for(let i39=0; i39<len39; i39++){let data220 = data219[i39];const _errs418 = errors;if(data220 && typeof data220 == "object" && !Array.isArray(data220)){if((data220.binding === undefined) && ("binding")){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}else {if(data220.binding !== undefined){let data221 = data220.binding;if(data221 && typeof data221 == "object" && !Array.isArray(data221)){if(((data221.type === undefined) && ("type")) || ((data221.name === undefined) && ("name"))){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {if(data221.type !== undefined){const _errs421 = errors;if("bpmn:TimerEventDefinition#property" !== data221.type){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}var valid243 = _errs421 === errors;}else {var valid243 = true;}if(valid243){if(data221.name !== undefined){const _errs422 = errors;if("timeCycle" !== data221.name){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}var valid243 = _errs422 === errors;}else {var valid243 = true;}}}}}}}var valid240 = _errs418 === errors;if(valid240){break;}}if(!valid240){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}var valid239 = _errs416 === errors;if(valid239){const err399 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/2/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}}}var _valid26 = _errs413 === errors;valid235 = _valid26;}if(!valid235){const err400 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}const _errs425 = errors;let valid245 = true;const _errs426 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {if(data.properties !== undefined){let data224 = data.properties;if(Array.isArray(data224)){const _errs428 = errors;const len40 = data224.length;for(let i40=0; i40<len40; i40++){let data225 = data224[i40];const _errs429 = errors;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(((data225.binding === undefined) && ("binding")) || ((data225.value === undefined) && ("value"))){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}else {if(data225.binding !== undefined){let data226 = data225.binding;const _errs430 = errors;if(data226 && typeof data226 == "object" && !Array.isArray(data226)){if(((data226.property === undefined) && ("property")) || ((data226.type === undefined) && ("type"))){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {if(data226.type !== undefined){const _errs431 = errors;if("zeebe:calledElement" !== data226.type){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid249 = _errs431 === errors;}else {var valid249 = true;}if(valid249){if(data226.property !== undefined){const _errs432 = errors;if("propagateAllChildVariables" !== data226.property){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}var valid249 = _errs432 === errors;}else {var valid249 = true;}}}}var valid248 = _errs430 === errors;}else {var valid248 = true;}if(valid248){if(data225.value !== undefined){const _errs433 = errors;if(true !== data225.value){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}var valid248 = _errs433 === errors;}else {var valid248 = true;}}}}var valid247 = _errs429 === errors;if(valid247){break;}}if(!valid247){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {errors = _errs428;if(vErrors !== null){if(_errs428){vErrors.length = _errs428;}else {vErrors = null;}}}}}}}var _valid27 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}if(_valid27){const _errs434 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err408 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data.properties !== undefined){let data230 = data.properties;const _errs436 = errors;const _errs437 = errors;if(Array.isArray(data230)){const _errs438 = errors;const len41 = data230.length;for(let i41=0; i41<len41; i41++){let data231 = data230[i41];const _errs439 = errors;if(data231 && typeof data231 == "object" && !Array.isArray(data231)){if((data231.binding === undefined) && ("binding")){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}else {if(data231.binding !== undefined){let data232 = data231.binding;if(data232 && typeof data232 == "object" && !Array.isArray(data232)){if((data232.type === undefined) && ("type")){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}else {if(data232.type !== undefined){if("zeebe:output" !== data232.type){const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}}}}}var valid252 = _errs439 === errors;if(valid252){break;}}if(!valid252){const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}else {errors = _errs438;if(vErrors !== null){if(_errs438){vErrors.length = _errs438;}else {vErrors = null;}}}}var valid251 = _errs437 === errors;if(valid251){const err413 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/0/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}else {errors = _errs436;if(vErrors !== null){if(_errs436){vErrors.length = _errs436;}else {vErrors = null;}}}if(errors > 0){const emErrs39 = [];for(const err414 of vErrors){if(((((err414.keyword !== "errorMessage") && (!err414.emUsed)) && ((err414.instancePath === instancePath+"/properties") || ((err414.instancePath.indexOf(instancePath+"/properties") === 0) && (err414.instancePath[instancePath+"/properties".length] === "/")))) && (err414.schemaPath.indexOf("#/allOf/1/allOf/12/allOf/0/then/properties/properties") === 0)) && (err414.schemaPath["#/allOf/1/allOf/12/allOf/0/then/properties/properties".length] === "/")){emErrs39.push(err414);err414.emUsed = true;}}if(emErrs39.length){const err415 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}const emErrs40 = [];for(const err416 of vErrors){if(!err416.emUsed){emErrs40.push(err416);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid27 = _errs434 === errors;valid245 = _valid27;}if(!valid245){const err417 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}const _errs443 = errors;let valid255 = true;const _errs444 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.entriesVisible === undefined) && ("entriesVisible")){const err418 = {};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}else {if(data.entriesVisible !== undefined){let data234 = data.entriesVisible;const _errs445 = errors;if(errors === _errs445){if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if((data234.outputs === undefined) && ("outputs")){const err419 = {};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {if(data234.outputs !== undefined){if(true !== data234.outputs){const err420 = {};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}}else {const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}}}}var _valid28 = _errs444 === errors;errors = _errs443;if(vErrors !== null){if(_errs443){vErrors.length = _errs443;}else {vErrors = null;}}if(_valid28){const _errs448 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data236 = data.properties;const _errs450 = errors;const _errs451 = errors;if(Array.isArray(data236)){const _errs452 = errors;const len42 = data236.length;for(let i42=0; i42<len42; i42++){let data237 = data236[i42];const _errs453 = errors;if(data237 && typeof data237 == "object" && !Array.isArray(data237)){if((data237.binding === undefined) && ("binding")){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}else {if(data237.binding !== undefined){let data238 = data237.binding;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if((data238.type === undefined) && ("type")){const err423 = {};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(data238.type !== undefined){if("zeebe:output" !== data238.type){const err424 = {};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}}}}}}var valid260 = _errs453 === errors;if(valid260){break;}}if(!valid260){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}else {errors = _errs452;if(vErrors !== null){if(_errs452){vErrors.length = _errs452;}else {vErrors = null;}}}}var valid259 = _errs451 === errors;if(valid259){const err426 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/1/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}if(errors > 0){const emErrs41 = [];for(const err427 of vErrors){if(((((err427.keyword !== "errorMessage") && (!err427.emUsed)) && ((err427.instancePath === instancePath+"/properties") || ((err427.instancePath.indexOf(instancePath+"/properties") === 0) && (err427.instancePath[instancePath+"/properties".length] === "/")))) && (err427.schemaPath.indexOf("#/allOf/1/allOf/12/allOf/1/then/properties/properties") === 0)) && (err427.schemaPath["#/allOf/1/allOf/12/allOf/1/then/properties/properties".length] === "/")){emErrs41.push(err427);err427.emUsed = true;}}if(emErrs41.length){const err428 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"Binding with `type`=`zeebe:output` must not be used when `entriesVisible.outputs` is set to `true`"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const emErrs42 = [];for(const err429 of vErrors){if(!err429.emUsed){emErrs42.push(err429);}}vErrors = emErrs42;errors = emErrs42.length;}}}var _valid28 = _errs448 === errors;valid255 = _valid28;}if(!valid255){const err430 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}const _errs458 = errors;let valid264 = true;const _errs459 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {if(data.properties !== undefined){let data240 = data.properties;if(Array.isArray(data240)){const _errs461 = errors;const len43 = data240.length;for(let i43=0; i43<len43; i43++){let data241 = data240[i43];const _errs462 = errors;if(data241 && typeof data241 == "object" && !Array.isArray(data241)){if((data241.binding === undefined) && ("binding")){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {if(data241.binding !== undefined){let data242 = data241.binding;if(data242 && typeof data242 == "object" && !Array.isArray(data242)){if((data242.type === undefined) && ("type")){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {if(data242.type !== undefined){if("zeebe:taskListener" !== data242.type){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}}}}}}var valid266 = _errs462 === errors;if(valid266){break;}}if(!valid266){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}else {errors = _errs461;if(vErrors !== null){if(_errs461){vErrors.length = _errs461;}else {vErrors = null;}}}}}}}var _valid29 = _errs459 === errors;errors = _errs458;if(vErrors !== null){if(_errs458){vErrors.length = _errs458;}else {vErrors = null;}}if(_valid29){const _errs465 = errors;const _errs466 = errors;let valid269 = false;const _errs467 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err436 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data.elementType !== undefined){let data244 = data.elementType;if(data244 && typeof data244 == "object" && !Array.isArray(data244)){if(data244.value === undefined){const err437 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data244.value !== undefined){if("bpmn:UserTask" !== data244.value){const err438 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}}}}var _valid30 = _errs467 === errors;valid269 = valid269 || _valid30;if(!valid269){const _errs470 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err439 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[13].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err440 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[13].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}}var _valid30 = _errs470 === errors;valid269 = valid269 || _valid30;}if(!valid269){const err441 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {errors = _errs466;if(vErrors !== null){if(_errs466){vErrors.length = _errs466;}else {vErrors = null;}}}var _valid29 = _errs465 === errors;valid264 = _valid29;}if(!valid264){const err442 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}const _errs473 = errors;let valid273 = true;const _errs474 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err443 = {};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}else {if(data.properties !== undefined){let data247 = data.properties;if(Array.isArray(data247)){const _errs476 = errors;const len44 = data247.length;for(let i44=0; i44<len44; i44++){let data248 = data247[i44];const _errs477 = errors;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if((data248.binding === undefined) && ("binding")){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {if(data248.binding !== undefined){let data249 = data248.binding;if(data249 && typeof data249 == "object" && !Array.isArray(data249)){if((data249.type === undefined) && ("type")){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}else {if(data249.type !== undefined){if("zeebe:executionListener" !== data249.type){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}}}}}}var valid275 = _errs477 === errors;if(valid275){break;}}if(!valid275){const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}else {errors = _errs476;if(vErrors !== null){if(_errs476){vErrors.length = _errs476;}else {vErrors = null;}}}}}}}var _valid31 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid31){const _errs480 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.entriesVisible === undefined){const err448 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/1/then/required",keyword:"required",params:{missingProperty: "entriesVisible"},message:"must have required property '"+"entriesVisible"+"'"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if(data.entriesVisible !== undefined){let data251 = data.entriesVisible;if(data251 && typeof data251 == "object" && !Array.isArray(data251)){if(data251.executionListeners === undefined){const err449 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/required",keyword:"required",params:{missingProperty: "executionListeners"},message:"must have required property '"+"executionListeners"+"'"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data251.executionListeners !== undefined){if(false !== data251.executionListeners){const err450 = {instancePath:instancePath+"/entriesVisible/executionListeners",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/properties/executionListeners/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}else {const err451 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}}var _valid31 = _errs480 === errors;valid273 = _valid31;}if(!valid273){const err452 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}const _errs485 = errors;let valid280 = true;const _errs486 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}else {if(data.properties !== undefined){let data253 = data.properties;if(Array.isArray(data253)){const _errs488 = errors;const len45 = data253.length;for(let i45=0; i45<len45; i45++){let data254 = data253[i45];const _errs489 = errors;if(data254 && typeof data254 == "object" && !Array.isArray(data254)){if((data254.binding === undefined) && ("binding")){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {if(data254.binding !== undefined){let data255 = data254.binding;if(data255 && typeof data255 == "object" && !Array.isArray(data255)){if((data255.type === undefined) && ("type")){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}else {if(data255.type !== undefined){if("zeebe:taskListener" !== data255.type){const err456 = {};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}}}}}var valid282 = _errs489 === errors;if(valid282){break;}}if(!valid282){const err457 = {};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}else {errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}}}}}}var _valid32 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid32){const _errs492 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.entriesVisible !== undefined){let data257 = data.entriesVisible;if(data257 && typeof data257 == "object" && !Array.isArray(data257)){if(data257.taskListeners !== undefined){if(false !== data257.taskListeners){const err458 = {instancePath:instancePath+"/entriesVisible/taskListeners",schemaPath:"#/allOf/1/allOf/13/allOf/2/then/properties/entriesVisible/properties/taskListeners/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}}}}var _valid32 = _errs492 === errors;valid280 = _valid32;}if(!valid280){const err459 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}const _errs497 = errors;let valid288 = true;const _errs498 = errors;const _errs499 = errors;let valid289 = false;const _errs500 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}else {if(data.elementType !== undefined){let data259 = data.elementType;if(data259 && typeof data259 == "object" && !Array.isArray(data259)){if((data259.value === undefined) && ("value")){const err461 = {};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}else {if(data259.value !== undefined){if("bpmn:AdHocSubProcess" !== data259.value){const err462 = {};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}}}}}var _valid34 = _errs500 === errors;valid289 = valid289 || _valid34;if(!valid289){const _errs503 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err463 = {};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[0].if.anyOf[1].properties.appliesTo.const)){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}}}}var _valid34 = _errs503 === errors;valid289 = valid289 || _valid34;}if(!valid289){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}else {errors = _errs499;if(vErrors !== null){if(_errs499){vErrors.length = _errs499;}else {vErrors = null;}}}var _valid33 = _errs498 === errors;errors = _errs497;if(vErrors !== null){if(_errs497){vErrors.length = _errs497;}else {vErrors = null;}}if(_valid33){const _errs505 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data262 = data.properties;if(Array.isArray(data262)){const len46 = data262.length;for(let i46=0; i46<len46; i46++){let data263 = data262[i46];const _errs508 = errors;let valid296 = true;const _errs509 = errors;if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if((data263.binding === undefined) && ("binding")){const err466 = {};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}else {if(data263.binding !== undefined){let data264 = data263.binding;if(data264 && typeof data264 == "object" && !Array.isArray(data264)){if(((data264.type === undefined) && ("type")) || ((data264.name === undefined) && ("name"))){const err467 = {};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}else {if(data264.type !== undefined){const _errs511 = errors;if("property" !== data264.type){const err468 = {};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}var valid298 = _errs511 === errors;}else {var valid298 = true;}if(valid298){if(data264.name !== undefined){const _errs512 = errors;if("completionCondition" !== data264.name){const err469 = {};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}var valid298 = _errs512 === errors;}else {var valid298 = true;}}}}}}}var _valid35 = _errs509 === errors;errors = _errs508;if(vErrors !== null){if(_errs508){vErrors.length = _errs508;}else {vErrors = null;}}if(_valid35){const _errs513 = errors;if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if(data263.feel === undefined){const err470 = {instancePath:instancePath+"/properties/" + i46,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(data263.feel !== undefined){if("required" !== data263.feel){const err471 = {instancePath:instancePath+"/properties/" + i46+"/feel",schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}}var _valid35 = _errs513 === errors;valid296 = _valid35;}if(!valid296){const err472 = {instancePath:instancePath+"/properties/" + i46,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}}}var _valid33 = _errs505 === errors;valid288 = _valid33;}if(!valid288){const err473 = {instancePath,schemaPath:"#/allOf/2/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}const _errs516 = errors;let valid300 = true;const _errs517 = errors;const _errs518 = errors;let valid301 = false;const _errs519 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err474 = {};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {if(data.elementType !== undefined){let data268 = data.elementType;if(data268 && typeof data268 == "object" && !Array.isArray(data268)){if((data268.value === undefined) && ("value")){const err475 = {};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}else {if(data268.value !== undefined){if("bpmn:SequenceFlow" !== data268.value){const err476 = {};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}}}}}}}var _valid37 = _errs519 === errors;valid301 = valid301 || _valid37;if(!valid301){const _errs522 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err477 = {};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[1].if.anyOf[1].properties.appliesTo.const)){const err478 = {};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}}}var _valid37 = _errs522 === errors;valid301 = valid301 || _valid37;}if(!valid301){const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}else {errors = _errs518;if(vErrors !== null){if(_errs518){vErrors.length = _errs518;}else {vErrors = null;}}}var _valid36 = _errs517 === errors;errors = _errs516;if(vErrors !== null){if(_errs516){vErrors.length = _errs516;}else {vErrors = null;}}if(_valid36){const _errs524 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data271 = data.properties;if(Array.isArray(data271)){const len47 = data271.length;for(let i47=0; i47<len47; i47++){let data272 = data271[i47];const _errs527 = errors;let valid308 = true;const _errs528 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if((data272.binding === undefined) && ("binding")){const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}else {if(data272.binding !== undefined){let data273 = data272.binding;if(data273 && typeof data273 == "object" && !Array.isArray(data273)){if(((data273.type === undefined) && ("type")) || ((data273.name === undefined) && ("name"))){const err481 = {};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}else {if(data273.type !== undefined){const _errs530 = errors;if("property" !== data273.type){const err482 = {};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}var valid310 = _errs530 === errors;}else {var valid310 = true;}if(valid310){if(data273.name !== undefined){const _errs531 = errors;if("conditionExpression" !== data273.name){const err483 = {};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var valid310 = _errs531 === errors;}else {var valid310 = true;}}}}}}}var _valid38 = _errs528 === errors;errors = _errs527;if(vErrors !== null){if(_errs527){vErrors.length = _errs527;}else {vErrors = null;}}if(_valid38){const _errs532 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.feel === undefined){const err484 = {instancePath:instancePath+"/properties/" + i47,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if(data272.feel !== undefined){if("required" !== data272.feel){const err485 = {instancePath:instancePath+"/properties/" + i47+"/feel",schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}}var _valid38 = _errs532 === errors;valid308 = _valid38;}if(!valid308){const err486 = {instancePath:instancePath+"/properties/" + i47,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}}}}}var _valid36 = _errs524 === errors;valid300 = _valid36;}if(!valid300){const err487 = {instancePath,schemaPath:"#/allOf/2/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}const _errs535 = errors;let valid312 = true;const _errs536 = errors;const _errs537 = errors;let valid313 = false;const _errs538 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err488 = {};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}else {if(data.elementType !== undefined){let data277 = data.elementType;if(data277 && typeof data277 == "object" && !Array.isArray(data277)){if((data277.value === undefined) && ("value")){const err489 = {};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}else {if(data277.value !== undefined){if("bpmn:ComplexGateway" !== data277.value){const err490 = {};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}}}}}}var _valid40 = _errs538 === errors;valid313 = valid313 || _valid40;if(!valid313){const _errs541 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err491 = {};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[2].if.anyOf[1].properties.appliesTo.const)){const err492 = {};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}}}var _valid40 = _errs541 === errors;valid313 = valid313 || _valid40;}if(!valid313){const err493 = {};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs537;if(vErrors !== null){if(_errs537){vErrors.length = _errs537;}else {vErrors = null;}}}var _valid39 = _errs536 === errors;errors = _errs535;if(vErrors !== null){if(_errs535){vErrors.length = _errs535;}else {vErrors = null;}}if(_valid39){const _errs543 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data280 = data.properties;if(Array.isArray(data280)){const len48 = data280.length;for(let i48=0; i48<len48; i48++){let data281 = data280[i48];const _errs546 = errors;let valid320 = true;const _errs547 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if((data281.binding === undefined) && ("binding")){const err494 = {};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}else {if(data281.binding !== undefined){let data282 = data281.binding;if(data282 && typeof data282 == "object" && !Array.isArray(data282)){if(((data282.type === undefined) && ("type")) || ((data282.name === undefined) && ("name"))){const err495 = {};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}else {if(data282.type !== undefined){const _errs549 = errors;if("property" !== data282.type){const err496 = {};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}var valid322 = _errs549 === errors;}else {var valid322 = true;}if(valid322){if(data282.name !== undefined){const _errs550 = errors;if("activationCondition" !== data282.name){const err497 = {};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}var valid322 = _errs550 === errors;}else {var valid322 = true;}}}}}}}var _valid41 = _errs547 === errors;errors = _errs546;if(vErrors !== null){if(_errs546){vErrors.length = _errs546;}else {vErrors = null;}}if(_valid41){const _errs551 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if(data281.feel === undefined){const err498 = {instancePath:instancePath+"/properties/" + i48,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if(data281.feel !== undefined){if("required" !== data281.feel){const err499 = {instancePath:instancePath+"/properties/" + i48+"/feel",schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}}var _valid41 = _errs551 === errors;valid320 = _valid41;}if(!valid320){const err500 = {instancePath:instancePath+"/properties/" + i48,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}}}}var _valid39 = _errs543 === errors;valid312 = _valid39;}if(!valid312){const err501 = {instancePath,schemaPath:"#/allOf/2/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}const _errs554 = errors;let valid324 = true;const _errs555 = errors;const _errs556 = errors;let valid325 = false;const _errs557 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err502 = {};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}else {if(data.elementType !== undefined){let data286 = data.elementType;if(data286 && typeof data286 == "object" && !Array.isArray(data286)){if((data286.value === undefined) && ("value")){const err503 = {};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}else {if(data286.value !== undefined){if("bpmn:AdHocSubProcess" !== data286.value){const err504 = {};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}}}}}}var _valid43 = _errs557 === errors;valid325 = valid325 || _valid43;if(!valid325){const _errs560 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err505 = {};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[3].if.anyOf[1].properties.appliesTo.const)){const err506 = {};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}}}var _valid43 = _errs560 === errors;valid325 = valid325 || _valid43;}if(!valid325){const err507 = {};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}else {errors = _errs556;if(vErrors !== null){if(_errs556){vErrors.length = _errs556;}else {vErrors = null;}}}var _valid42 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}if(_valid42){const _errs562 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data289 = data.properties;if(Array.isArray(data289)){const len49 = data289.length;for(let i49=0; i49<len49; i49++){let data290 = data289[i49];const _errs565 = errors;let valid332 = true;const _errs566 = errors;if(data290 && typeof data290 == "object" && !Array.isArray(data290)){if(((data290.binding === undefined) && ("binding")) || ((data290.type === undefined) && ("type"))){const err508 = {};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}else {if(data290.type !== undefined){let data291 = data290.type;const _errs567 = errors;if(!((data291 === "String") || (data291 === "Text"))){const err509 = {};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var valid333 = _errs567 === errors;}else {var valid333 = true;}if(valid333){if(data290.binding !== undefined){let data292 = data290.binding;const _errs568 = errors;if(data292 && typeof data292 == "object" && !Array.isArray(data292)){if(((data292.type === undefined) && ("type")) || ((data292.property === undefined) && ("property"))){const err510 = {};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}else {if(data292.type !== undefined){const _errs569 = errors;if("zeebe:adHoc" !== data292.type){const err511 = {};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var valid334 = _errs569 === errors;}else {var valid334 = true;}if(valid334){if(data292.property !== undefined){const _errs570 = errors;if("outputElement" !== data292.property){const err512 = {};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}var valid334 = _errs570 === errors;}else {var valid334 = true;}}}}var valid333 = _errs568 === errors;}else {var valid333 = true;}}}}var _valid44 = _errs566 === errors;errors = _errs565;if(vErrors !== null){if(_errs565){vErrors.length = _errs565;}else {vErrors = null;}}if(_valid44){const _errs571 = errors;if(data290 && typeof data290 == "object" && !Array.isArray(data290)){if(data290.feel === undefined){const err513 = {instancePath:instancePath+"/properties/" + i49,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}if(data290.feel !== undefined){if("required" !== data290.feel){const err514 = {instancePath:instancePath+"/properties/" + i49+"/feel",schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}}}var _valid44 = _errs571 === errors;valid332 = _valid44;}if(!valid332){const err515 = {instancePath:instancePath+"/properties/" + i49,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}}}}}var _valid42 = _errs562 === errors;valid324 = _valid42;}if(!valid324){const err516 = {instancePath,schemaPath:"#/allOf/2/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data297 = data.engines;if(data297 && typeof data297 == "object" && !Array.isArray(data297)){if(data297.camunda !== undefined){if(typeof data297.camunda !== "string"){const err517 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}if(data297.camundaDesktopModeler !== undefined){if(typeof data297.camundaDesktopModeler !== "string"){const err518 = {instancePath:instancePath+"/engines/camundaDesktopModeler",schemaPath:"#/properties/engines/properties/camundaDesktopModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data297.camundaWebModeler !== undefined){if(typeof data297.camundaWebModeler !== "string"){const err519 = {instancePath:instancePath+"/engines/camundaWebModeler",schemaPath:"#/properties/engines/properties/camundaWebModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}}else {const err520 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}}if(data.category !== undefined){let data301 = data.category;if(data301 && typeof data301 == "object" && !Array.isArray(data301)){if(data301.id === undefined){const err521 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if(data301.name === undefined){const err522 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}if(data301.id !== undefined){if(typeof data301.id !== "string"){const err523 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}if(data301.name !== undefined){if(typeof data301.name !== "string"){const err524 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data.icon !== undefined){let data304 = data.icon;if(data304 && typeof data304 == "object" && !Array.isArray(data304)){if(data304.contents === undefined){const err526 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}if(data304.contents !== undefined){let data305 = data304.contents;if(typeof data305 === "string"){if(!pattern9.test(data305)){const err527 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}else {const err528 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if(errors > 0){const emErrors7 = {"pattern":[]};const templates7 = {};for(const err529 of vErrors){if((((((err529.keyword !== "errorMessage") && (!err529.emUsed)) && (err529.instancePath === instancePath+"/icon/contents")) && (err529.keyword in emErrors7)) && (err529.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err529.schemaPath.slice(37)))){emErrors7[err529.keyword].push(err529);err529.emUsed = true;}}for(const key7 in emErrors7){if(emErrors7[key7].length){const err530 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors7[key7]},message:key7 in templates7 ? templates7[key7]() : schema17.properties.icon.properties.contents.errorMessage[key7]};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}const emErrs43 = [];for(const err531 of vErrors){if(!err531.emUsed){emErrs43.push(err531);}}vErrors = emErrs43;errors = emErrs43.length;}}}else {const err532 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}if(errors > 0){const emErrors8 = {"required":{"contents":[]}};const templates8 = {required:{}};let emPropParams4;let emParamsErrors4;for(const err533 of vErrors){if((((((err533.keyword !== "errorMessage") && (!err533.emUsed)) && (err533.instancePath === instancePath+"/icon")) && (err533.keyword in emErrors8)) && (err533.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err533.schemaPath.slice(17)))){emPropParams4 = obj0[err533.keyword];emParamsErrors4 = emErrors8[err533.keyword][err533.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err533);err533.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp4 in emErrors8[key8]){emParamsErrors4 = emErrors8[key8][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates8[key8] && templates8[key8][keyProp4];const err534 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17.properties.icon.errorMessage[key8][keyProp4]};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}}}const emErrs44 = [];for(const err535 of vErrors){if(!err535.emUsed){emErrs44.push(err535);}}vErrors = emErrs44;errors = emErrs44.length;}}if(data.elementType !== undefined){let data306 = data.elementType;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if(data306.eventDefinition !== undefined){let data307 = data306.eventDefinition;if(!((((data307 === "bpmn:MessageEventDefinition") || (data307 === "bpmn:SignalEventDefinition")) || (data307 === "bpmn:TimerEventDefinition")) || (data307 === "bpmn:ConditionalEventDefinition"))){const err536 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}}const _errs597 = errors;let valid343 = true;const _errs598 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if((data306.eventDefinition === undefined) && ("eventDefinition")){const err537 = {};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}var _valid45 = _errs598 === errors;errors = _errs597;if(vErrors !== null){if(_errs597){vErrors.length = _errs597;}else {vErrors = null;}}if(_valid45){const _errs599 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if(data306.value === undefined){const err538 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if(data306.value !== undefined){let data308 = data306.value;if(!(((((data308 === "bpmn:StartEvent") || (data308 === "bpmn:IntermediateCatchEvent")) || (data308 === "bpmn:IntermediateThrowEvent")) || (data308 === "bpmn:BoundaryEvent")) || (data308 === "bpmn:EndEvent"))){const err539 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}var _valid45 = _errs599 === errors;valid343 = _valid45;}if(!valid343){const err540 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}const _errs602 = errors;let valid345 = true;const _errs603 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if((data306.eventDefinition === undefined) && ("eventDefinition")){const err541 = {};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}else {if(data306.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data306.eventDefinition){const err542 = {};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}}}var _valid46 = _errs603 === errors;errors = _errs602;if(vErrors !== null){if(_errs602){vErrors.length = _errs602;}else {vErrors = null;}}if(_valid46){const _errs605 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if(data306.value === undefined){const err543 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}if(data306.value !== undefined){let data310 = data306.value;if(!(((data310 === "bpmn:StartEvent") || (data310 === "bpmn:IntermediateCatchEvent")) || (data310 === "bpmn:BoundaryEvent"))){const err544 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[2].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}}}var _valid46 = _errs605 === errors;valid345 = _valid46;}if(!valid345){const err545 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}const _errs608 = errors;let valid348 = true;const _errs609 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if((data306.eventDefinition === undefined) && ("eventDefinition")){const err546 = {};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}else {if(data306.eventDefinition !== undefined){if("bpmn:ConditionalEventDefinition" !== data306.eventDefinition){const err547 = {};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}}}}var _valid47 = _errs609 === errors;errors = _errs608;if(vErrors !== null){if(_errs608){vErrors.length = _errs608;}else {vErrors = null;}}if(_valid47){const _errs611 = errors;if(data306 && typeof data306 == "object" && !Array.isArray(data306)){if(data306.value === undefined){const err548 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if(data306.value !== undefined){let data312 = data306.value;if(!(((data312 === "bpmn:StartEvent") || (data312 === "bpmn:IntermediateCatchEvent")) || (data312 === "bpmn:BoundaryEvent"))){const err549 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[3].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}}}var _valid47 = _errs611 === errors;valid348 = _valid47;}if(!valid348){const err550 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}}if(data.groups !== undefined){let data313 = data.groups;if(Array.isArray(data313)){const len50 = data313.length;for(let i50=0; i50<len50; i50++){let data314 = data313[i50];if(data314 && typeof data314 == "object" && !Array.isArray(data314)){if(data314.tooltip !== undefined){if(typeof data314.tooltip !== "string"){const err551 = {instancePath:instancePath+"/groups/" + i50+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}}if(data314.openByDefault !== undefined){if(typeof data314.openByDefault !== "boolean"){const err552 = {instancePath:instancePath+"/groups/" + i50+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}}}}}}if(data.configurationTemplates !== undefined){let data317 = data.configurationTemplates;if(Array.isArray(data317)){const len51 = data317.length;for(let i51=0; i51<len51; i51++){let data318 = data317[i51];if(data318 && typeof data318 == "object" && !Array.isArray(data318)){if(data318.name === undefined){const err553 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}if(data318.id === undefined){const err554 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if(data318.kind === undefined){const err555 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}if(data318.version === undefined){const err556 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if(data318.properties === undefined){const err557 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}if(data318.$schema !== undefined){if(typeof data318.$schema !== "string"){const err558 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/$schema",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}if(data318.name !== undefined){if(typeof data318.name !== "string"){const err559 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/name",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}if(data318.id !== undefined){if(typeof data318.id !== "string"){const err560 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/id",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data318.kind !== undefined){let data322 = data318.kind;if(typeof data322 === "string"){if(func13(data322) < 1){const err561 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/kind",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/kind/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}}else {const err562 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/kind",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}}if(data318.version !== undefined){let data323 = data318.version;if(!((typeof data323 == "number") && (!(data323 % 1) && !isNaN(data323)))){const err563 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/version",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}}if(data318.description !== undefined){if(typeof data318.description !== "string"){const err564 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/description",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}if(data318.documentationRef !== undefined){let data325 = data318.documentationRef;if(typeof data325 === "string"){if(!pattern0.test(data325)){const err565 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/documentationRef",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}else {const err566 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/documentationRef",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}}if(data318.keywords !== undefined){let data326 = data318.keywords;if(Array.isArray(data326)){const len52 = data326.length;for(let i52=0; i52<len52; i52++){if(typeof data326[i52] !== "string"){const err567 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/keywords/" + i52,schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}}else {const err568 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/keywords",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}}}if(data318 && typeof data318 == "object" && !Array.isArray(data318)){if(data318.properties !== undefined){let data328 = data318.properties;if(Array.isArray(data328)){const len53 = data328.length;for(let i53=0; i53<len53; i53++){let data329 = data328[i53];const _errs649 = errors;let valid367 = true;const _errs650 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if((data329.type === undefined) && ("type")){const err569 = {};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}else {if(data329.type !== undefined){if("Dropdown" !== data329.type){const err570 = {};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}}}}var _valid48 = _errs650 === errors;errors = _errs649;if(vErrors !== null){if(_errs649){vErrors.length = _errs649;}else {vErrors = null;}}if(_valid48){const _errs652 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if(data329.choices === undefined){const err571 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}}if(errors > 0){const emErrs45 = [];for(const err572 of vErrors){if(((((err572.keyword !== "errorMessage") && (!err572.emUsed)) && ((err572.instancePath === instancePath+"/configurationTemplates/" + i51+"/properties/" + i53) || ((err572.instancePath.indexOf(instancePath+"/configurationTemplates/" + i51+"/properties/" + i53) === 0) && (err572.instancePath[instancePath+"/configurationTemplates/" + i51+"/properties/" + i53.length] === "/")))) && (err572.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err572.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs45.push(err572);err572.emUsed = true;}}if(emErrs45.length){const err573 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}const emErrs46 = [];for(const err574 of vErrors){if(!err574.emUsed){emErrs46.push(err574);}}vErrors = emErrs46;errors = emErrs46.length;}var _valid48 = _errs652 === errors;valid367 = _valid48;}if(!valid367){const err575 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}const _errs654 = errors;let valid369 = true;const _errs655 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if((data329.type === undefined) && ("type")){const err576 = {};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}else {if(data329.type !== undefined){const _errs657 = errors;const _errs658 = errors;if("Number" !== data329.type){const err577 = {};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}var valid371 = _errs658 === errors;if(valid371){const err578 = {};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}else {errors = _errs657;if(vErrors !== null){if(_errs657){vErrors.length = _errs657;}else {vErrors = null;}}}}}}var _valid49 = _errs655 === errors;errors = _errs654;if(vErrors !== null){if(_errs654){vErrors.length = _errs654;}else {vErrors = null;}}if(_valid49){const _errs659 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if(data329.value !== undefined){let data332 = data329.value;if((typeof data332 !== "string") && (typeof data332 !== "boolean")){const err579 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/value",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/then/properties/value/type",keyword:"type",params:{type: schema29.items.allOf[1].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}}}var _valid49 = _errs659 === errors;valid369 = _valid49;}if(!valid369){const err580 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}const _errs663 = errors;let valid373 = true;const _errs664 = errors;const _errs665 = errors;let valid374 = false;const _errs666 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if((data329.type === undefined) && ("type")){const err581 = {};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}else {if(data329.type !== undefined){let data333 = data329.type;if(!((data333 === "String") || (data333 === "Text"))){const err582 = {};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}}}}var _valid51 = _errs666 === errors;if(_valid51){valid374 = true;}const _errs668 = errors;const _errs669 = errors;const _errs670 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if((data329.type === undefined) && ("type")){const err583 = {};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}}var valid376 = _errs670 === errors;if(valid376){const err584 = {};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}else {errors = _errs669;if(vErrors !== null){if(_errs669){vErrors.length = _errs669;}else {vErrors = null;}}}var _valid51 = _errs668 === errors;if(_valid51 && valid374){valid374 = false;}else {if(_valid51){valid374 = true;}}if(!valid374){const err585 = {};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}else {errors = _errs665;if(vErrors !== null){if(_errs665){vErrors.length = _errs665;}else {vErrors = null;}}}var _valid50 = _errs664 === errors;errors = _errs663;if(vErrors !== null){if(_errs663){vErrors.length = _errs663;}else {vErrors = null;}}let ifClause0;if(_valid50){const _errs671 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if(data329.placeholder !== undefined){if(typeof data329.placeholder !== "string"){const err586 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/placeholder",schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}}}var _valid50 = _errs671 === errors;valid373 = _valid50;ifClause0 = "then";}else {const _errs674 = errors;const _errs675 = errors;const _errs676 = errors;if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if((data329.placeholder === undefined) && ("placeholder")){const err587 = {};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}}var valid378 = _errs676 === errors;if(valid378){const err588 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}else {errors = _errs675;if(vErrors !== null){if(_errs675){vErrors.length = _errs675;}else {vErrors = null;}}}var _valid50 = _errs674 === errors;valid373 = _valid50;ifClause0 = "else";}if(!valid373){const err589 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if(data329 && typeof data329 == "object" && !Array.isArray(data329)){if(data329.value !== undefined){let data335 = data329.value;if(((typeof data335 !== "string") && (!(typeof data335 == "number"))) && (typeof data335 !== "boolean")){const err590 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema29.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}}if(data329.description !== undefined){if(typeof data329.description !== "string"){const err591 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}}if(data329.label !== undefined){if(typeof data329.label !== "string"){const err592 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}if(data329.type !== undefined){if(typeof data329.type !== "string"){const err593 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}if(data329.editable !== undefined){if(typeof data329.editable !== "boolean"){const err594 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}if(data329.choices !== undefined){let data340 = data329.choices;if(Array.isArray(data340)){const len54 = data340.length;for(let i54=0; i54<len54; i54++){let data341 = data340[i54];if(data341 && typeof data341 == "object" && !Array.isArray(data341)){if(data341.value === undefined){const err595 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}if(data341.name === undefined){const err596 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}if(data341.name !== undefined){if(typeof data341.name !== "string"){const err597 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}}if(data341.value !== undefined){if(typeof data341.value !== "string"){const err598 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}}}else {const err599 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(errors > 0){const emErrors9 = {"required":[]};const templates9 = {};for(const err600 of vErrors){if((((((err600.keyword !== "errorMessage") && (!err600.emUsed)) && (err600.instancePath === instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54)) && (err600.keyword in emErrors9)) && (err600.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err600.schemaPath.slice(63)))){emErrors9[err600.keyword].push(err600);err600.emUsed = true;}}for(const key9 in emErrors9){if(emErrors9[key9].length){const err601 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices/" + i54,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors9[key9]},message:key9 in templates9 ? templates9[key9]() : schema29.items.properties.choices.items.errorMessage[key9]};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}}const emErrs47 = [];for(const err602 of vErrors){if(!err602.emUsed){emErrs47.push(err602);}}vErrors = emErrs47;errors = emErrs47.length;}}}else {const err603 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}}if(data329.constraints !== undefined){let data344 = data329.constraints;if(data344 && typeof data344 == "object" && !Array.isArray(data344)){if(data344.notEmpty !== undefined){if(typeof data344.notEmpty !== "boolean"){const err604 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}}if(data344.minLength !== undefined){if(!(typeof data344.minLength == "number")){const err605 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}}if(data344.maxLength !== undefined){if(!(typeof data344.maxLength == "number")){const err606 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}}if(data344.pattern !== undefined){let data348 = data344.pattern;const _errs704 = errors;let valid385 = false;let passing2 = null;const _errs705 = errors;if(data348 && typeof data348 == "object" && !Array.isArray(data348)){if(data348.value !== undefined){if(typeof data348.value !== "string"){const err607 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}if(data348.message !== undefined){if(typeof data348.message !== "string"){const err608 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}}}else {const err609 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}var _valid52 = _errs705 === errors;if(_valid52){valid385 = true;passing2 = 0;}const _errs711 = errors;if(typeof data348 !== "string"){const err610 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}var _valid52 = _errs711 === errors;if(_valid52 && valid385){valid385 = false;passing2 = [passing2, 1];}else {if(_valid52){valid385 = true;passing2 = 1;}}if(!valid385){const err611 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}else {errors = _errs704;if(vErrors !== null){if(_errs704){vErrors.length = _errs704;}else {vErrors = null;}}}}}else {const err612 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}if(data329.group !== undefined){if(typeof data329.group !== "string"){const err613 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}}}else {const err614 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i53,schemaPath:"#/definitions/properties/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}}}else {const err615 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}if(Array.isArray(data328)){const len55 = data328.length;for(let i55=0; i55<len55; i55++){let data352 = data328[i55];if(data352 && typeof data352 == "object" && !Array.isArray(data352)){if(data352.type !== undefined){let data353 = data352.type;if(!((((((data353 === "String") || (data353 === "Text")) || (data353 === "Hidden")) || (data353 === "Dropdown")) || (data353 === "Boolean")) || (data353 === "Number"))){const err616 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.properties.configurationTemplates.items.properties.properties.allOf[1].items.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}const _errs724 = errors;const _errs725 = errors;if(data352 && typeof data352 == "object" && !Array.isArray(data352)){if((data352.feel === undefined) && ("feel")){const err617 = {};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}}var valid391 = _errs725 === errors;if(valid391){const err618 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}else {errors = _errs724;if(vErrors !== null){if(_errs724){vErrors.length = _errs724;}else {vErrors = null;}}}const _errs728 = errors;const _errs729 = errors;if(data352 && typeof data352 == "object" && !Array.isArray(data352)){if((data352.optional === undefined) && ("optional")){const err619 = {};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}}var valid392 = _errs729 === errors;if(valid392){const err620 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}else {errors = _errs728;if(vErrors !== null){if(_errs728){vErrors.length = _errs728;}else {vErrors = null;}}}if(data352 && typeof data352 == "object" && !Array.isArray(data352)){if(data352.binding === undefined){const err621 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if(data352.binding !== undefined){let data354 = data352.binding;if(data354 && typeof data354 == "object" && !Array.isArray(data354)){if(data354.type === undefined){const err622 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}if(data354.name === undefined){const err623 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}if(data354.type !== undefined){let data355 = data354.type;if(typeof data355 !== "string"){const err624 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}if("property" !== data355){const err625 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}if(data354.name !== undefined){if(typeof data354.name !== "string"){const err626 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding/name",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}}}else {const err627 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}}if(data352.secret !== undefined){if(typeof data352.secret !== "boolean"){const err628 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/secret",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/secret/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}}if(data352.tooltip !== undefined){if(typeof data352.tooltip !== "string"){const err629 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55+"/tooltip",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}}else {const err630 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i55,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}}else {const err631 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(Array.isArray(data328)){const len56 = data328.length;for(let i56=0; i56<len56; i56++){let data359 = data328[i56];const _errs745 = errors;let valid399 = true;const _errs746 = errors;if(data359 && typeof data359 == "object" && !Array.isArray(data359)){if(((data359.id === undefined) && ("id")) || ((data359.condition === undefined) && ("condition"))){const err632 = {};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}else {if(data359.condition !== undefined){let data360 = data359.condition;if(data360 && typeof data360 == "object" && !Array.isArray(data360)){if((data360.property === undefined) && ("property")){const err633 = {};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}else {if(data360.property !== undefined){if(!func0(data360.property, schema30.properties.property.const)){const err634 = {};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}}}}}}var _valid53 = _errs746 === errors;errors = _errs745;if(vErrors !== null){if(_errs745){vErrors.length = _errs745;}else {vErrors = null;}}if(_valid53){const _errs750 = errors;const _errs751 = errors;const _errs752 = errors;if(data359 && typeof data359 == "object" && !Array.isArray(data359)){if((data359.condition === undefined) && ("condition")){const err635 = {};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}}var valid403 = _errs752 === errors;if(valid403){const err636 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}else {errors = _errs751;if(vErrors !== null){if(_errs751){vErrors.length = _errs751;}else {vErrors = null;}}}var _valid53 = _errs750 === errors;valid399 = _valid53;}if(!valid399){const err637 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}if(data359 && typeof data359 == "object" && !Array.isArray(data359)){if(data359.id !== undefined){if(typeof data359.id !== "string"){const err638 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/id",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}}if(data359.condition !== undefined){let data363 = data359.condition;if(!(data363 && typeof data363 == "object" && !Array.isArray(data363))){const err639 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}const _errs757 = errors;let valid405 = false;let passing3 = null;const _errs758 = errors;const _errs761 = errors;let valid407 = false;let passing4 = null;const _errs762 = errors;if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.equals === undefined){const err640 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}if(data363.equals !== undefined){let data364 = data363.equals;if(((typeof data364 !== "string") && (!(typeof data364 == "number"))) && (typeof data364 !== "boolean")){const err641 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}}}var _valid55 = _errs762 === errors;if(_valid55){valid407 = true;passing4 = 0;}const _errs765 = errors;if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.oneOf === undefined){const err642 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}if(data363.oneOf !== undefined){let data365 = data363.oneOf;if(Array.isArray(data365)){const len57 = data365.length;for(let i57=0; i57<len57; i57++){let data366 = data365[i57];if((typeof data366 !== "string") && (!(typeof data366 == "number"))){const err643 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/oneOf/" + i57,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}}else {const err644 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}}var _valid55 = _errs765 === errors;if(_valid55 && valid407){valid407 = false;passing4 = [passing4, 1];}else {if(_valid55){valid407 = true;passing4 = 1;}const _errs770 = errors;if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.isActive === undefined){const err645 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}if(data363.isActive !== undefined){if(typeof data363.isActive !== "boolean"){const err646 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}}}var _valid55 = _errs770 === errors;if(_valid55 && valid407){valid407 = false;passing4 = [passing4, 2];}else {if(_valid55){valid407 = true;passing4 = 2;}const _errs773 = errors;if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.isEmpty === undefined){const err647 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}if(data363.isEmpty !== undefined){if(typeof data363.isEmpty !== "boolean"){const err648 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}}}var _valid55 = _errs773 === errors;if(_valid55 && valid407){valid407 = false;passing4 = [passing4, 3];}else {if(_valid55){valid407 = true;passing4 = 3;}}}}if(!valid407){const err649 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}else {errors = _errs761;if(vErrors !== null){if(_errs761){vErrors.length = _errs761;}else {vErrors = null;}}}if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.property === undefined){const err650 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}if(data363.type !== undefined){if("simple" !== data363.type){const err651 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}}if(data363.property !== undefined){if(typeof data363.property !== "string"){const err652 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}}}else {const err653 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}var _valid54 = _errs758 === errors;if(_valid54){valid405 = true;passing3 = 0;}const _errs779 = errors;if(data363 && typeof data363 == "object" && !Array.isArray(data363)){if(data363.allMatch === undefined){const err654 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}if(data363.allMatch !== undefined){let data371 = data363.allMatch;if(Array.isArray(data371)){if(data371.length < 1){const err655 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}const len58 = data371.length;for(let i58=0; i58<len58; i58++){let data372 = data371[i58];const _errs785 = errors;let valid419 = false;let passing5 = null;const _errs786 = errors;if(data372 && typeof data372 == "object" && !Array.isArray(data372)){if(data372.equals === undefined){const err656 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}if(data372.equals !== undefined){let data373 = data372.equals;if(((typeof data373 !== "string") && (!(typeof data373 == "number"))) && (typeof data373 !== "boolean")){const err657 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}}}var _valid56 = _errs786 === errors;if(_valid56){valid419 = true;passing5 = 0;}const _errs789 = errors;if(data372 && typeof data372 == "object" && !Array.isArray(data372)){if(data372.oneOf === undefined){const err658 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}if(data372.oneOf !== undefined){let data374 = data372.oneOf;if(Array.isArray(data374)){const len59 = data374.length;for(let i59=0; i59<len59; i59++){let data375 = data374[i59];if((typeof data375 !== "string") && (!(typeof data375 == "number"))){const err659 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/oneOf/" + i59,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}}}else {const err660 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}}}var _valid56 = _errs789 === errors;if(_valid56 && valid419){valid419 = false;passing5 = [passing5, 1];}else {if(_valid56){valid419 = true;passing5 = 1;}const _errs794 = errors;if(data372 && typeof data372 == "object" && !Array.isArray(data372)){if(data372.isActive === undefined){const err661 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}if(data372.isActive !== undefined){if(typeof data372.isActive !== "boolean"){const err662 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}}}var _valid56 = _errs794 === errors;if(_valid56 && valid419){valid419 = false;passing5 = [passing5, 2];}else {if(_valid56){valid419 = true;passing5 = 2;}const _errs797 = errors;if(data372 && typeof data372 == "object" && !Array.isArray(data372)){if(data372.isEmpty === undefined){const err663 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}if(data372.isEmpty !== undefined){if(typeof data372.isEmpty !== "boolean"){const err664 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}}}var _valid56 = _errs797 === errors;if(_valid56 && valid419){valid419 = false;passing5 = [passing5, 3];}else {if(_valid56){valid419 = true;passing5 = 3;}}}}if(!valid419){const err665 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}errors++;}else {errors = _errs785;if(vErrors !== null){if(_errs785){vErrors.length = _errs785;}else {vErrors = null;}}}if(data372 && typeof data372 == "object" && !Array.isArray(data372)){if(data372.property === undefined){const err666 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err666];}else {vErrors.push(err666);}errors++;}if(data372.type !== undefined){if("simple" !== data372.type){const err667 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err667];}else {vErrors.push(err667);}errors++;}}if(data372.property !== undefined){if(typeof data372.property !== "string"){const err668 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err668];}else {vErrors.push(err668);}errors++;}}}else {const err669 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch/" + i58,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err669];}else {vErrors.push(err669);}errors++;}}}else {const err670 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition/allMatch",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err670];}else {vErrors.push(err670);}errors++;}}}var _valid54 = _errs779 === errors;if(_valid54 && valid405){valid405 = false;passing3 = [passing3, 1];}else {if(_valid54){valid405 = true;passing3 = 1;}}if(!valid405){const err671 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err671];}else {vErrors.push(err671);}errors++;}else {errors = _errs757;if(vErrors !== null){if(_errs757){vErrors.length = _errs757;}else {vErrors = null;}}}}}if(data359 && typeof data359 == "object" && !Array.isArray(data359)){if(data359.choices !== undefined){let data380 = data359.choices;if(Array.isArray(data380)){const len60 = data380.length;for(let i60=0; i60<len60; i60++){let data381 = data380[i60];if(data381 && typeof data381 == "object" && !Array.isArray(data381)){if(data381.condition !== undefined){if(!(validate20(data381.condition, {instancePath:instancePath+"/configurationTemplates/" + i51+"/properties/" + i56+"/choices/" + i60+"/condition",parentData:data381,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}}}}}}}}}}if(data318.groups !== undefined){let data383 = data318.groups;if(Array.isArray(data383)){const len61 = data383.length;for(let i61=0; i61<len61; i61++){let data384 = data383[i61];if(data384 && typeof data384 == "object" && !Array.isArray(data384)){if(data384.id === undefined){const err672 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err672];}else {vErrors.push(err672);}errors++;}if(data384.label === undefined){const err673 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err673];}else {vErrors.push(err673);}errors++;}if(data384.id !== undefined){if(typeof data384.id !== "string"){const err674 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61+"/id",schemaPath:"#/definitions/template/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err674];}else {vErrors.push(err674);}errors++;}}if(data384.label !== undefined){if(typeof data384.label !== "string"){const err675 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61+"/label",schemaPath:"#/definitions/template/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err675];}else {vErrors.push(err675);}errors++;}}}else {const err676 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err676];}else {vErrors.push(err676);}errors++;}if(errors > 0){const emErrors10 = {"required":{"id":[],"label":[]}};const templates10 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i61) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i61) + "\""}}};let emPropParams5;let emParamsErrors5;for(const err677 of vErrors){if((((((err677.keyword !== "errorMessage") && (!err677.emUsed)) && (err677.instancePath === instancePath+"/configurationTemplates/" + i51+"/groups/" + i61)) && (err677.keyword in emErrors10)) && (err677.schemaPath.indexOf("#/definitions/template/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err677.schemaPath.slice(54)))){emPropParams5 = obj0[err677.keyword];emParamsErrors5 = emErrors10[err677.keyword][err677.params[emPropParams5]];if(emParamsErrors5){emParamsErrors5.push(err677);err677.emUsed = true;}}}for(const key10 in emErrors10){for(const keyProp5 in emErrors10[key10]){emParamsErrors5 = emErrors10[key10][keyProp5];if(emParamsErrors5.length){const tmpl5 = templates10[key10] && templates10[key10][keyProp5];const err678 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups/" + i61,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors5},message:tmpl5 ? tmpl5() : schema36.items.errorMessage[key10][keyProp5]};if(vErrors === null){vErrors = [err678];}else {vErrors.push(err678);}errors++;}}}const emErrs48 = [];for(const err679 of vErrors){if(!err679.emUsed){emErrs48.push(err679);}}vErrors = emErrs48;errors = emErrs48.length;}}}else {const err680 = {instancePath:instancePath+"/configurationTemplates/" + i51+"/groups",schemaPath:"#/definitions/template/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err680];}else {vErrors.push(err680);}errors++;}}}else {const err681 = {instancePath:instancePath+"/configurationTemplates/" + i51,schemaPath:"#/properties/configurationTemplates/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err681];}else {vErrors.push(err681);}errors++;}}}else {const err682 = {instancePath:instancePath+"/configurationTemplates",schemaPath:"#/properties/configurationTemplates/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err682];}else {vErrors.push(err682);}errors++;}}if(data.steps !== undefined){let data387 = data.steps;if(Array.isArray(data387)){const len62 = data387.length;for(let i62=0; i62<len62; i62++){if(!(validate22(data387[i62], {instancePath:instancePath+"/steps/" + i62,parentData:data387,parentDataProperty:i62,rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}else {const err683 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err683];}else {vErrors.push(err683);}errors++;}}if(data.presets !== undefined){let data389 = data.presets;if(Array.isArray(data389)){const len63 = data389.length;for(let i63=0; i63<len63; i63++){let data390 = data389[i63];if(data390 && typeof data390 == "object" && !Array.isArray(data390)){if(data390.id === undefined){const err684 = {instancePath:instancePath+"/presets/" + i63,schemaPath:"#/properties/presets/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err684];}else {vErrors.push(err684);}errors++;}if(data390.properties === undefined){const err685 = {instancePath:instancePath+"/presets/" + i63,schemaPath:"#/properties/presets/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err685];}else {vErrors.push(err685);}errors++;}if(data390.id !== undefined){if(typeof data390.id !== "string"){const err686 = {instancePath:instancePath+"/presets/" + i63+"/id",schemaPath:"#/properties/presets/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err686];}else {vErrors.push(err686);}errors++;}}if(data390.properties !== undefined){let data392 = data390.properties;if(data392 && typeof data392 == "object" && !Array.isArray(data392));else {const err687 = {instancePath:instancePath+"/presets/" + i63+"/properties",schemaPath:"#/properties/presets/items/properties/properties/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err687];}else {vErrors.push(err687);}errors++;}}}else {const err688 = {instancePath:instancePath+"/presets/" + i63,schemaPath:"#/properties/presets/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err688];}else {vErrors.push(err688);}errors++;}}}else {const err689 = {instancePath:instancePath+"/presets",schemaPath:"#/properties/presets/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err689];}else {vErrors.push(err689);}errors++;}}if(data.entriesVisible !== undefined){let data393 = data.entriesVisible;const _errs828 = errors;let valid441 = false;let passing6 = null;const _errs829 = errors;if(typeof data393 !== "boolean"){const err690 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/0/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err690];}else {vErrors.push(err690);}errors++;}var _valid57 = _errs829 === errors;if(_valid57){valid441 = true;passing6 = 0;}const _errs831 = errors;if(data393 && typeof data393 == "object" && !Array.isArray(data393)){for(const key11 in data393){if(!(((key11 === "outputs") || (key11 === "executionListeners")) || (key11 === "taskListeners"))){const err691 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err691];}else {vErrors.push(err691);}errors++;}}if(data393.outputs !== undefined){if(typeof data393.outputs !== "boolean"){const err692 = {instancePath:instancePath+"/entriesVisible/outputs",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/outputs/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err692];}else {vErrors.push(err692);}errors++;}}if(data393.executionListeners !== undefined){if(typeof data393.executionListeners !== "boolean"){const err693 = {instancePath:instancePath+"/entriesVisible/executionListeners",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/executionListeners/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err693];}else {vErrors.push(err693);}errors++;}}if(data393.taskListeners !== undefined){if(typeof data393.taskListeners !== "boolean"){const err694 = {instancePath:instancePath+"/entriesVisible/taskListeners",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/taskListeners/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err694];}else {vErrors.push(err694);}errors++;}}}else {const err695 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err695];}else {vErrors.push(err695);}errors++;}var _valid57 = _errs831 === errors;if(_valid57 && valid441){valid441 = false;passing6 = [passing6, 1];}else {if(_valid57){valid441 = true;passing6 = 1;}}if(!valid441){const err696 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err696];}else {vErrors.push(err696);}errors++;}else {errors = _errs828;if(vErrors !== null){if(_errs828){vErrors.length = _errs828;}else {vErrors = null;}}}}}else {const err697 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err697];}else {vErrors.push(err697);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", 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, {instancePath,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], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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;}
|
|
811
|
+
};keyword0.push(warning4);validate14.warnings = keyword0;var _valid59 = _errs534 === errors;valid240 = _valid59;}if(!valid240){const err461 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}const _errs536 = errors;let valid242 = true;const _errs537 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err462 = {};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}else {if(data191.type !== undefined){if("zeebe:calledElement" !== data191.type){const err463 = {};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}}}var _valid60 = _errs537 === errors;errors = _errs536;if(vErrors !== null){if(_errs536){vErrors.length = _errs536;}else {vErrors = null;}}if(_valid60){const _errs539 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err464 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}if(data191.property !== undefined){let data199 = data191.property;if(!((((((data199 === "processId") || (data199 === "bindingType")) || (data199 === "versionTag")) || (data199 === "propagateAllParentVariables")) || (data199 === "propagateAllChildVariables")) || (data199 === "businessId"))){const err465 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[5].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}}}var _valid60 = _errs539 === errors;valid242 = _valid60;}if(!valid242){const err466 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}const _errs542 = errors;let valid245 = true;const _errs543 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err467 = {};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}else {if(data191.type !== undefined){if("zeebe:script" !== data191.type){const err468 = {};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}}var _valid61 = _errs543 === errors;errors = _errs542;if(vErrors !== null){if(_errs542){vErrors.length = _errs542;}else {vErrors = null;}}if(_valid61){const _errs545 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err469 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if(data191.property !== undefined){let data201 = data191.property;if(!((data201 === "expression") || (data201 === "resultVariable"))){const err470 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[6].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}}var _valid61 = _errs545 === errors;valid245 = _valid61;}if(!valid245){const err471 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}const _errs548 = errors;let valid248 = true;const _errs549 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err472 = {};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}else {if(data191.type !== undefined){if("zeebe:formDefinition" !== data191.type){const err473 = {};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}}}var _valid62 = _errs549 === errors;errors = _errs548;if(vErrors !== null){if(_errs548){vErrors.length = _errs548;}else {vErrors = null;}}if(_valid62){const _errs551 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err474 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(data191.property !== undefined){let data203 = data191.property;if(!((((data203 === "formId") || (data203 === "externalReference")) || (data203 === "bindingType")) || (data203 === "versionTag"))){const err475 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[7].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}}var _valid62 = _errs551 === errors;valid248 = _valid62;}if(!valid248){const err476 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}const _errs554 = errors;let valid251 = true;const _errs555 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err477 = {};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}else {if(data191.type !== undefined){if("zeebe:calledDecision" !== data191.type){const err478 = {};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}}}var _valid63 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}if(_valid63){const _errs557 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err479 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data191.property !== undefined){let data205 = data191.property;if(!((((data205 === "decisionId") || (data205 === "resultVariable")) || (data205 === "versionTag")) || (data205 === "bindingType"))){const err480 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[8].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}}var _valid63 = _errs557 === errors;valid251 = _valid63;}if(!valid251){const err481 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}const _errs560 = errors;let valid254 = true;const _errs561 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err482 = {};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}else {if(data191.type !== undefined){if("zeebe:assignmentDefinition" !== data191.type){const err483 = {};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}}}}var _valid64 = _errs561 === errors;errors = _errs560;if(vErrors !== null){if(_errs560){vErrors.length = _errs560;}else {vErrors = null;}}if(_valid64){const _errs563 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err484 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if(data191.property !== undefined){let data207 = data191.property;if(!(((data207 === "assignee") || (data207 === "candidateUsers")) || (data207 === "candidateGroups"))){const err485 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[9].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}}var _valid64 = _errs563 === errors;valid254 = _valid64;}if(!valid254){const err486 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}const _errs566 = errors;let valid257 = true;const _errs567 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err487 = {};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}else {if(data191.type !== undefined){if("zeebe:priorityDefinition" !== data191.type){const err488 = {};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}}}var _valid65 = _errs567 === errors;errors = _errs566;if(vErrors !== null){if(_errs566){vErrors.length = _errs566;}else {vErrors = null;}}if(_valid65){const _errs569 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err489 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if(data191.property !== undefined){if("priority" !== data191.property){const err490 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/properties/property/const",keyword:"const",params:{allowedValue: "priority"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}}var _valid65 = _errs569 === errors;valid257 = _valid65;}if(!valid257){const err491 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}const _errs572 = errors;let valid260 = true;const _errs573 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err492 = {};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}else {if(data191.type !== undefined){if("zeebe:adHoc" !== data191.type){const err493 = {};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}}}}var _valid66 = _errs573 === errors;errors = _errs572;if(vErrors !== null){if(_errs572){vErrors.length = _errs572;}else {vErrors = null;}}if(_valid66){const _errs575 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err494 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data191.property !== undefined){let data211 = data191.property;if(!(((data211 === "activeElementsCollection") || (data211 === "outputCollection")) || (data211 === "outputElement"))){const err495 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[11].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}}}var _valid66 = _errs575 === errors;valid260 = _valid66;}if(!valid260){const err496 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}const _errs578 = errors;let valid263 = true;const _errs579 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err497 = {};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}else {if(data191.type !== undefined){if("zeebe:taskSchedule" !== data191.type){const err498 = {};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}}}var _valid67 = _errs579 === errors;errors = _errs578;if(vErrors !== null){if(_errs578){vErrors.length = _errs578;}else {vErrors = null;}}if(_valid67){const _errs581 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err499 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if(data191.property !== undefined){let data213 = data191.property;if(!((data213 === "dueDate") || (data213 === "followUpDate"))){const err500 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[12].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}}var _valid67 = _errs581 === errors;valid263 = _valid67;}if(!valid263){const err501 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}const _errs584 = errors;let valid266 = true;const _errs585 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err502 = {};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}else {if(data191.type !== undefined){if("bpmn:Signal#property" !== data191.type){const err503 = {};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}}}var _valid68 = _errs585 === errors;errors = _errs584;if(vErrors !== null){if(_errs584){vErrors.length = _errs584;}else {vErrors = null;}}if(_valid68){const _errs587 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.name === undefined){const err504 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if(data191.name !== undefined){if("name" !== data191.name){const err505 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/properties/name/const",keyword:"const",params:{allowedValue: "name"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}}var _valid68 = _errs587 === errors;valid266 = _valid68;}if(!valid266){const err506 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}const _errs590 = errors;let valid269 = true;const _errs591 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err507 = {};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}else {if(data191.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data191.type){const err508 = {};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}}var _valid69 = _errs591 === errors;errors = _errs590;if(vErrors !== null){if(_errs590){vErrors.length = _errs590;}else {vErrors = null;}}if(_valid69){const _errs593 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.name === undefined){const err509 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(data191.name !== undefined){let data217 = data191.name;if(!(((data217 === "timeCycle") || (data217 === "timeDate")) || (data217 === "timeDuration"))){const err510 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/properties/name/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[14].then.properties.name.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}}var _valid69 = _errs593 === errors;valid269 = _valid69;}if(!valid269){const err511 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}const _errs597 = errors;let valid273 = true;const _errs598 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err512 = {};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}else {if(data191.type !== undefined){if("bpmn:ConditionalEventDefinition#property" !== data191.type){const err513 = {};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}}}var _valid70 = _errs598 === errors;errors = _errs597;if(vErrors !== null){if(_errs597){vErrors.length = _errs597;}else {vErrors = null;}}if(_valid70){const _errs600 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.name === undefined){const err514 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data191.name !== undefined){if("condition" !== data191.name){const err515 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/properties/name/const",keyword:"const",params:{allowedValue: "condition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}}}var _valid70 = _errs600 === errors;valid273 = _valid70;}if(!valid273){const err516 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}const _errs603 = errors;let valid276 = true;const _errs604 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err517 = {};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}else {if(data191.type !== undefined){if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data191.type){const err518 = {};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}}}var _valid71 = _errs604 === errors;errors = _errs603;if(vErrors !== null){if(_errs603){vErrors.length = _errs603;}else {vErrors = null;}}if(_valid71){const _errs606 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.name === undefined){const err519 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if(data191.name !== undefined){if("variableEvents" !== data191.name){const err520 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/properties/name/const",keyword:"const",params:{allowedValue: "variableEvents"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}}}var _valid71 = _errs606 === errors;valid276 = _valid71;}if(!valid276){const err521 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}const _errs610 = errors;let valid280 = true;const _errs611 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err522 = {};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}else {if(data191.type !== undefined){if("zeebe:executionListener" !== data191.type){const err523 = {};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}}}}var _valid72 = _errs611 === errors;errors = _errs610;if(vErrors !== null){if(_errs610){vErrors.length = _errs610;}else {vErrors = null;}}if(_valid72){const _errs613 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.eventType === undefined){const err524 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventType"},message:"must have required property '"+"eventType"+"'"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if(data191.eventType !== undefined){let data223 = data191.eventType;if(!((data223 === "start") || (data223 === "end"))){const err525 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/then/properties/eventType/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[16].allOf[0].then.properties.eventType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}}var _valid72 = _errs613 === errors;valid280 = _valid72;}if(!valid280){const err526 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}const _errs616 = errors;let valid283 = true;const _errs617 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err527 = {};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}else {if(data191.type !== undefined){if("zeebe:taskListener" !== data191.type){const err528 = {};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}}var _valid73 = _errs617 === errors;errors = _errs616;if(vErrors !== null){if(_errs616){vErrors.length = _errs616;}else {vErrors = null;}}if(_valid73){const _errs619 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.eventType === undefined){const err529 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/then/required",keyword:"required",params:{missingProperty: "eventType"},message:"must have required property '"+"eventType"+"'"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}if(data191.eventType !== undefined){let data225 = data191.eventType;if(!(((((data225 === "creating") || (data225 === "assigning")) || (data225 === "updating")) || (data225 === "completing")) || (data225 === "canceling"))){const err530 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/then/properties/eventType/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[16].allOf[1].then.properties.eventType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}}var _valid73 = _errs619 === errors;valid283 = _valid73;}if(!valid283){const err531 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}const _errs622 = errors;let valid286 = true;const _errs623 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.headers === undefined) && ("headers")){const err532 = {};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}}var _valid74 = _errs623 === errors;errors = _errs622;if(vErrors !== null){if(_errs622){vErrors.length = _errs622;}else {vErrors = null;}}if(_valid74){const _errs624 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.type !== undefined){if("zeebe:executionListener" !== data191.type){const err533 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/2/then/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:executionListener"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}}}var _valid74 = _errs624 === errors;valid286 = _valid74;}if(!valid286){const err534 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}const _errs627 = errors;let valid288 = true;const _errs628 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err535 = {};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}else {if(data191.type !== undefined){let data227 = data191.type;const _errs630 = errors;const _errs631 = errors;if(!((data227 === "zeebe:executionListener") || (data227 === "zeebe:taskListener"))){const err536 = {};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}var valid290 = _errs631 === errors;if(valid290){const err537 = {};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}else {errors = _errs630;if(vErrors !== null){if(_errs630){vErrors.length = _errs630;}else {vErrors = null;}}}}}}var _valid75 = _errs628 === errors;errors = _errs627;if(vErrors !== null){if(_errs627){vErrors.length = _errs627;}else {vErrors = null;}}if(_valid75){const _errs632 = errors;const _errs633 = errors;const _errs634 = errors;const _errs635 = errors;let valid292 = false;const _errs636 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.eventType === undefined) && ("eventType")){const err538 = {};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}}var _valid76 = _errs636 === errors;valid292 = valid292 || _valid76;if(!valid292){const _errs637 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.retries === undefined) && ("retries")){const err539 = {};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}var _valid76 = _errs637 === errors;valid292 = valid292 || _valid76;if(!valid292){const _errs638 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.headers === undefined) && ("headers")){const err540 = {};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}}var _valid76 = _errs638 === errors;valid292 = valid292 || _valid76;}}if(!valid292){const err541 = {};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}else {errors = _errs635;if(vErrors !== null){if(_errs635){vErrors.length = _errs635;}else {vErrors = null;}}}var valid291 = _errs634 === errors;if(valid291){const err542 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/3/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}else {errors = _errs633;if(vErrors !== null){if(_errs633){vErrors.length = _errs633;}else {vErrors = null;}}}var _valid75 = _errs632 === errors;valid288 = _valid75;}if(!valid288){const err543 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/16/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}const _errs640 = errors;let valid293 = true;const _errs641 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if((data191.type === undefined) && ("type")){const err544 = {};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}else {if(data191.type !== undefined){if("zeebe:jobPriorityDefinition" !== data191.type){const err545 = {};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}}}}var _valid77 = _errs641 === errors;errors = _errs640;if(vErrors !== null){if(_errs640){vErrors.length = _errs640;}else {vErrors = null;}}if(_valid77){const _errs643 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.property === undefined){const err546 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/18/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}if(data191.property !== undefined){if("priority" !== data191.property){const err547 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/18/then/properties/property/const",keyword:"const",params:{allowedValue: "priority"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}}}var _valid77 = _errs643 === errors;valid293 = _valid77;}if(!valid293){const err548 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.type === undefined){const err549 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}if(data191.type !== undefined){let data230 = data191.type;if(typeof data230 !== "string"){const err550 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}if(!((((((((((((((((((((((((((data230 === "property") || (data230 === "zeebe:taskDefinition:type")) || (data230 === "zeebe:input")) || (data230 === "zeebe:output")) || (data230 === "zeebe:property")) || (data230 === "zeebe:taskHeader")) || (data230 === "bpmn:Message#property")) || (data230 === "bpmn:Message#zeebe:subscription#property")) || (data230 === "zeebe:taskDefinition")) || (data230 === "zeebe:calledElement")) || (data230 === "zeebe:linkedResource")) || (data230 === "zeebe:userTask")) || (data230 === "zeebe:formDefinition")) || (data230 === "zeebe:calledDecision")) || (data230 === "zeebe:script")) || (data230 === "zeebe:assignmentDefinition")) || (data230 === "zeebe:priorityDefinition")) || (data230 === "zeebe:jobPriorityDefinition")) || (data230 === "zeebe:adHoc")) || (data230 === "zeebe:taskSchedule")) || (data230 === "zeebe:executionListener")) || (data230 === "zeebe:taskListener")) || (data230 === "bpmn:Signal#property")) || (data230 === "bpmn:TimerEventDefinition#property")) || (data230 === "bpmn:ConditionalEventDefinition#property")) || (data230 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err551 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}if(errors > 0){const emErrs45 = [];for(const err552 of vErrors){if(((((err552.keyword !== "errorMessage") && (!err552.emUsed)) && ((err552.instancePath === instancePath+"/" + i2+"/binding/type") || ((err552.instancePath.indexOf(instancePath+"/" + i2+"/binding/type") === 0) && (err552.instancePath[instancePath+"/" + i2+"/binding/type".length] === "/")))) && (err552.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err552.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs45.push(err552);err552.emUsed = true;}}if(emErrs45.length){const err553 = {instancePath:instancePath+"/" + i2+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"invalid property.binding type " + JSON.stringify(data230) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:jobPriorityDefinition, zeebe:adHoc, zeebe:taskSchedule, zeebe:executionListener, zeebe:taskListener, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}const emErrs46 = [];for(const err554 of vErrors){if(!err554.emUsed){emErrs46.push(err554);}}vErrors = emErrs46;errors = emErrs46.length;}}if(data191.name !== undefined){if(typeof data191.name !== "string"){const err555 = {instancePath:instancePath+"/" + i2+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}if(data191.source !== undefined){if(typeof data191.source !== "string"){const err556 = {instancePath:instancePath+"/" + i2+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}}if(data191.key !== undefined){if(typeof data191.key !== "string"){const err557 = {instancePath:instancePath+"/" + i2+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}if(data191.property !== undefined){if(typeof data191.property !== "string"){const err558 = {instancePath:instancePath+"/" + i2+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}if(data191.linkName !== undefined){if(typeof data191.linkName !== "string"){const err559 = {instancePath:instancePath+"/" + i2+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}}if(data191.eventType !== undefined){if(typeof data191.eventType !== "string"){const err560 = {instancePath:instancePath+"/" + i2+"/binding/eventType",schemaPath:"#/allOf/1/items/properties/binding/properties/eventType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(data191.retries !== undefined){if(typeof data191.retries !== "string"){const err561 = {instancePath:instancePath+"/" + i2+"/binding/retries",schemaPath:"#/allOf/1/items/properties/binding/properties/retries/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}}if(data191.headers !== undefined){let data238 = data191.headers;if(Array.isArray(data238)){const len6 = data238.length;for(let i6=0; i6<len6; i6++){let data239 = data238[i6];if(data239 && typeof data239 == "object" && !Array.isArray(data239)){if(data239.key === undefined){const err562 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}if(data239.value === undefined){const err563 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}for(const key1 in data239){if(!((key1 === "key") || (key1 === "value"))){const err564 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}}if(data239.key !== undefined){if(typeof data239.key !== "string"){const err565 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6+"/key",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}if(data239.value !== undefined){if(typeof data239.value !== "string"){const err566 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6+"/value",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}}}else {const err567 = {instancePath:instancePath+"/" + i2+"/binding/headers/" + i6,schemaPath:"#/allOf/1/items/properties/binding/properties/headers/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}}else {const err568 = {instancePath:instancePath+"/" + i2+"/binding/headers",schemaPath:"#/allOf/1/items/properties/binding/properties/headers/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}}}else {const err569 = {instancePath:instancePath+"/" + i2+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}if(data23.optional !== undefined){if(typeof data23.optional !== "boolean"){const err570 = {instancePath:instancePath+"/" + i2+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}}if(data23.feel !== undefined){let data243 = data23.feel;if(typeof data243 !== "string"){const err571 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if(!(((data243 === "optional") || (data243 === "required")) || (data243 === "static"))){const err572 = {instancePath:instancePath+"/" + i2+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}}if(data23.language !== undefined){if(typeof data23.language !== "string"){const err573 = {instancePath:instancePath+"/" + i2+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}}if(data23.generatedValue !== undefined){let data245 = data23.generatedValue;if(data245 && typeof data245 == "object" && !Array.isArray(data245)){if(data245.type === undefined){const err574 = {instancePath:instancePath+"/" + i2+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}if(data245.type !== undefined){if("uuid" !== data245.type){const err575 = {instancePath:instancePath+"/" + i2+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}}}else {const err576 = {instancePath:instancePath+"/" + i2+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}if(data23.tooltip !== undefined){if(typeof data23.tooltip !== "string"){const err577 = {instancePath:instancePath+"/" + i2+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}}}else {const err578 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}if(errors > 0){const emErrors1 = {"required":{"binding":[]}};const templates1 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i2) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err579 of vErrors){if((((((err579.keyword !== "errorMessage") && (!err579.emUsed)) && (err579.instancePath === instancePath+"/" + i2)) && (err579.keyword in emErrors1)) && (err579.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err579.schemaPath.slice(15)))){emPropParams0 = obj0[err579.keyword];emParamsErrors0 = emErrors1[err579.keyword][err579.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err579);err579.emUsed = true;}}}for(const key2 in emErrors1){for(const keyProp0 in emErrors1[key2]){emParamsErrors0 = emErrors1[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key2] && templates1[key2][keyProp0];const err580 = {instancePath:instancePath+"/" + i2,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema22.allOf[1].items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}}}const emErrs47 = [];for(const err581 of vErrors){if(!err581.emUsed){emErrs47.push(err581);}}vErrors = emErrs47;errors = emErrs47.length;}}}else {const err582 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}if(Array.isArray(data)){const len7 = data.length;for(let i7=0; i7<len7; i7++){let data248 = data[i7];const _errs686 = errors;let valid305 = true;const _errs687 = errors;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if(((data248.id === undefined) && ("id")) || ((data248.condition === undefined) && ("condition"))){const err583 = {};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}else {if(data248.condition !== undefined){let data249 = data248.condition;if(data249 && typeof data249 == "object" && !Array.isArray(data249)){if((data249.property === undefined) && ("property")){const err584 = {};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}else {if(data249.property !== undefined){if(!func0(data249.property, schema23.properties.property.const)){const err585 = {};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}}}}}}var _valid78 = _errs687 === errors;errors = _errs686;if(vErrors !== null){if(_errs686){vErrors.length = _errs686;}else {vErrors = null;}}if(_valid78){const _errs691 = errors;const _errs692 = errors;const _errs693 = errors;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if((data248.condition === undefined) && ("condition")){const err586 = {};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}}var valid309 = _errs693 === errors;if(valid309){const err587 = {instancePath:instancePath+"/" + i7,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}else {errors = _errs692;if(vErrors !== null){if(_errs692){vErrors.length = _errs692;}else {vErrors = null;}}}if(errors > 0){const emErrs48 = [];for(const err588 of vErrors){if(((((err588.keyword !== "errorMessage") && (!err588.emUsed)) && ((err588.instancePath === instancePath+"/" + i7) || ((err588.instancePath.indexOf(instancePath+"/" + i7) === 0) && (err588.instancePath[instancePath+"/" + i7.length] === "/")))) && (err588.schemaPath.indexOf("#/allOf/2/items/allOf/0/allOf/0/then") === 0)) && (err588.schemaPath["#/allOf/2/items/allOf/0/allOf/0/then".length] === "/")){emErrs48.push(err588);err588.emUsed = true;}}if(emErrs48.length){const err589 = {instancePath:instancePath+"/" + i7,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs48},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}const emErrs49 = [];for(const err590 of vErrors){if(!err590.emUsed){emErrs49.push(err590);}}vErrors = emErrs49;errors = emErrs49.length;}var _valid78 = _errs691 === errors;valid305 = _valid78;}if(!valid305){const err591 = {instancePath:instancePath+"/" + i7,schemaPath:"#/allOf/2/items/allOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if(data248.id !== undefined){if(typeof data248.id !== "string"){const err592 = {instancePath:instancePath+"/" + i7+"/id",schemaPath:"#/allOf/2/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}if(data248.condition !== undefined){let data252 = data248.condition;if(!(data252 && typeof data252 == "object" && !Array.isArray(data252))){const err593 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}const _errs698 = errors;let valid311 = false;let passing3 = null;const _errs699 = errors;const _errs702 = errors;let valid313 = false;let passing4 = null;const _errs703 = errors;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.equals === undefined){const err594 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}if(data252.equals !== undefined){let data253 = data252.equals;if(((typeof data253 !== "string") && (!(typeof data253 == "number"))) && (typeof data253 !== "boolean")){const err595 = {instancePath:instancePath+"/" + i7+"/condition/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}}}var _valid80 = _errs703 === errors;if(_valid80){valid313 = true;passing4 = 0;}const _errs706 = errors;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.oneOf === undefined){const err596 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}if(data252.oneOf !== undefined){let data254 = data252.oneOf;if(Array.isArray(data254)){const len8 = data254.length;for(let i8=0; i8<len8; i8++){let data255 = data254[i8];if((typeof data255 !== "string") && (!(typeof data255 == "number"))){const err597 = {instancePath:instancePath+"/" + i7+"/condition/oneOf/" + i8,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}}}else {const err598 = {instancePath:instancePath+"/" + i7+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}}}var _valid80 = _errs706 === errors;if(_valid80 && valid313){valid313 = false;passing4 = [passing4, 1];}else {if(_valid80){valid313 = true;passing4 = 1;}const _errs711 = errors;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.isActive === undefined){const err599 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(data252.isActive !== undefined){if(typeof data252.isActive !== "boolean"){const err600 = {instancePath:instancePath+"/" + i7+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}}}var _valid80 = _errs711 === errors;if(_valid80 && valid313){valid313 = false;passing4 = [passing4, 2];}else {if(_valid80){valid313 = true;passing4 = 2;}const _errs714 = errors;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.isEmpty === undefined){const err601 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if(data252.isEmpty !== undefined){if(typeof data252.isEmpty !== "boolean"){const err602 = {instancePath:instancePath+"/" + i7+"/condition/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}}}var _valid80 = _errs714 === errors;if(_valid80 && valid313){valid313 = false;passing4 = [passing4, 3];}else {if(_valid80){valid313 = true;passing4 = 3;}}}}if(!valid313){const err603 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}else {errors = _errs702;if(vErrors !== null){if(_errs702){vErrors.length = _errs702;}else {vErrors = null;}}}if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.property === undefined){const err604 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}if(data252.type !== undefined){if("simple" !== data252.type){const err605 = {instancePath:instancePath+"/" + i7+"/condition/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}}if(data252.property !== undefined){if(typeof data252.property !== "string"){const err606 = {instancePath:instancePath+"/" + i7+"/condition/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}}}else {const err607 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err608 of vErrors){if((((((err608.keyword !== "errorMessage") && (!err608.emUsed)) && (err608.instancePath === instancePath+"/" + i7+"/condition")) && (err608.keyword in emErrors2)) && (err608.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err608.schemaPath.slice(68)))){emPropParams1 = obj0[err608.keyword];emParamsErrors1 = emErrors2[err608.keyword][err608.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err608);err608.emUsed = true;}}}for(const key3 in emErrors2){for(const keyProp1 in emErrors2[key3]){emParamsErrors1 = emErrors2[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key3] && templates2[key3][keyProp1];const err609 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}}}const emErrs50 = [];for(const err610 of vErrors){if(!err610.emUsed){emErrs50.push(err610);}}vErrors = emErrs50;errors = emErrs50.length;}var _valid79 = _errs699 === errors;if(_valid79){valid311 = true;passing3 = 0;}const _errs720 = errors;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if(data252.allMatch === undefined){const err611 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}if(data252.allMatch !== undefined){let data260 = data252.allMatch;if(Array.isArray(data260)){if(data260.length < 1){const err612 = {instancePath:instancePath+"/" + i7+"/condition/allMatch",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}const len9 = data260.length;for(let i9=0; i9<len9; i9++){let data261 = data260[i9];const _errs726 = errors;let valid325 = false;let passing5 = null;const _errs727 = errors;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if(data261.equals === undefined){const err613 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}if(data261.equals !== undefined){let data262 = data261.equals;if(((typeof data262 !== "string") && (!(typeof data262 == "number"))) && (typeof data262 !== "boolean")){const err614 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/equals",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}}}var _valid81 = _errs727 === errors;if(_valid81){valid325 = true;passing5 = 0;}const _errs730 = errors;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if(data261.oneOf === undefined){const err615 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}if(data261.oneOf !== undefined){let data263 = data261.oneOf;if(Array.isArray(data263)){const len10 = data263.length;for(let i10=0; i10<len10; i10++){let data264 = data263[i10];if((typeof data264 !== "string") && (!(typeof data264 == "number"))){const err616 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/oneOf/" + i10,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/oneOf",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}}}var _valid81 = _errs730 === errors;if(_valid81 && valid325){valid325 = false;passing5 = [passing5, 1];}else {if(_valid81){valid325 = true;passing5 = 1;}const _errs735 = errors;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if(data261.isActive === undefined){const err618 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if(data261.isActive !== undefined){if(typeof data261.isActive !== "boolean"){const err619 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/isActive",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}}}var _valid81 = _errs735 === errors;if(_valid81 && valid325){valid325 = false;passing5 = [passing5, 2];}else {if(_valid81){valid325 = true;passing5 = 2;}const _errs738 = errors;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if(data261.isEmpty === undefined){const err620 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if(data261.isEmpty !== undefined){if(typeof data261.isEmpty !== "boolean"){const err621 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/isEmpty",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}}}var _valid81 = _errs738 === errors;if(_valid81 && valid325){valid325 = false;passing5 = [passing5, 3];}else {if(_valid81){valid325 = true;passing5 = 3;}}}}if(!valid325){const err622 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}else {errors = _errs726;if(vErrors !== null){if(_errs726){vErrors.length = _errs726;}else {vErrors = null;}}}if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if(data261.property === undefined){const err623 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}if(data261.type !== undefined){if("simple" !== data261.type){const err624 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/type",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}}if(data261.property !== undefined){if(typeof data261.property !== "string"){const err625 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9+"/property",schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}}else {const err626 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}if(errors > 0){const emErrors3 = {"required":{"property":[]}};const templates3 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err627 of vErrors){if((((((err627.keyword !== "errorMessage") && (!err627.emUsed)) && (err627.instancePath === instancePath+"/" + i7+"/condition/allMatch/" + i9)) && (err627.keyword in emErrors3)) && (err627.schemaPath.indexOf("#/definitions/properties/allOf/2/items/allOf/0/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err627.schemaPath.slice(68)))){emPropParams2 = obj0[err627.keyword];emParamsErrors2 = emErrors3[err627.keyword][err627.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err627);err627.emUsed = true;}}}for(const key4 in emErrors3){for(const keyProp2 in emErrors3[key4]){emParamsErrors2 = emErrors3[key4][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key4] && templates3[key4][keyProp2];const err628 = {instancePath:instancePath+"/" + i7+"/condition/allMatch/" + i9,schemaPath:"#/definitions/properties/allOf/2/items/allOf/0/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema24.errorMessage[key4][keyProp2]};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}}}const emErrs51 = [];for(const err629 of vErrors){if(!err629.emUsed){emErrs51.push(err629);}}vErrors = emErrs51;errors = emErrs51.length;}}}else {const err630 = {instancePath:instancePath+"/" + i7+"/condition/allMatch",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}}var _valid79 = _errs720 === errors;if(_valid79 && valid311){valid311 = false;passing3 = [passing3, 1];}else {if(_valid79){valid311 = true;passing3 = 1;}}if(!valid311){const err631 = {instancePath:instancePath+"/" + i7+"/condition",schemaPath:"#/allOf/2/items/allOf/0/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}else {errors = _errs698;if(vErrors !== null){if(_errs698){vErrors.length = _errs698;}else {vErrors = null;}}}}}if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if(data248.choices !== undefined){let data269 = data248.choices;if(Array.isArray(data269)){const len11 = data269.length;for(let i11=0; i11<len11; i11++){let data270 = data269[i11];if(data270 && typeof data270 == "object" && !Array.isArray(data270)){if(data270.condition !== undefined){if(!(validate17(data270.condition, {instancePath:instancePath+"/" + i7+"/choices/" + i11+"/condition",parentData:data270,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}}}}}}}validate16.errors = vErrors;return errors === 0;}function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isEmpty === undefined){const err8 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.isEmpty !== undefined){if(typeof data.isEmpty !== "boolean"){const err9 = {instancePath:instancePath+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}var _valid1 = _errs17 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 3];}else {if(_valid1){valid2 = true;passing1 = 3;}}}}if(!valid2){const err10 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err11 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err12 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err13 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.allMatch !== undefined){let data7 = data.allMatch;if(Array.isArray(data7)){if(data7.length < 1){const err16 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs29 = errors;let valid14 = false;let passing2 = null;const _errs30 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.equals === undefined){const err17 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data8.equals !== undefined){let data9 = data8.equals;if(((typeof data9 !== "string") && (!(typeof data9 == "number"))) && (typeof data9 !== "boolean")){const err18 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs33 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.oneOf === undefined){const err19 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data8.oneOf !== undefined){let data10 = data8.oneOf;if(Array.isArray(data10)){const len2 = data10.length;for(let i2=0; i2<len2; i2++){let data11 = data10[i2];if((typeof data11 !== "string") && (!(typeof data11 == "number"))){const err20 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid2 = _errs33 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 1];}else {if(_valid2){valid14 = true;passing2 = 1;}const _errs38 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isActive === undefined){const err22 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.isActive !== undefined){if(typeof data8.isActive !== "boolean"){const err23 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}var _valid2 = _errs38 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 2];}else {if(_valid2){valid14 = true;passing2 = 2;}const _errs41 = errors;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.isEmpty === undefined){const err24 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data8.isEmpty !== undefined){if(typeof data8.isEmpty !== "boolean"){const err25 = {instancePath:instancePath+"/allMatch/" + i1+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}var _valid2 = _errs41 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 3];}else {if(_valid2){valid14 = true;passing2 = 3;}}}}if(!valid14){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.property === undefined){const err27 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data8.type !== undefined){if("simple" !== data8.type){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data8.property !== undefined){if(typeof data8.property !== "string"){const err29 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid0 = _errs23 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err32 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate20.errors = vErrors;return errors === 0;}const wrapper0 = {validate: validate22};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs3 = errors;const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.presetId === undefined) && ("presetId")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid1 = _errs4 === errors;if(valid1){const err1 = {instancePath,schemaPath:"#/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.steps === undefined){const err2 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "steps"},message:"must have required property '"+"steps"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.steps === undefined) && ("steps")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs7 === errors;if(valid2){const err4 = {instancePath,schemaPath:"#/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.presetId === undefined){const err5 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "presetId"},message:"must have required property '"+"presetId"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs5 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err6 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err8 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err9 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.keywords !== undefined){let data2 = data.keywords;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(typeof data2[i0] !== "string"){const err10 = {instancePath:instancePath+"/keywords/" + i0,schemaPath:"#/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/keywords",schemaPath:"#/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.steps !== undefined){let data4 = data.steps;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(wrapper0.validate(data4[i1], {instancePath:instancePath+"/steps/" + i1,parentData:data4,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}}}else {const err12 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.presetId !== undefined){if(typeof data.presetId !== "string"){const err13 = {instancePath:instancePath+"/presetId",schemaPath:"#/properties/presetId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}validate22.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.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 err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.groups !== undefined){let data16 = data.groups;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.id === undefined){const err33 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data17.label === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data17.id !== undefined){if(typeof data17.id !== "string"){const err35 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.instancePath === instancePath+"/groups/" + i2)) && (err38.keyword in emErrors3)) && (err38.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(33)))){emPropParams1 = obj0[err38.keyword];emParamsErrors1 = emErrors3[err38.keyword][err38.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err38);err38.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err39 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}const emErrs3 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs3.push(err40);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err41 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.documentationRef !== undefined){let data20 = data.documentationRef;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err42 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err44 of vErrors){if((((((err44.keyword !== "errorMessage") && (!err44.emUsed)) && (err44.instancePath === instancePath+"/documentationRef")) && (err44.keyword in emErrors4)) && (err44.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err44.schemaPath.slice(37)))){emErrors4[err44.keyword].push(err44);err44.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err45 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}const emErrs4 = [];for(const err46 of vErrors){if(!err46.emUsed){emErrs4.push(err46);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath)) && (err47.keyword in emErrors5)) && (err47.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(9)))){emPropParams2 = obj0[err47.keyword];emParamsErrors2 = emErrors5[err47.keyword][err47.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err47);err47.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 err48 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs46 = errors;let valid15 = true;const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data.properties !== undefined){let data21 = data.properties;if(Array.isArray(data21)){const _errs49 = errors;const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];const _errs50 = errors;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if((data22.binding === undefined) && ("binding")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data22.binding !== undefined){let data23 = data22.binding;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data23.type !== undefined){if("bpmn:Message#property" !== data23.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}}}}var valid17 = _errs50 === errors;if(valid17){break;}}if(!valid17){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err55 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data.elementType !== undefined){let data25 = data.elementType;const _errs56 = errors;let valid22 = true;const _errs57 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value !== undefined){let data26 = data25.value;if(!(((((data26 === "bpmn:StartEvent") || (data26 === "bpmn:IntermediateCatchEvent")) || (data26 === "bpmn:IntermediateThrowEvent")) || (data26 === "bpmn:BoundaryEvent")) || (data26 === "bpmn:EndEvent"))){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid1 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid1){const _errs59 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.eventDefinition === undefined){const err57 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}var _valid1 = _errs59 === errors;valid22 = _valid1;}if(!valid22){const err58 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err59 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data25.value !== undefined){let data27 = data25.value;if(!(((((((data27 === "bpmn:ReceiveTask") || (data27 === "bpmn:SendTask")) || (data27 === "bpmn:StartEvent")) || (data27 === "bpmn:IntermediateCatchEvent")) || (data27 === "bpmn:IntermediateThrowEvent")) || (data27 === "bpmn:BoundaryEvent")) || (data27 === "bpmn:EndEvent"))){const err60 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}}}var _valid0 = _errs53 === errors;valid15 = _valid0;}if(!valid15){const err61 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}const _errs62 = errors;let valid25 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data.properties !== undefined){let data28 = data.properties;if(Array.isArray(data28)){const _errs65 = errors;const len4 = data28.length;for(let i4=0; i4<len4; i4++){let data29 = data28[i4];const _errs66 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.binding === undefined) && ("binding")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data29.binding !== undefined){let data30 = data29.binding;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if((data30.type === undefined) && ("type")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data30.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data30.type){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}}}}}var valid27 = _errs66 === errors;if(valid27){break;}}if(!valid27){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}}}}}}var _valid2 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid2){const _errs69 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err67 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data.elementType !== undefined){let data32 = data.elementType;const _errs72 = errors;let valid32 = true;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){let data33 = data32.value;if(!(((((data33 === "bpmn:StartEvent") || (data33 === "bpmn:IntermediateCatchEvent")) || (data33 === "bpmn:IntermediateThrowEvent")) || (data33 === "bpmn:BoundaryEvent")) || (data33 === "bpmn:EndEvent"))){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid3 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid3){const _errs75 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.eventDefinition === undefined){const err69 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid3 = _errs75 === errors;valid32 = _valid3;}if(!valid32){const err70 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value === undefined){const err71 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data32.value !== undefined){let data34 = data32.value;if(!((((((data34 === "bpmn:ReceiveTask") || (data34 === "bpmn:StartEvent")) || (data34 === "bpmn:IntermediateCatchEvent")) || (data34 === "bpmn:IntermediateThrowEvent")) || (data34 === "bpmn:BoundaryEvent")) || (data34 === "bpmn:EndEvent"))){const err72 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}var _valid2 = _errs69 === errors;valid25 = _valid2;}if(!valid25){const err73 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}const _errs78 = errors;let valid35 = true;const _errs79 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data.properties !== undefined){let data35 = data.properties;if(Array.isArray(data35)){const _errs81 = errors;const len5 = data35.length;for(let i5=0; i5<len5; i5++){let data36 = data35[i5];const _errs82 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data37.type !== undefined){if("zeebe:calledElement" !== data37.type){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}}}}}var valid37 = _errs82 === errors;if(valid37){break;}}if(!valid37){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}}}}}var _valid4 = _errs79 === errors;errors = _errs78;if(vErrors !== null){if(_errs78){vErrors.length = _errs78;}else {vErrors = null;}}if(_valid4){const _errs85 = errors;const _errs86 = errors;let valid40 = false;const _errs87 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err79 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data.elementType !== undefined){let data39 = data.elementType;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(data39.value === undefined){const err80 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data39.value !== undefined){if("bpmn:CallActivity" !== data39.value){const err81 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}}}var _valid5 = _errs87 === errors;valid40 = valid40 || _valid5;if(!valid40){const _errs90 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err82 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err83 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}var _valid5 = _errs90 === errors;valid40 = valid40 || _valid5;}if(!valid40){const err84 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data.properties !== undefined){let data42 = data.properties;if(Array.isArray(data42)){const _errs93 = errors;const len6 = data42.length;for(let i6=0; i6<len6; i6++){let data43 = data42[i6];const _errs94 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.binding === undefined){const err86 = {instancePath:instancePath+"/properties/" + i6,schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.binding !== undefined){let data44 = data43.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.property === undefined){const err87 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type === undefined){const err88 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data44.type !== undefined){if("zeebe:calledElement" !== data44.type){const err89 = {instancePath:instancePath+"/properties/" + i6+"/binding/type",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:calledElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data44.property !== undefined){if("processId" !== data44.property){const err90 = {instancePath:instancePath+"/properties/" + i6+"/binding/property",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}}var valid45 = _errs94 === errors;if(valid45){break;}}if(!valid45){const err91 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}}if(errors > 0){const emErrs6 = [];for(const err92 of vErrors){if(((((err92.keyword !== "errorMessage") && (!err92.emUsed)) && ((err92.instancePath === instancePath+"/properties") || ((err92.instancePath.indexOf(instancePath+"/properties") === 0) && (err92.instancePath[instancePath+"/properties".length] === "/")))) && (err92.schemaPath.indexOf("#/allOf/1/allOf/2/then/properties/properties") === 0)) && (err92.schemaPath["#/allOf/1/allOf/2/then/properties/properties".length] === "/")){emErrs6.push(err92);err92.emUsed = true;}}if(emErrs6.length){const err93 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const emErrs7 = [];for(const err94 of vErrors){if(!err94.emUsed){emErrs7.push(err94);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid4 = _errs85 === errors;valid35 = _valid4;}if(!valid35){const err95 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const _errs99 = errors;let valid48 = true;const _errs100 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data.properties !== undefined){let data47 = data.properties;if(Array.isArray(data47)){const _errs102 = errors;const len7 = data47.length;for(let i7=0; i7<len7; i7++){let data48 = data47[i7];const _errs103 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if((data48.binding === undefined) && ("binding")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data48.binding !== undefined){let data49 = data48.binding;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data49.type !== undefined){if("zeebe:userTask" !== data49.type){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}}}}var valid50 = _errs103 === errors;if(valid50){break;}}if(!valid50){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}}}}}var _valid6 = _errs100 === errors;errors = _errs99;if(vErrors !== null){if(_errs99){vErrors.length = _errs99;}else {vErrors = null;}}if(_valid6){const _errs106 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err101 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data.elementType !== undefined){let data51 = data.elementType;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.value === undefined){const err102 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data51.value !== undefined){if("bpmn:UserTask" !== data51.value){const err103 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}var _valid6 = _errs106 === errors;valid48 = _valid6;}if(!valid48){const err104 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs110 = errors;let valid55 = true;const _errs111 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data.properties !== undefined){let data53 = data.properties;if(Array.isArray(data53)){const _errs113 = errors;const len8 = data53.length;for(let i8=0; i8<len8; i8++){let data54 = data53[i8];const _errs114 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.binding === undefined) && ("binding")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data54.binding !== undefined){let data55 = data54.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((((data56 === "zeebe:formDefinition") || (data56 === "zeebe:assignmentDefinition")) || (data56 === "zeebe:priorityDefinition")) || (data56 === "zeebe:taskSchedule"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}}}}var valid57 = _errs114 === errors;if(valid57){break;}}if(!valid57){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs117 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err110 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data.properties !== undefined){let data57 = data.properties;if(Array.isArray(data57)){const _errs119 = errors;const len9 = data57.length;for(let i9=0; i9<len9; i9++){let data58 = data57[i9];const _errs120 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.binding === undefined){const err111 = {instancePath:instancePath+"/properties/" + i9,schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data58.binding !== undefined){let data59 = data58.binding;if(data59 && typeof data59 == "object" && !Array.isArray(data59)){if(data59.type === undefined){const err112 = {instancePath:instancePath+"/properties/" + i9+"/binding",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data59.type !== undefined){if("zeebe:userTask" !== data59.type){const err113 = {instancePath:instancePath+"/properties/" + i9+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}}}var valid61 = _errs120 === errors;if(valid61){break;}}if(!valid61){const err114 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}}if(errors > 0){const emErrs8 = [];for(const err115 of vErrors){if(((((err115.keyword !== "errorMessage") && (!err115.emUsed)) && ((err115.instancePath === instancePath+"/properties") || ((err115.instancePath.indexOf(instancePath+"/properties") === 0) && (err115.instancePath[instancePath+"/properties".length] === "/")))) && (err115.schemaPath.indexOf("#/allOf/1/allOf/4/then/properties/properties") === 0)) && (err115.schemaPath["#/allOf/1/allOf/4/then/properties/properties".length] === "/")){emErrs8.push(err115);err115.emUsed = true;}}if(emErrs8.length){const err116 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"When using " + JSON.stringify(data57 && data57["0"] && data57["0"].binding && data57["0"].binding.type) + ", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const emErrs9 = [];for(const err117 of vErrors){if(!err117.emUsed){emErrs9.push(err117);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid7 = _errs117 === errors;valid55 = _valid7;}if(!valid55){const err118 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const _errs124 = errors;let valid64 = true;const _errs125 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data.properties !== undefined){let data61 = data.properties;if(Array.isArray(data61)){const _errs127 = errors;const len10 = data61.length;for(let i10=0; i10<len10; i10++){let data62 = data61[i10];const _errs128 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.binding === undefined) && ("binding")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data62.binding !== undefined){let data63 = data62.binding;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if((data63.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data63.type !== undefined){if("zeebe:calledDecision" !== data63.type){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}}}}var valid66 = _errs128 === errors;if(valid66){break;}}if(!valid66){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}}}}}var _valid8 = _errs125 === errors;errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid69 = false;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err124 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data.elementType !== undefined){let data65 = data.elementType;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.value === undefined){const err125 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data65.value !== undefined){if("bpmn:BusinessRuleTask" !== data65.value){const err126 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:BusinessRuleTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}}}var _valid9 = _errs133 === errors;valid69 = valid69 || _valid9;if(!valid69){const _errs136 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err127 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err128 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}var _valid9 = _errs136 === errors;valid69 = valid69 || _valid9;}if(!valid69){const err129 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data68 = data.properties;if(Array.isArray(data68)){const _errs140 = errors;const len11 = data68.length;for(let i11=0; i11<len11; i11++){let data69 = data68[i11];const _errs141 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.binding === undefined){const err130 = {instancePath:instancePath+"/properties/" + i11,schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data69.binding !== undefined){let data70 = data69.binding;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.property === undefined){const err131 = {instancePath:instancePath+"/properties/" + i11+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data70.property !== undefined){if("decisionId" !== data70.property){const err132 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "decisionId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(errors > 0){const emErrs10 = [];for(const err133 of vErrors){if(((((err133.keyword !== "errorMessage") && (!err133.emUsed)) && ((err133.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err133.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err133.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err133.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err133.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err133);err133.emUsed = true;}}if(emErrs10.length){const err134 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const emErrs11 = [];for(const err135 of vErrors){if(!err135.emUsed){emErrs11.push(err135);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid75 = _errs141 === errors;if(valid75){break;}}if(!valid75){const err136 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data72 = data.properties;if(Array.isArray(data72)){const _errs146 = errors;const len12 = data72.length;for(let i12=0; i12<len12; i12++){let data73 = data72[i12];const _errs147 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.binding === undefined){const err137 = {instancePath:instancePath+"/properties/" + i12,schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data73.binding !== undefined){let data74 = data73.binding;if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.property === undefined){const err138 = {instancePath:instancePath+"/properties/" + i12+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data74.property !== undefined){if("resultVariable" !== data74.property){const err139 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(errors > 0){const emErrs12 = [];for(const err140 of vErrors){if(((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && ((err140.instancePath === instancePath+"/properties/" + i12+"/binding/property") || ((err140.instancePath.indexOf(instancePath+"/properties/" + i12+"/binding/property") === 0) && (err140.instancePath[instancePath+"/properties/" + i12+"/binding/property".length] === "/")))) && (err140.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err140.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs12.push(err140);err140.emUsed = true;}}if(emErrs12.length){const err141 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const emErrs13 = [];for(const err142 of vErrors){if(!err142.emUsed){emErrs13.push(err142);}}vErrors = emErrs13;errors = emErrs13.length;}}}}}var valid79 = _errs147 === errors;if(valid79){break;}}if(!valid79){const err143 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err144 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data.properties !== undefined){let data76 = data.properties;const _errs152 = errors;const _errs153 = errors;if(Array.isArray(data76)){const _errs154 = errors;const len13 = data76.length;for(let i13=0; i13<len13; i13++){let data77 = data76[i13];const _errs155 = errors;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if((data77.binding === undefined) && ("binding")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data77.binding !== undefined){let data78 = data77.binding;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if((data78.type === undefined) && ("type")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data78.type !== undefined){let data79 = data78.type;if(!((data79 === "zeebe:taskDefinition") || (data79 === "zeebe:taskDefinition:type"))){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}}}}}var valid84 = _errs155 === errors;if(valid84){break;}}if(!valid84){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}}var valid83 = _errs153 === errors;if(valid83){const err149 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}}}}if(errors > 0){const emErrs14 = [];for(const err150 of vErrors){if(((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && ((err150.instancePath === instancePath) || ((err150.instancePath.indexOf(instancePath) === 0) && (err150.instancePath[instancePath.length] === "/")))) && (err150.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err150.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs14.push(err150);err150.emUsed = true;}}if(emErrs14.length){const err151 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}const emErrs15 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs15.push(err152);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid8 = _errs131 === errors;valid64 = _valid8;}if(!valid64){const err153 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs159 = errors;let valid87 = true;const _errs160 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data.properties !== undefined){let data80 = data.properties;if(Array.isArray(data80)){const _errs162 = errors;const len14 = data80.length;for(let i14=0; i14<len14; i14++){let data81 = data80[i14];const _errs163 = errors;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if((data81.binding === undefined) && ("binding")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {if(data81.binding !== undefined){let data82 = data81.binding;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if((data82.type === undefined) && ("type")){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}else {if(data82.type !== undefined){if("zeebe:script" !== data82.type){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}}}}}var valid89 = _errs163 === errors;if(valid89){break;}}if(!valid89){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}}}}}var _valid10 = _errs160 === errors;errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}if(_valid10){const _errs166 = errors;const _errs167 = errors;let valid92 = false;const _errs168 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err159 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data.elementType !== undefined){let data84 = data.elementType;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value === undefined){const err160 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data84.value !== undefined){if("bpmn:ScriptTask" !== data84.value){const err161 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:ScriptTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}}var _valid11 = _errs168 === errors;valid92 = valid92 || _valid11;if(!valid92){const _errs171 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err162 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err163 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}var _valid11 = _errs171 === errors;valid92 = valid92 || _valid11;}if(!valid92){const err164 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {errors = _errs167;if(vErrors !== null){if(_errs167){vErrors.length = _errs167;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data87 = data.properties;if(Array.isArray(data87)){const _errs175 = errors;const len15 = data87.length;for(let i15=0; i15<len15; i15++){let data88 = data87[i15];const _errs176 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err165 = {instancePath:instancePath+"/properties/" + i15,schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.property === undefined){const err166 = {instancePath:instancePath+"/properties/" + i15+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data89.property !== undefined){if("expression" !== data89.property){const err167 = {instancePath:instancePath+"/properties/" + i15+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "expression"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}}}var valid98 = _errs176 === errors;if(valid98){break;}}if(!valid98){const err168 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data91 = data.properties;if(Array.isArray(data91)){const _errs181 = errors;const len16 = data91.length;for(let i16=0; i16<len16; i16++){let data92 = data91[i16];const _errs182 = errors;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if(data92.binding === undefined){const err169 = {instancePath:instancePath+"/properties/" + i16,schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(data92.binding !== undefined){let data93 = data92.binding;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.property === undefined){const err170 = {instancePath:instancePath+"/properties/" + i16+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data93.property !== undefined){if("resultVariable" !== data93.property){const err171 = {instancePath:instancePath+"/properties/" + i16+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}}var valid102 = _errs182 === errors;if(valid102){break;}}if(!valid102){const err172 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err173 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data.properties !== undefined){let data95 = data.properties;const _errs187 = errors;const _errs188 = errors;if(Array.isArray(data95)){const _errs189 = errors;const len17 = data95.length;for(let i17=0; i17<len17; i17++){let data96 = data95[i17];const _errs190 = errors;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if((data96.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data96.binding !== undefined){let data97 = data96.binding;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if((data97.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data97.type !== undefined){let data98 = data97.type;if(!((data98 === "zeebe:taskDefinition") || (data98 === "zeebe:taskDefinition:type"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}}}}var valid107 = _errs190 === errors;if(valid107){break;}}if(!valid107){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}}var valid106 = _errs188 === errors;if(valid106){const err178 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}}}if(errors > 0){const emErrs16 = [];for(const err179 of vErrors){if(((((err179.keyword !== "errorMessage") && (!err179.emUsed)) && ((err179.instancePath === instancePath) || ((err179.instancePath.indexOf(instancePath) === 0) && (err179.instancePath[instancePath.length] === "/")))) && (err179.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err179.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs16.push(err179);err179.emUsed = true;}}if(emErrs16.length){const err180 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}const emErrs17 = [];for(const err181 of vErrors){if(!err181.emUsed){emErrs17.push(err181);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid10 = _errs166 === errors;valid87 = _valid10;}if(!valid87){const err182 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}const _errs195 = errors;let valid111 = true;const _errs196 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}else {if(data.properties !== undefined){let data99 = data.properties;if(Array.isArray(data99)){const _errs198 = errors;const len18 = data99.length;for(let i18=0; i18<len18; i18++){let data100 = data99[i18];const _errs199 = errors;if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if(((data100.binding === undefined) && ("binding")) || ((data100.value === undefined) && ("value"))){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(data100.binding !== undefined){let data101 = data100.binding;const _errs200 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.property === undefined) && ("property")) || ((data101.type === undefined) && ("type"))){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data101.property !== undefined){const _errs201 = errors;if("bindingType" !== data101.property){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var valid115 = _errs201 === errors;}else {var valid115 = true;}if(valid115){if(data101.type !== undefined){let data103 = data101.type;const _errs202 = errors;if(!((((data103 === "zeebe:calledDecision") || (data103 === "zeebe:formDefinition")) || (data103 === "zeebe:calledElement")) || (data103 === "zeebe:linkedResource"))){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid115 = _errs202 === errors;}else {var valid115 = true;}}}}var valid114 = _errs200 === errors;}else {var valid114 = true;}if(valid114){if(data100.value !== undefined){const _errs203 = errors;if("versionTag" !== data100.value){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid114 = _errs203 === errors;}else {var valid114 = true;}}}}var valid113 = _errs199 === errors;if(valid113){break;}}if(!valid113){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {errors = _errs198;if(vErrors !== null){if(_errs198){vErrors.length = _errs198;}else {vErrors = null;}}}}}}}var _valid12 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid12){const _errs204 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err190 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.properties !== undefined){let data105 = data.properties;if(Array.isArray(data105)){const _errs206 = errors;const len19 = data105.length;for(let i19=0; i19<len19; i19++){let data106 = data105[i19];const _errs207 = errors;if(data106 && typeof data106 == "object" && !Array.isArray(data106)){if(data106.binding === undefined){const err191 = {instancePath:instancePath+"/properties/" + i19,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data106.binding !== undefined){let data107 = data106.binding;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.property === undefined){const err192 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data107.type === undefined){const err193 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data107.type !== undefined){let data108 = data107.type;if(!((((data108 === "zeebe:calledDecision") || (data108 === "zeebe:formDefinition")) || (data108 === "zeebe:calledElement")) || (data108 === "zeebe:linkedResource"))){const err194 = {instancePath:instancePath+"/properties/" + i19+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[7].allOf[0].then.properties.properties.contains.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data107.property !== undefined){if("versionTag" !== data107.property){const err195 = {instancePath:instancePath+"/properties/" + i19+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}}}var valid117 = _errs207 === errors;if(valid117){break;}}if(!valid117){const err196 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}}if(errors > 0){const emErrs18 = [];for(const err197 of vErrors){if(((((err197.keyword !== "errorMessage") && (!err197.emUsed)) && ((err197.instancePath === instancePath+"/properties") || ((err197.instancePath.indexOf(instancePath+"/properties") === 0) && (err197.instancePath[instancePath+"/properties".length] === "/")))) && (err197.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/0/then/properties/properties") === 0)) && (err197.schemaPath["#/allOf/1/allOf/7/allOf/0/then/properties/properties".length] === "/")){emErrs18.push(err197);err197.emUsed = true;}}if(emErrs18.length){const err198 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const emErrs19 = [];for(const err199 of vErrors){if(!err199.emUsed){emErrs19.push(err199);}}vErrors = emErrs19;errors = emErrs19.length;}}}var _valid12 = _errs204 === errors;valid111 = _valid12;}if(!valid111){const err200 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const _errs212 = errors;let valid120 = true;const _errs213 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}else {if(data.properties !== undefined){let data110 = data.properties;if(Array.isArray(data110)){const _errs215 = errors;const len20 = data110.length;for(let i20=0; i20<len20; i20++){let data111 = data110[i20];const _errs216 = errors;const _errs217 = errors;const _errs218 = errors;if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.condition === undefined) && ("condition")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}var valid123 = _errs218 === errors;if(valid123){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}if(errors === _errs216){if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.binding === undefined) && ("binding")){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(data111.binding !== undefined){let data112 = data111.binding;if(data112 && typeof data112 == "object" && !Array.isArray(data112)){if((data112.property === undefined) && ("property")){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {if(data112.type !== undefined){let data113 = data112.type;const _errs220 = errors;if(!((((data113 === "zeebe:calledDecision") || (data113 === "zeebe:calledElement")) || (data113 === "zeebe:formDefinition")) || (data113 === "zeebe:linkedResource"))){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var valid125 = _errs220 === errors;}else {var valid125 = true;}if(valid125){if(data112.property !== undefined){const _errs221 = errors;if("versionTag" !== data112.property){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var valid125 = _errs221 === errors;}else {var valid125 = true;}}}}}}}}var valid122 = _errs216 === errors;if(valid122){break;}}if(!valid122){const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}}}}}}var _valid13 = _errs213 === errors;errors = _errs212;if(vErrors !== null){if(_errs212){vErrors.length = _errs212;}else {vErrors = null;}}if(_valid13){const _errs222 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err209 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data.properties !== undefined){let data115 = data.properties;if(Array.isArray(data115)){const _errs224 = errors;const len21 = data115.length;for(let i21=0; i21<len21; i21++){let data116 = data115[i21];const _errs225 = errors;if(data116 && typeof data116 == "object" && !Array.isArray(data116)){if(data116.binding === undefined){const err210 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(data116.value === undefined){const err211 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data116.type === undefined){const err212 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data116.binding !== undefined){let data117 = data116.binding;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(data117.property === undefined){const err213 = {instancePath:instancePath+"/properties/" + i21+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data117.property !== undefined){if("bindingType" !== data117.property){const err214 = {instancePath:instancePath+"/properties/" + i21+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "bindingType"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}}}if(data116.value !== undefined){if("versionTag" !== data116.value){const err215 = {instancePath:instancePath+"/properties/" + i21+"/value",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/value/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data116.type !== undefined){if("Hidden" !== data116.type){const err216 = {instancePath:instancePath+"/properties/" + i21+"/type",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/type/const",keyword:"const",params:{allowedValue: "Hidden"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}var valid127 = _errs225 === errors;if(valid127){break;}}if(!valid127){const err217 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {errors = _errs224;if(vErrors !== null){if(_errs224){vErrors.length = _errs224;}else {vErrors = null;}}}}if(errors > 0){const emErrs20 = [];for(const err218 of vErrors){if(((((err218.keyword !== "errorMessage") && (!err218.emUsed)) && ((err218.instancePath === instancePath+"/properties") || ((err218.instancePath.indexOf(instancePath+"/properties") === 0) && (err218.instancePath[instancePath+"/properties".length] === "/")))) && (err218.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/1/then/properties/properties") === 0)) && (err218.schemaPath["#/allOf/1/allOf/7/allOf/1/then/properties/properties".length] === "/")){emErrs20.push(err218);err218.emUsed = true;}}if(emErrs20.length){const err219 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const emErrs21 = [];for(const err220 of vErrors){if(!err220.emUsed){emErrs21.push(err220);}}vErrors = emErrs21;errors = emErrs21.length;}}}var _valid13 = _errs222 === errors;valid120 = _valid13;}if(!valid120){const err221 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}const _errs231 = errors;let valid130 = true;const _errs232 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}else {if(data.properties !== undefined){let data121 = data.properties;if(Array.isArray(data121)){const _errs234 = errors;const len22 = data121.length;for(let i22=0; i22<len22; i22++){let data122 = data121[i22];const _errs235 = errors;if(data122 && typeof data122 == "object" && !Array.isArray(data122)){if((data122.binding === undefined) && ("binding")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {if(data122.binding !== undefined){let data123 = data122.binding;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(((data123.property === undefined) && ("property")) || ((data123.type === undefined) && ("type"))){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data123.property !== undefined){const _errs237 = errors;if("bindingType" !== data123.property){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var valid134 = _errs237 === errors;}else {var valid134 = true;}if(valid134){if(data123.type !== undefined){const _errs238 = errors;if("zeebe:formDefinition" !== data123.type){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid134 = _errs238 === errors;}else {var valid134 = true;}}}}}}}var valid132 = _errs235 === errors;if(valid132){break;}}if(!valid132){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}}}}}var _valid14 = _errs232 === errors;errors = _errs231;if(vErrors !== null){if(_errs231){vErrors.length = _errs231;}else {vErrors = null;}}if(_valid14){const _errs239 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err228 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data.properties !== undefined){let data126 = data.properties;if(Array.isArray(data126)){const _errs241 = errors;const len23 = data126.length;for(let i23=0; i23<len23; i23++){let data127 = data126[i23];const _errs242 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.binding === undefined){const err229 = {instancePath:instancePath+"/properties/" + i23,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if(data127.binding !== undefined){let data128 = data127.binding;if(data128 && typeof data128 == "object" && !Array.isArray(data128)){if(data128.property === undefined){const err230 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if(data128.type === undefined){const err231 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data128.type !== undefined){if("zeebe:formDefinition" !== data128.type){const err232 = {instancePath:instancePath+"/properties/" + i23+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:formDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data128.property !== undefined){if("formId" !== data128.property){const err233 = {instancePath:instancePath+"/properties/" + i23+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "formId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}}}var valid136 = _errs242 === errors;if(valid136){break;}}if(!valid136){const err234 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs241;if(vErrors !== null){if(_errs241){vErrors.length = _errs241;}else {vErrors = null;}}}}if(errors > 0){const emErrs22 = [];for(const err235 of vErrors){if(((((err235.keyword !== "errorMessage") && (!err235.emUsed)) && ((err235.instancePath === instancePath+"/properties") || ((err235.instancePath.indexOf(instancePath+"/properties") === 0) && (err235.instancePath[instancePath+"/properties".length] === "/")))) && (err235.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/2/then/properties/properties") === 0)) && (err235.schemaPath["#/allOf/1/allOf/7/allOf/2/then/properties/properties".length] === "/")){emErrs22.push(err235);err235.emUsed = true;}}if(emErrs22.length){const err236 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const emErrs23 = [];for(const err237 of vErrors){if(!err237.emUsed){emErrs23.push(err237);}}vErrors = emErrs23;errors = emErrs23.length;}}}var _valid14 = _errs239 === errors;valid130 = _valid14;}if(!valid130){const err238 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}const _errs247 = errors;let valid139 = true;const _errs248 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {if(data.properties !== undefined){let data131 = data.properties;if(Array.isArray(data131)){const _errs250 = errors;const len24 = data131.length;for(let i24=0; i24<len24; i24++){let data132 = data131[i24];const _errs251 = errors;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if((data132.binding === undefined) && ("binding")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data132.binding !== undefined){let data133 = data132.binding;if(data133 && typeof data133 == "object" && !Array.isArray(data133)){if(((data133.property === undefined) && ("property")) || ((data133.type === undefined) && ("type"))){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data133.property !== undefined){const _errs253 = errors;if("formId" !== data133.property){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var valid143 = _errs253 === errors;}else {var valid143 = true;}if(valid143){if(data133.type !== undefined){const _errs254 = errors;if("zeebe:formDefinition" !== data133.type){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}var valid143 = _errs254 === errors;}else {var valid143 = true;}}}}}}}var valid141 = _errs251 === errors;if(valid141){break;}}if(!valid141){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {errors = _errs250;if(vErrors !== null){if(_errs250){vErrors.length = _errs250;}else {vErrors = null;}}}}}}}var _valid15 = _errs248 === errors;errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}if(_valid15){const _errs255 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err245 = {instancePath,schemaPath:"#/allOf/1/allOf/8/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data.properties !== undefined){let data136 = data.properties;const _errs257 = errors;const _errs258 = errors;if(Array.isArray(data136)){const _errs259 = errors;const len25 = data136.length;for(let i25=0; i25<len25; i25++){let data137 = data136[i25];const _errs260 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if((data137.binding === undefined) && ("binding")){const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(data137.binding !== undefined){let data138 = data137.binding;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(((data138.property === undefined) && ("property")) || ((data138.type === undefined) && ("type"))){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data138.type !== undefined){const _errs262 = errors;if("zeebe:formDefinition" !== data138.type){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}var valid148 = _errs262 === errors;}else {var valid148 = true;}if(valid148){if(data138.property !== undefined){const _errs263 = errors;if("externalReference" !== data138.property){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var valid148 = _errs263 === errors;}else {var valid148 = true;}}}}}}}var valid146 = _errs260 === errors;if(valid146){break;}}if(!valid146){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}}var valid145 = _errs258 === errors;if(valid145){const err251 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err252 of vErrors){if(((((err252.keyword !== "errorMessage") && (!err252.emUsed)) && ((err252.instancePath === instancePath+"/properties") || ((err252.instancePath.indexOf(instancePath+"/properties") === 0) && (err252.instancePath[instancePath+"/properties".length] === "/")))) && (err252.schemaPath.indexOf("#/allOf/1/allOf/8/then/properties/properties") === 0)) && (err252.schemaPath["#/allOf/1/allOf/8/then/properties/properties".length] === "/")){emErrs24.push(err252);err252.emUsed = true;}}if(emErrs24.length){const err253 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"\"formId\" and \"externalReference\" cannot be used together"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}const emErrs25 = [];for(const err254 of vErrors){if(!err254.emUsed){emErrs25.push(err254);}}vErrors = emErrs25;errors = emErrs25.length;}}}var _valid15 = _errs255 === errors;valid139 = _valid15;}if(!valid139){const err255 = {instancePath,schemaPath:"#/allOf/1/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}const _errs266 = errors;let valid150 = true;const _errs267 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err256 = {};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {if(data.properties !== undefined){let data141 = data.properties;if(Array.isArray(data141)){const _errs269 = errors;const len26 = data141.length;for(let i26=0; i26<len26; i26++){let data142 = data141[i26];const _errs270 = errors;if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if((data142.binding === undefined) && ("binding")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data142.binding !== undefined){let data143 = data142.binding;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if((data143.type === undefined) && ("type")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data143.type !== undefined){if("zeebe:adHoc" !== data143.type){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}}}}}}var valid152 = _errs270 === errors;if(valid152){break;}}if(!valid152){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs269;if(vErrors !== null){if(_errs269){vErrors.length = _errs269;}else {vErrors = null;}}}}}}}var _valid16 = _errs267 === errors;errors = _errs266;if(vErrors !== null){if(_errs266){vErrors.length = _errs266;}else {vErrors = null;}}if(_valid16){const _errs273 = errors;const _errs274 = errors;let valid155 = false;const _errs275 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err261 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(data.elementType !== undefined){let data145 = data.elementType;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.value === undefined){const err262 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data145.value !== undefined){if("bpmn:AdHocSubProcess" !== data145.value){const err263 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:AdHocSubProcess"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}}}var _valid17 = _errs275 === errors;valid155 = valid155 || _valid17;if(!valid155){const _errs278 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err264 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err265 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}var _valid17 = _errs278 === errors;valid155 = valid155 || _valid17;}if(!valid155){const err266 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}else {errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}}var _valid16 = _errs273 === errors;valid150 = _valid16;}if(!valid150){const err267 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const _errs282 = errors;let valid159 = true;const _errs283 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data.properties !== undefined){let data148 = data.properties;if(Array.isArray(data148)){const _errs285 = errors;const len27 = data148.length;for(let i27=0; i27<len27; i27++){let data149 = data148[i27];const _errs286 = errors;if(data149 && typeof data149 == "object" && !Array.isArray(data149)){if((data149.binding === undefined) && ("binding")){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {if(data149.binding !== undefined){let data150 = data149.binding;if(data150 && typeof data150 == "object" && !Array.isArray(data150)){if(((data150.type === undefined) && ("type")) || ((data150.property === undefined) && ("property"))){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {if(data150.type !== undefined){const _errs288 = errors;if("zeebe:adHoc" !== data150.type){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var valid163 = _errs288 === errors;}else {var valid163 = true;}if(valid163){if(data150.property !== undefined){let data152 = data150.property;const _errs289 = errors;if(!((data152 === "outputCollection") || (data152 === "outputElement"))){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var valid163 = _errs289 === errors;}else {var valid163 = true;}}}}}}}var valid161 = _errs286 === errors;if(valid161){break;}}if(!valid161){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}}}}}}var _valid18 = _errs283 === errors;errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}if(_valid18){const _errs290 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err274 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data.properties !== undefined){let data153 = data.properties;if(Array.isArray(data153)){const _errs293 = errors;const len28 = data153.length;for(let i28=0; i28<len28; i28++){let data154 = data153[i28];const _errs294 = errors;if(data154 && typeof data154 == "object" && !Array.isArray(data154)){if(data154.binding === undefined){const err275 = {instancePath:instancePath+"/properties/" + i28,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if(data154.binding !== undefined){let data155 = data154.binding;if(data155 && typeof data155 == "object" && !Array.isArray(data155)){if(data155.type === undefined){const err276 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if(data155.property === undefined){const err277 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data155.type !== undefined){if("zeebe:adHoc" !== data155.type){const err278 = {instancePath:instancePath+"/properties/" + i28+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data155.property !== undefined){if("outputElement" !== data155.property){const err279 = {instancePath:instancePath+"/properties/" + i28+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}}}}var valid166 = _errs294 === errors;if(valid166){break;}}if(!valid166){const err280 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {errors = _errs293;if(vErrors !== null){if(_errs293){vErrors.length = _errs293;}else {vErrors = null;}}}}if(errors > 0){const emErrs26 = [];for(const err281 of vErrors){if(((((err281.keyword !== "errorMessage") && (!err281.emUsed)) && ((err281.instancePath === instancePath+"/properties") || ((err281.instancePath.indexOf(instancePath+"/properties") === 0) && (err281.instancePath[instancePath+"/properties".length] === "/")))) && (err281.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0") === 0)) && (err281.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0".length] === "/")){emErrs26.push(err281);err281.emUsed = true;}}if(emErrs26.length){const err282 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}const emErrs27 = [];for(const err283 of vErrors){if(!err283.emUsed){emErrs27.push(err283);}}vErrors = emErrs27;errors = emErrs27.length;}if(Array.isArray(data153)){const _errs299 = errors;const len29 = data153.length;for(let i29=0; i29<len29; i29++){let data158 = data153[i29];const _errs300 = errors;if(data158 && typeof data158 == "object" && !Array.isArray(data158)){if(data158.binding === undefined){const err284 = {instancePath:instancePath+"/properties/" + i29,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data158.binding !== undefined){let data159 = data158.binding;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(data159.type === undefined){const err285 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data159.property === undefined){const err286 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data159.type !== undefined){if("zeebe:adHoc" !== data159.type){const err287 = {instancePath:instancePath+"/properties/" + i29+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(data159.property !== undefined){if("outputCollection" !== data159.property){const err288 = {instancePath:instancePath+"/properties/" + i29+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputCollection"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}}}}var valid169 = _errs300 === errors;if(valid169){break;}}if(!valid169){const err289 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs299;if(vErrors !== null){if(_errs299){vErrors.length = _errs299;}else {vErrors = null;}}}}if(errors > 0){const emErrs28 = [];for(const err290 of vErrors){if(((((err290.keyword !== "errorMessage") && (!err290.emUsed)) && ((err290.instancePath === instancePath+"/properties") || ((err290.instancePath.indexOf(instancePath+"/properties") === 0) && (err290.instancePath[instancePath+"/properties".length] === "/")))) && (err290.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1") === 0)) && (err290.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1".length] === "/")){emErrs28.push(err290);err290.emUsed = true;}}if(emErrs28.length){const err291 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}const emErrs29 = [];for(const err292 of vErrors){if(!err292.emUsed){emErrs29.push(err292);}}vErrors = emErrs29;errors = emErrs29.length;}}}var _valid18 = _errs290 === errors;valid159 = _valid18;}if(!valid159){const err293 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}const _errs306 = errors;let valid172 = true;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid174 = false;const _errs310 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {if(data.elementType !== undefined){let data162 = data.elementType;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if((data162.value === undefined) && ("value")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data162.value !== undefined){if("bpmn:AdHocSubProcess" !== data162.value){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}}}}}var _valid20 = _errs310 === errors;valid174 = valid174 || _valid20;if(!valid174){const _errs313 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[2].if.allOf[0].anyOf[1].properties.appliesTo.const)){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid20 = _errs313 === errors;valid174 = valid174 || _valid20;}if(!valid174){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid173 = _errs308 === errors;if(valid173){const _errs315 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}else {if(data.properties !== undefined){let data165 = data.properties;if(Array.isArray(data165)){const _errs317 = errors;const len30 = data165.length;for(let i30=0; i30<len30; i30++){let data166 = data165[i30];const _errs318 = errors;if(errors === _errs318){if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if((data166.binding === undefined) && ("binding")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {if(data166.binding !== undefined){let data167 = data166.binding;if(data167 && typeof data167 == "object" && !Array.isArray(data167)){if(((data167.type === undefined) && ("type")) || ((data167.property === undefined) && ("property"))){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {if(data167.type !== undefined){const _errs321 = errors;if("zeebe:taskDefinition" !== data167.type){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var valid181 = _errs321 === errors;}else {var valid181 = true;}if(valid181){if(data167.property !== undefined){const _errs322 = errors;if("type" !== data167.property){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid181 = _errs322 === errors;}else {var valid181 = true;}}}}}}}else {const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}var valid179 = _errs318 === errors;if(valid179){break;}}if(!valid179){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}}}}var valid173 = _errs315 === errors;}var _valid19 = _errs307 === errors;errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}if(_valid19){const _errs323 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err307 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data.properties !== undefined){let data170 = data.properties;if(Array.isArray(data170)){const len31 = data170.length;for(let i31=0; i31<len31; i31++){let data171 = data170[i31];const _errs327 = errors;const _errs328 = errors;if(data171 && typeof data171 == "object" && !Array.isArray(data171)){if((data171.binding === undefined) && ("binding")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}else {if(data171.binding !== undefined){let data172 = data171.binding;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(((data172.type === undefined) && ("type")) || ((data172.name === undefined) && ("name"))){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {if(data172.type !== undefined){const _errs330 = errors;if("property" !== data172.type){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}var valid188 = _errs330 === errors;}else {var valid188 = true;}if(valid188){if(data172.name !== undefined){let data174 = data172.name;const _errs331 = errors;if(!((data174 === "cancelRemainingInstances") || (data174 === "completionCondition"))){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var valid188 = _errs331 === errors;}else {var valid188 = true;}}}}}}}var valid186 = _errs328 === errors;if(valid186){const err312 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {errors = _errs327;if(vErrors !== null){if(_errs327){vErrors.length = _errs327;}else {vErrors = null;}}}if(errors > 0){const emErrs30 = [];for(const err313 of vErrors){if(((((err313.keyword !== "errorMessage") && (!err313.emUsed)) && ((err313.instancePath === instancePath+"/properties/" + i31) || ((err313.instancePath.indexOf(instancePath+"/properties/" + i31) === 0) && (err313.instancePath[instancePath+"/properties/" + i31.length] === "/")))) && (err313.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items") === 0)) && (err313.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items".length] === "/")){emErrs30.push(err313);err313.emUsed = true;}}if(emErrs30.length){const err314 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs30},message:"Property " + JSON.stringify(data171 && data171.binding && data171.binding.name) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}const emErrs31 = [];for(const err315 of vErrors){if(!err315.emUsed){emErrs31.push(err315);}}vErrors = emErrs31;errors = emErrs31.length;}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err316 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data.properties !== undefined){let data175 = data.properties;if(Array.isArray(data175)){const len32 = data175.length;for(let i32=0; i32<len32; i32++){let data176 = data175[i32];const _errs335 = errors;const _errs336 = errors;if(data176 && typeof data176 == "object" && !Array.isArray(data176)){if((data176.binding === undefined) && ("binding")){const err317 = {};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}else {if(data176.binding !== undefined){let data177 = data176.binding;if(data177 && typeof data177 == "object" && !Array.isArray(data177)){if(((data177.type === undefined) && ("type")) || ((data177.property === undefined) && ("property"))){const err318 = {};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}else {if(data177.type !== undefined){const _errs338 = errors;if("zeebe:adHoc" !== data177.type){const err319 = {};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var valid194 = _errs338 === errors;}else {var valid194 = true;}if(valid194){if(data177.property !== undefined){const _errs339 = errors;if("activeElementsCollection" !== data177.property){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var valid194 = _errs339 === errors;}else {var valid194 = true;}}}}}}}var valid192 = _errs336 === errors;if(valid192){const err321 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}if(errors > 0){const emErrs32 = [];for(const err322 of vErrors){if(((((err322.keyword !== "errorMessage") && (!err322.emUsed)) && ((err322.instancePath === instancePath+"/properties/" + i32) || ((err322.instancePath.indexOf(instancePath+"/properties/" + i32) === 0) && (err322.instancePath[instancePath+"/properties/" + i32.length] === "/")))) && (err322.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items") === 0)) && (err322.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items".length] === "/")){emErrs32.push(err322);err322.emUsed = true;}}if(emErrs32.length){const err323 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs32},message:"Property " + JSON.stringify(data176 && data176.binding && data176.binding.property) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}const emErrs33 = [];for(const err324 of vErrors){if(!err324.emUsed){emErrs33.push(err324);}}vErrors = emErrs33;errors = emErrs33.length;}}}}}var _valid19 = _errs323 === errors;valid172 = _valid19;}if(!valid172){const err325 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const _errs342 = errors;let valid196 = true;const _errs343 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}else {if(data.properties !== undefined){let data180 = data.properties;if(Array.isArray(data180)){const _errs345 = errors;const len33 = data180.length;for(let i33=0; i33<len33; i33++){let data181 = data180[i33];const _errs346 = errors;if(data181 && typeof data181 == "object" && !Array.isArray(data181)){if((data181.binding === undefined) && ("binding")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data181.binding !== undefined){let data182 = data181.binding;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if((data182.type === undefined) && ("type")){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data182.type !== undefined){if("bpmn:Signal#property" !== data182.type){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}}}}}var valid198 = _errs346 === errors;if(valid198){break;}}if(!valid198){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}else {errors = _errs345;if(vErrors !== null){if(_errs345){vErrors.length = _errs345;}else {vErrors = null;}}}}}}}var _valid21 = _errs343 === errors;errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}if(_valid21){const _errs349 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err331 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(data.elementType !== undefined){let data184 = data.elementType;if(data184 && typeof data184 == "object" && !Array.isArray(data184)){if(data184.eventDefinition === undefined){const err332 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data184.value === undefined){const err333 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data184.value !== undefined){let data185 = data184.value;if(!(((((data185 === "bpmn:StartEvent") || (data185 === "bpmn:IntermediateCatchEvent")) || (data185 === "bpmn:IntermediateThrowEvent")) || (data185 === "bpmn:BoundaryEvent")) || (data185 === "bpmn:EndEvent"))){const err334 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[10].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}if(data184.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data184.eventDefinition){const err335 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:SignalEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}}}var _valid21 = _errs349 === errors;valid196 = _valid21;}if(!valid196){const err336 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}const _errs354 = errors;let valid203 = true;const _errs355 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}else {if(data.elementType !== undefined){let data187 = data.elementType;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if((data187.eventDefinition === undefined) && ("eventDefinition")){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data187.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data187.eventDefinition){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}}}}}}var _valid22 = _errs355 === errors;errors = _errs354;if(vErrors !== null){if(_errs354){vErrors.length = _errs354;}else {vErrors = null;}}if(_valid22){const _errs358 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data189 = data.properties;if(Array.isArray(data189)){const _errs360 = errors;const len34 = data189.length;for(let i34=0; i34<len34; i34++){let data190 = data189[i34];const _errs361 = errors;if(data190 && typeof data190 == "object" && !Array.isArray(data190)){if(data190.binding === undefined){const err340 = {instancePath:instancePath+"/properties/" + i34,schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data190.binding !== undefined){let data191 = data190.binding;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.type === undefined){const err341 = {instancePath:instancePath+"/properties/" + i34+"/binding",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data191.type !== undefined){if("bpmn:Signal#property" !== data191.type){const err342 = {instancePath:instancePath+"/properties/" + i34+"/binding/type",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:Signal#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}}}}var valid207 = _errs361 === errors;if(valid207){break;}}if(!valid207){const err343 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}else {errors = _errs360;if(vErrors !== null){if(_errs360){vErrors.length = _errs360;}else {vErrors = null;}}}}if(errors > 0){const emErrs34 = [];for(const err344 of vErrors){if(((((err344.keyword !== "errorMessage") && (!err344.emUsed)) && ((err344.instancePath === instancePath+"/properties") || ((err344.instancePath.indexOf(instancePath+"/properties") === 0) && (err344.instancePath[instancePath+"/properties".length] === "/")))) && (err344.schemaPath.indexOf("#/allOf/1/allOf/10/allOf/1/then/properties/properties") === 0)) && (err344.schemaPath["#/allOf/1/allOf/10/allOf/1/then/properties/properties".length] === "/")){emErrs34.push(err344);err344.emUsed = true;}}if(emErrs34.length){const err345 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs34},message:"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}const emErrs35 = [];for(const err346 of vErrors){if(!err346.emUsed){emErrs35.push(err346);}}vErrors = emErrs35;errors = emErrs35.length;}}}var _valid22 = _errs358 === errors;valid203 = _valid22;}if(!valid203){const err347 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}const _errs366 = errors;let valid211 = true;const _errs367 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}else {if(data.properties !== undefined){let data193 = data.properties;if(Array.isArray(data193)){const _errs369 = errors;const len35 = data193.length;for(let i35=0; i35<len35; i35++){let data194 = data193[i35];const _errs370 = errors;if(data194 && typeof data194 == "object" && !Array.isArray(data194)){if((data194.binding === undefined) && ("binding")){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}else {if(data194.binding !== undefined){let data195 = data194.binding;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(((data195.type === undefined) && ("type")) || ((data195.name === undefined) && ("name"))){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}else {if(data195.type !== undefined){const _errs372 = errors;if("bpmn:TimerEventDefinition#property" !== data195.type){const err351 = {};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var valid215 = _errs372 === errors;}else {var valid215 = true;}if(valid215){if(data195.name !== undefined){let data197 = data195.name;const _errs373 = errors;if(!(((data197 === "timeDate") || (data197 === "timeCycle")) || (data197 === "timeDuration"))){const err352 = {};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid215 = _errs373 === errors;}else {var valid215 = true;}}}}}}}var valid213 = _errs370 === errors;if(valid213){break;}}if(!valid213){const err353 = {};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {errors = _errs369;if(vErrors !== null){if(_errs369){vErrors.length = _errs369;}else {vErrors = null;}}}}}}}var _valid23 = _errs367 === errors;errors = _errs366;if(vErrors !== null){if(_errs366){vErrors.length = _errs366;}else {vErrors = null;}}if(_valid23){const _errs374 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err354 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(data.elementType !== undefined){let data198 = data.elementType;if(data198 && typeof data198 == "object" && !Array.isArray(data198)){if(data198.eventDefinition === undefined){const err355 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data198.value === undefined){const err356 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if(data198.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data198.eventDefinition){const err357 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}if(data198.value !== undefined){let data200 = data198.value;if(!(((data200 === "bpmn:StartEvent") || (data200 === "bpmn:IntermediateCatchEvent")) || (data200 === "bpmn:BoundaryEvent"))){const err358 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}}if(errors > 0){const emErrors6 = {"required":{"eventDefinition":[]}};const templates6 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err359 of vErrors){if((((((err359.keyword !== "errorMessage") && (!err359.emUsed)) && (err359.instancePath === instancePath+"/elementType")) && (err359.keyword in emErrors6)) && (err359.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/0/then/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err359.schemaPath.slice(54)))){emPropParams3 = obj0[err359.keyword];emParamsErrors3 = emErrors6[err359.keyword][err359.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err359);err359.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err360 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}}const emErrs36 = [];for(const err361 of vErrors){if(!err361.emUsed){emErrs36.push(err361);}}vErrors = emErrs36;errors = emErrs36.length;}}}var _valid23 = _errs374 === errors;valid211 = _valid23;}if(!valid211){const err362 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}const _errs379 = errors;let valid218 = true;const _errs380 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {if(data.elementType !== undefined){let data201 = data.elementType;if(data201 && typeof data201 == "object" && !Array.isArray(data201)){if((data201.eventDefinition === undefined) && ("eventDefinition")){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data201.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data201.eventDefinition){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}}}}}var _valid24 = _errs380 === errors;errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}if(_valid24){const _errs383 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err366 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data.properties !== undefined){let data203 = data.properties;const _errs385 = errors;let valid222 = false;let passing0 = null;const _errs386 = errors;if(Array.isArray(data203)){const _errs387 = errors;const len36 = data203.length;for(let i36=0; i36<len36; i36++){let data204 = data203[i36];const _errs388 = errors;if(data204 && typeof data204 == "object" && !Array.isArray(data204)){if(data204.binding === undefined){const err367 = {instancePath:instancePath+"/properties/" + i36,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data204.binding !== undefined){let data205 = data204.binding;if(data205 && typeof data205 == "object" && !Array.isArray(data205)){if(data205.type === undefined){const err368 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data205.name === undefined){const err369 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data205.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data205.type){const err370 = {instancePath:instancePath+"/properties/" + i36+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(data205.name !== undefined){if("timeDate" !== data205.name){const err371 = {instancePath:instancePath+"/properties/" + i36+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDate"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}}}var valid223 = _errs388 === errors;if(valid223){break;}}if(!valid223){const err372 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {errors = _errs387;if(vErrors !== null){if(_errs387){vErrors.length = _errs387;}else {vErrors = null;}}}}var _valid25 = _errs386 === errors;if(_valid25){valid222 = true;passing0 = 0;}const _errs393 = errors;if(Array.isArray(data203)){const _errs394 = errors;const len37 = data203.length;for(let i37=0; i37<len37; i37++){let data208 = data203[i37];const _errs395 = errors;if(data208 && typeof data208 == "object" && !Array.isArray(data208)){if(data208.binding === undefined){const err373 = {instancePath:instancePath+"/properties/" + i37,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}if(data208.binding !== undefined){let data209 = data208.binding;if(data209 && typeof data209 == "object" && !Array.isArray(data209)){if(data209.type === undefined){const err374 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data209.name === undefined){const err375 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data209.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data209.type){const err376 = {instancePath:instancePath+"/properties/" + i37+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(data209.name !== undefined){if("timeCycle" !== data209.name){const err377 = {instancePath:instancePath+"/properties/" + i37+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeCycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}}}}var valid227 = _errs395 === errors;if(valid227){break;}}if(!valid227){const err378 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}else {errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}}}var _valid25 = _errs393 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 1];}else {if(_valid25){valid222 = true;passing0 = 1;}const _errs400 = errors;if(Array.isArray(data203)){const _errs401 = errors;const len38 = data203.length;for(let i38=0; i38<len38; i38++){let data212 = data203[i38];const _errs402 = errors;if(data212 && typeof data212 == "object" && !Array.isArray(data212)){if(data212.binding === undefined){const err379 = {instancePath:instancePath+"/properties/" + i38,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if(data212.binding !== undefined){let data213 = data212.binding;if(data213 && typeof data213 == "object" && !Array.isArray(data213)){if(data213.type === undefined){const err380 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data213.name === undefined){const err381 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data213.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data213.type){const err382 = {instancePath:instancePath+"/properties/" + i38+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}if(data213.name !== undefined){if("timeDuration" !== data213.name){const err383 = {instancePath:instancePath+"/properties/" + i38+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDuration"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}}}}var valid231 = _errs402 === errors;if(valid231){break;}}if(!valid231){const err384 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/2/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {errors = _errs401;if(vErrors !== null){if(_errs401){vErrors.length = _errs401;}else {vErrors = null;}}}}var _valid25 = _errs400 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 2];}else {if(_valid25){valid222 = true;passing0 = 2;}}}if(!valid222){const err385 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs385;if(vErrors !== null){if(_errs385){vErrors.length = _errs385;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err386 of vErrors){if(((((err386.keyword !== "errorMessage") && (!err386.emUsed)) && ((err386.instancePath === instancePath+"/properties") || ((err386.instancePath.indexOf(instancePath+"/properties") === 0) && (err386.instancePath[instancePath+"/properties".length] === "/")))) && (err386.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/1/then/properties/properties") === 0)) && (err386.schemaPath["#/allOf/1/allOf/11/allOf/1/then/properties/properties".length] === "/")){emErrs37.push(err386);err386.emUsed = true;}}if(emErrs37.length){const err387 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}const emErrs38 = [];for(const err388 of vErrors){if(!err388.emUsed){emErrs38.push(err388);}}vErrors = emErrs38;errors = emErrs38.length;}}}var _valid24 = _errs383 === errors;valid218 = _valid24;}if(!valid218){const err389 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}const _errs408 = errors;let valid235 = true;const _errs409 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(data.elementType !== undefined){let data216 = data.elementType;if(data216 && typeof data216 == "object" && !Array.isArray(data216)){if(((data216.eventDefinition === undefined) && ("eventDefinition")) || ((data216.value === undefined) && ("value"))){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {if(data216.eventDefinition !== undefined){const _errs411 = errors;if("bpmn:TimerEventDefinition" !== data216.eventDefinition){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}var valid237 = _errs411 === errors;}else {var valid237 = true;}if(valid237){if(data216.value !== undefined){const _errs412 = errors;if("bpmn:IntermediateCatchEvent" !== data216.value){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid237 = _errs412 === errors;}else {var valid237 = true;}}}}}}}var _valid26 = _errs409 === errors;errors = _errs408;if(vErrors !== null){if(_errs408){vErrors.length = _errs408;}else {vErrors = null;}}if(_valid26){const _errs413 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data219 = data.properties;const _errs415 = errors;const _errs416 = errors;if(Array.isArray(data219)){const _errs417 = errors;const len39 = data219.length;for(let i39=0; i39<len39; i39++){let data220 = data219[i39];const _errs418 = errors;if(data220 && typeof data220 == "object" && !Array.isArray(data220)){if((data220.binding === undefined) && ("binding")){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}else {if(data220.binding !== undefined){let data221 = data220.binding;if(data221 && typeof data221 == "object" && !Array.isArray(data221)){if(((data221.type === undefined) && ("type")) || ((data221.name === undefined) && ("name"))){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {if(data221.type !== undefined){const _errs421 = errors;if("bpmn:TimerEventDefinition#property" !== data221.type){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}var valid243 = _errs421 === errors;}else {var valid243 = true;}if(valid243){if(data221.name !== undefined){const _errs422 = errors;if("timeCycle" !== data221.name){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}var valid243 = _errs422 === errors;}else {var valid243 = true;}}}}}}}var valid240 = _errs418 === errors;if(valid240){break;}}if(!valid240){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}var valid239 = _errs416 === errors;if(valid239){const err399 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/2/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}}}var _valid26 = _errs413 === errors;valid235 = _valid26;}if(!valid235){const err400 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}const _errs425 = errors;let valid245 = true;const _errs426 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {if(data.properties !== undefined){let data224 = data.properties;if(Array.isArray(data224)){const _errs428 = errors;const len40 = data224.length;for(let i40=0; i40<len40; i40++){let data225 = data224[i40];const _errs429 = errors;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(((data225.binding === undefined) && ("binding")) || ((data225.value === undefined) && ("value"))){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}else {if(data225.binding !== undefined){let data226 = data225.binding;const _errs430 = errors;if(data226 && typeof data226 == "object" && !Array.isArray(data226)){if(((data226.property === undefined) && ("property")) || ((data226.type === undefined) && ("type"))){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {if(data226.type !== undefined){const _errs431 = errors;if("zeebe:calledElement" !== data226.type){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid249 = _errs431 === errors;}else {var valid249 = true;}if(valid249){if(data226.property !== undefined){const _errs432 = errors;if("propagateAllChildVariables" !== data226.property){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}var valid249 = _errs432 === errors;}else {var valid249 = true;}}}}var valid248 = _errs430 === errors;}else {var valid248 = true;}if(valid248){if(data225.value !== undefined){const _errs433 = errors;if(true !== data225.value){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}var valid248 = _errs433 === errors;}else {var valid248 = true;}}}}var valid247 = _errs429 === errors;if(valid247){break;}}if(!valid247){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {errors = _errs428;if(vErrors !== null){if(_errs428){vErrors.length = _errs428;}else {vErrors = null;}}}}}}}var _valid27 = _errs426 === errors;errors = _errs425;if(vErrors !== null){if(_errs425){vErrors.length = _errs425;}else {vErrors = null;}}if(_valid27){const _errs434 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err408 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data.properties !== undefined){let data230 = data.properties;const _errs436 = errors;const _errs437 = errors;if(Array.isArray(data230)){const _errs438 = errors;const len41 = data230.length;for(let i41=0; i41<len41; i41++){let data231 = data230[i41];const _errs439 = errors;if(data231 && typeof data231 == "object" && !Array.isArray(data231)){if((data231.binding === undefined) && ("binding")){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}else {if(data231.binding !== undefined){let data232 = data231.binding;if(data232 && typeof data232 == "object" && !Array.isArray(data232)){if((data232.type === undefined) && ("type")){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}else {if(data232.type !== undefined){if("zeebe:output" !== data232.type){const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}}}}}var valid252 = _errs439 === errors;if(valid252){break;}}if(!valid252){const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}else {errors = _errs438;if(vErrors !== null){if(_errs438){vErrors.length = _errs438;}else {vErrors = null;}}}}var valid251 = _errs437 === errors;if(valid251){const err413 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/0/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}else {errors = _errs436;if(vErrors !== null){if(_errs436){vErrors.length = _errs436;}else {vErrors = null;}}}if(errors > 0){const emErrs39 = [];for(const err414 of vErrors){if(((((err414.keyword !== "errorMessage") && (!err414.emUsed)) && ((err414.instancePath === instancePath+"/properties") || ((err414.instancePath.indexOf(instancePath+"/properties") === 0) && (err414.instancePath[instancePath+"/properties".length] === "/")))) && (err414.schemaPath.indexOf("#/allOf/1/allOf/12/allOf/0/then/properties/properties") === 0)) && (err414.schemaPath["#/allOf/1/allOf/12/allOf/0/then/properties/properties".length] === "/")){emErrs39.push(err414);err414.emUsed = true;}}if(emErrs39.length){const err415 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}const emErrs40 = [];for(const err416 of vErrors){if(!err416.emUsed){emErrs40.push(err416);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid27 = _errs434 === errors;valid245 = _valid27;}if(!valid245){const err417 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}const _errs443 = errors;let valid255 = true;const _errs444 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.entriesVisible === undefined) && ("entriesVisible")){const err418 = {};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}else {if(data.entriesVisible !== undefined){let data234 = data.entriesVisible;const _errs445 = errors;if(errors === _errs445){if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if((data234.outputs === undefined) && ("outputs")){const err419 = {};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {if(data234.outputs !== undefined){if(true !== data234.outputs){const err420 = {};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}}else {const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}}}}var _valid28 = _errs444 === errors;errors = _errs443;if(vErrors !== null){if(_errs443){vErrors.length = _errs443;}else {vErrors = null;}}if(_valid28){const _errs448 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data236 = data.properties;const _errs450 = errors;const _errs451 = errors;if(Array.isArray(data236)){const _errs452 = errors;const len42 = data236.length;for(let i42=0; i42<len42; i42++){let data237 = data236[i42];const _errs453 = errors;if(data237 && typeof data237 == "object" && !Array.isArray(data237)){if((data237.binding === undefined) && ("binding")){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}else {if(data237.binding !== undefined){let data238 = data237.binding;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if((data238.type === undefined) && ("type")){const err423 = {};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(data238.type !== undefined){if("zeebe:output" !== data238.type){const err424 = {};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}}}}}}var valid260 = _errs453 === errors;if(valid260){break;}}if(!valid260){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}else {errors = _errs452;if(vErrors !== null){if(_errs452){vErrors.length = _errs452;}else {vErrors = null;}}}}var valid259 = _errs451 === errors;if(valid259){const err426 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/1/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}else {errors = _errs450;if(vErrors !== null){if(_errs450){vErrors.length = _errs450;}else {vErrors = null;}}}if(errors > 0){const emErrs41 = [];for(const err427 of vErrors){if(((((err427.keyword !== "errorMessage") && (!err427.emUsed)) && ((err427.instancePath === instancePath+"/properties") || ((err427.instancePath.indexOf(instancePath+"/properties") === 0) && (err427.instancePath[instancePath+"/properties".length] === "/")))) && (err427.schemaPath.indexOf("#/allOf/1/allOf/12/allOf/1/then/properties/properties") === 0)) && (err427.schemaPath["#/allOf/1/allOf/12/allOf/1/then/properties/properties".length] === "/")){emErrs41.push(err427);err427.emUsed = true;}}if(emErrs41.length){const err428 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"Binding with `type`=`zeebe:output` must not be used when `entriesVisible.outputs` is set to `true`"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const emErrs42 = [];for(const err429 of vErrors){if(!err429.emUsed){emErrs42.push(err429);}}vErrors = emErrs42;errors = emErrs42.length;}}}var _valid28 = _errs448 === errors;valid255 = _valid28;}if(!valid255){const err430 = {instancePath,schemaPath:"#/allOf/1/allOf/12/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}const _errs458 = errors;let valid264 = true;const _errs459 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {if(data.properties !== undefined){let data240 = data.properties;if(Array.isArray(data240)){const _errs461 = errors;const len43 = data240.length;for(let i43=0; i43<len43; i43++){let data241 = data240[i43];const _errs462 = errors;if(data241 && typeof data241 == "object" && !Array.isArray(data241)){if((data241.binding === undefined) && ("binding")){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {if(data241.binding !== undefined){let data242 = data241.binding;if(data242 && typeof data242 == "object" && !Array.isArray(data242)){if((data242.type === undefined) && ("type")){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {if(data242.type !== undefined){if("zeebe:taskListener" !== data242.type){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}}}}}}var valid266 = _errs462 === errors;if(valid266){break;}}if(!valid266){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}else {errors = _errs461;if(vErrors !== null){if(_errs461){vErrors.length = _errs461;}else {vErrors = null;}}}}}}}var _valid29 = _errs459 === errors;errors = _errs458;if(vErrors !== null){if(_errs458){vErrors.length = _errs458;}else {vErrors = null;}}if(_valid29){const _errs465 = errors;const _errs466 = errors;let valid269 = false;const _errs467 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err436 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data.elementType !== undefined){let data244 = data.elementType;if(data244 && typeof data244 == "object" && !Array.isArray(data244)){if(data244.value === undefined){const err437 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data244.value !== undefined){if("bpmn:UserTask" !== data244.value){const err438 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}}}}var _valid30 = _errs467 === errors;valid269 = valid269 || _valid30;if(!valid269){const _errs470 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err439 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[13].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err440 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[13].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}}var _valid30 = _errs470 === errors;valid269 = valid269 || _valid30;}if(!valid269){const err441 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {errors = _errs466;if(vErrors !== null){if(_errs466){vErrors.length = _errs466;}else {vErrors = null;}}}var _valid29 = _errs465 === errors;valid264 = _valid29;}if(!valid264){const err442 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}const _errs473 = errors;let valid273 = true;const _errs474 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err443 = {};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}else {if(data.properties !== undefined){let data247 = data.properties;if(Array.isArray(data247)){const _errs476 = errors;const len44 = data247.length;for(let i44=0; i44<len44; i44++){let data248 = data247[i44];const _errs477 = errors;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if((data248.binding === undefined) && ("binding")){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {if(data248.binding !== undefined){let data249 = data248.binding;if(data249 && typeof data249 == "object" && !Array.isArray(data249)){if((data249.type === undefined) && ("type")){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}else {if(data249.type !== undefined){if("zeebe:executionListener" !== data249.type){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}}}}}}var valid275 = _errs477 === errors;if(valid275){break;}}if(!valid275){const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}else {errors = _errs476;if(vErrors !== null){if(_errs476){vErrors.length = _errs476;}else {vErrors = null;}}}}}}}var _valid31 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid31){const _errs480 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.entriesVisible === undefined){const err448 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/1/then/required",keyword:"required",params:{missingProperty: "entriesVisible"},message:"must have required property '"+"entriesVisible"+"'"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if(data.entriesVisible !== undefined){let data251 = data.entriesVisible;if(data251 && typeof data251 == "object" && !Array.isArray(data251)){if(data251.executionListeners === undefined){const err449 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/required",keyword:"required",params:{missingProperty: "executionListeners"},message:"must have required property '"+"executionListeners"+"'"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data251.executionListeners !== undefined){if(false !== data251.executionListeners){const err450 = {instancePath:instancePath+"/entriesVisible/executionListeners",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/properties/executionListeners/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}else {const err451 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/1/allOf/13/allOf/1/then/properties/entriesVisible/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}}var _valid31 = _errs480 === errors;valid273 = _valid31;}if(!valid273){const err452 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}const _errs485 = errors;let valid280 = true;const _errs486 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}else {if(data.properties !== undefined){let data253 = data.properties;if(Array.isArray(data253)){const _errs488 = errors;const len45 = data253.length;for(let i45=0; i45<len45; i45++){let data254 = data253[i45];const _errs489 = errors;if(data254 && typeof data254 == "object" && !Array.isArray(data254)){if((data254.binding === undefined) && ("binding")){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {if(data254.binding !== undefined){let data255 = data254.binding;if(data255 && typeof data255 == "object" && !Array.isArray(data255)){if((data255.type === undefined) && ("type")){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}else {if(data255.type !== undefined){if("zeebe:taskListener" !== data255.type){const err456 = {};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}}}}}var valid282 = _errs489 === errors;if(valid282){break;}}if(!valid282){const err457 = {};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}else {errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}}}}}}var _valid32 = _errs486 === errors;errors = _errs485;if(vErrors !== null){if(_errs485){vErrors.length = _errs485;}else {vErrors = null;}}if(_valid32){const _errs492 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.entriesVisible !== undefined){let data257 = data.entriesVisible;if(data257 && typeof data257 == "object" && !Array.isArray(data257)){if(data257.taskListeners !== undefined){if(false !== data257.taskListeners){const err458 = {instancePath:instancePath+"/entriesVisible/taskListeners",schemaPath:"#/allOf/1/allOf/13/allOf/2/then/properties/entriesVisible/properties/taskListeners/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}}}}var _valid32 = _errs492 === errors;valid280 = _valid32;}if(!valid280){const err459 = {instancePath,schemaPath:"#/allOf/1/allOf/13/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}const _errs496 = errors;let valid287 = true;const _errs497 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}else {if(data.properties !== undefined){let data259 = data.properties;if(Array.isArray(data259)){const _errs499 = errors;const len46 = data259.length;for(let i46=0; i46<len46; i46++){let data260 = data259[i46];const _errs500 = errors;if(data260 && typeof data260 == "object" && !Array.isArray(data260)){if((data260.binding === undefined) && ("binding")){const err461 = {};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}else {if(data260.binding !== undefined){let data261 = data260.binding;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if((data261.type === undefined) && ("type")){const err462 = {};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}else {if(data261.type !== undefined){if("zeebe:jobPriorityDefinition" !== data261.type){const err463 = {};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}}}}}}var valid289 = _errs500 === errors;if(valid289){break;}}if(!valid289){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {errors = _errs499;if(vErrors !== null){if(_errs499){vErrors.length = _errs499;}else {vErrors = null;}}}}}}}var _valid33 = _errs497 === errors;errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}if(_valid33){const _errs503 = errors;const _errs504 = errors;let valid292 = false;const _errs505 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err465 = {instancePath,schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if(data.elementType !== undefined){let data263 = data.elementType;const _errs508 = errors;let valid295 = true;const _errs509 = errors;if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if(data263.value !== undefined){let data264 = data263.value;if(!((data264 === "bpmn:IntermediateThrowEvent") || (data264 === "bpmn:EndEvent"))){const err466 = {};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}}var _valid35 = _errs509 === errors;errors = _errs508;if(vErrors !== null){if(_errs508){vErrors.length = _errs508;}else {vErrors = null;}}if(_valid35){const _errs511 = errors;if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if(data263.eventDefinition === undefined){const err467 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data263.eventDefinition !== undefined){if("bpmn:MessageEventDefinition" !== data263.eventDefinition){const err468 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/properties/elementType/allOf/0/then/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:MessageEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}var _valid35 = _errs511 === errors;valid295 = _valid35;}if(!valid295){const err469 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if(data263.value === undefined){const err470 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(data263.value !== undefined){let data266 = data263.value;if(!((((((((data266 === "bpmn:ScriptTask") || (data266 === "bpmn:BusinessRuleTask")) || (data266 === "bpmn:ServiceTask")) || (data266 === "bpmn:SendTask")) || (data266 === "bpmn:AdHocSubProcess")) || (data266 === "bpmn:Process")) || (data266 === "bpmn:IntermediateThrowEvent")) || (data266 === "bpmn:EndEvent"))){const err471 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/14/then/anyOf/0/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[14].then.anyOf[0].properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}}}}var _valid34 = _errs505 === errors;valid292 = valid292 || _valid34;if(!valid292){const _errs514 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err472 = {instancePath,schemaPath:"#/allOf/1/allOf/14/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}if(data.appliesTo !== undefined){let data267 = data.appliesTo;if(Array.isArray(data267)){if(data267.length < 1){const err473 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/14/then/anyOf/1/properties/appliesTo/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}const len47 = data267.length;for(let i47=0; i47<len47; i47++){let data268 = data267[i47];if(!((((((data268 === "bpmn:ScriptTask") || (data268 === "bpmn:BusinessRuleTask")) || (data268 === "bpmn:ServiceTask")) || (data268 === "bpmn:SendTask")) || (data268 === "bpmn:AdHocSubProcess")) || (data268 === "bpmn:Process"))){const err474 = {instancePath:instancePath+"/appliesTo/" + i47,schemaPath:"#/allOf/1/allOf/14/then/anyOf/1/properties/appliesTo/items/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[14].then.anyOf[1].properties.appliesTo.items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}}}else {const err475 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/14/then/anyOf/1/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}}var _valid34 = _errs514 === errors;valid292 = valid292 || _valid34;}if(!valid292){const err476 = {instancePath,schemaPath:"#/allOf/1/allOf/14/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}else {errors = _errs504;if(vErrors !== null){if(_errs504){vErrors.length = _errs504;}else {vErrors = null;}}}var _valid33 = _errs503 === errors;valid287 = _valid33;}if(!valid287){const err477 = {instancePath,schemaPath:"#/allOf/1/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}const _errs520 = errors;let valid303 = true;const _errs521 = errors;const _errs522 = errors;let valid304 = false;const _errs523 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err478 = {};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}else {if(data.elementType !== undefined){let data269 = data.elementType;if(data269 && typeof data269 == "object" && !Array.isArray(data269)){if((data269.value === undefined) && ("value")){const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}else {if(data269.value !== undefined){if("bpmn:AdHocSubProcess" !== data269.value){const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}}}}}}var _valid37 = _errs523 === errors;valid304 = valid304 || _valid37;if(!valid304){const _errs526 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err481 = {};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[0].if.anyOf[1].properties.appliesTo.const)){const err482 = {};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}}var _valid37 = _errs526 === errors;valid304 = valid304 || _valid37;}if(!valid304){const err483 = {};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}else {errors = _errs522;if(vErrors !== null){if(_errs522){vErrors.length = _errs522;}else {vErrors = null;}}}var _valid36 = _errs521 === errors;errors = _errs520;if(vErrors !== null){if(_errs520){vErrors.length = _errs520;}else {vErrors = null;}}if(_valid36){const _errs528 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data272 = data.properties;if(Array.isArray(data272)){const len48 = data272.length;for(let i48=0; i48<len48; i48++){let data273 = data272[i48];const _errs531 = errors;let valid311 = true;const _errs532 = errors;if(data273 && typeof data273 == "object" && !Array.isArray(data273)){if((data273.binding === undefined) && ("binding")){const err484 = {};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}else {if(data273.binding !== undefined){let data274 = data273.binding;if(data274 && typeof data274 == "object" && !Array.isArray(data274)){if(((data274.type === undefined) && ("type")) || ((data274.name === undefined) && ("name"))){const err485 = {};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}else {if(data274.type !== undefined){const _errs534 = errors;if("property" !== data274.type){const err486 = {};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}var valid313 = _errs534 === errors;}else {var valid313 = true;}if(valid313){if(data274.name !== undefined){const _errs535 = errors;if("completionCondition" !== data274.name){const err487 = {};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}var valid313 = _errs535 === errors;}else {var valid313 = true;}}}}}}}var _valid38 = _errs532 === errors;errors = _errs531;if(vErrors !== null){if(_errs531){vErrors.length = _errs531;}else {vErrors = null;}}if(_valid38){const _errs536 = errors;if(data273 && typeof data273 == "object" && !Array.isArray(data273)){if(data273.feel === undefined){const err488 = {instancePath:instancePath+"/properties/" + i48,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data273.feel !== undefined){if("required" !== data273.feel){const err489 = {instancePath:instancePath+"/properties/" + i48+"/feel",schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}}var _valid38 = _errs536 === errors;valid311 = _valid38;}if(!valid311){const err490 = {instancePath:instancePath+"/properties/" + i48,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}}}}}var _valid36 = _errs528 === errors;valid303 = _valid36;}if(!valid303){const err491 = {instancePath,schemaPath:"#/allOf/2/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}const _errs539 = errors;let valid315 = true;const _errs540 = errors;const _errs541 = errors;let valid316 = false;const _errs542 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err492 = {};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}else {if(data.elementType !== undefined){let data278 = data.elementType;if(data278 && typeof data278 == "object" && !Array.isArray(data278)){if((data278.value === undefined) && ("value")){const err493 = {};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {if(data278.value !== undefined){if("bpmn:SequenceFlow" !== data278.value){const err494 = {};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}}}}}}}var _valid40 = _errs542 === errors;valid316 = valid316 || _valid40;if(!valid316){const _errs545 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err495 = {};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[1].if.anyOf[1].properties.appliesTo.const)){const err496 = {};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}}}var _valid40 = _errs545 === errors;valid316 = valid316 || _valid40;}if(!valid316){const err497 = {};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}else {errors = _errs541;if(vErrors !== null){if(_errs541){vErrors.length = _errs541;}else {vErrors = null;}}}var _valid39 = _errs540 === errors;errors = _errs539;if(vErrors !== null){if(_errs539){vErrors.length = _errs539;}else {vErrors = null;}}if(_valid39){const _errs547 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data281 = data.properties;if(Array.isArray(data281)){const len49 = data281.length;for(let i49=0; i49<len49; i49++){let data282 = data281[i49];const _errs550 = errors;let valid323 = true;const _errs551 = errors;if(data282 && typeof data282 == "object" && !Array.isArray(data282)){if((data282.binding === undefined) && ("binding")){const err498 = {};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}else {if(data282.binding !== undefined){let data283 = data282.binding;if(data283 && typeof data283 == "object" && !Array.isArray(data283)){if(((data283.type === undefined) && ("type")) || ((data283.name === undefined) && ("name"))){const err499 = {};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}else {if(data283.type !== undefined){const _errs553 = errors;if("property" !== data283.type){const err500 = {};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}var valid325 = _errs553 === errors;}else {var valid325 = true;}if(valid325){if(data283.name !== undefined){const _errs554 = errors;if("conditionExpression" !== data283.name){const err501 = {};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}var valid325 = _errs554 === errors;}else {var valid325 = true;}}}}}}}var _valid41 = _errs551 === errors;errors = _errs550;if(vErrors !== null){if(_errs550){vErrors.length = _errs550;}else {vErrors = null;}}if(_valid41){const _errs555 = errors;if(data282 && typeof data282 == "object" && !Array.isArray(data282)){if(data282.feel === undefined){const err502 = {instancePath:instancePath+"/properties/" + i49,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data282.feel !== undefined){if("required" !== data282.feel){const err503 = {instancePath:instancePath+"/properties/" + i49+"/feel",schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}}var _valid41 = _errs555 === errors;valid323 = _valid41;}if(!valid323){const err504 = {instancePath:instancePath+"/properties/" + i49,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}}}}var _valid39 = _errs547 === errors;valid315 = _valid39;}if(!valid315){const err505 = {instancePath,schemaPath:"#/allOf/2/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}const _errs558 = errors;let valid327 = true;const _errs559 = errors;const _errs560 = errors;let valid328 = false;const _errs561 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err506 = {};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}else {if(data.elementType !== undefined){let data287 = data.elementType;if(data287 && typeof data287 == "object" && !Array.isArray(data287)){if((data287.value === undefined) && ("value")){const err507 = {};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}else {if(data287.value !== undefined){if("bpmn:ComplexGateway" !== data287.value){const err508 = {};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}}}}}var _valid43 = _errs561 === errors;valid328 = valid328 || _valid43;if(!valid328){const _errs564 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err509 = {};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[2].if.anyOf[1].properties.appliesTo.const)){const err510 = {};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}}}var _valid43 = _errs564 === errors;valid328 = valid328 || _valid43;}if(!valid328){const err511 = {};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}else {errors = _errs560;if(vErrors !== null){if(_errs560){vErrors.length = _errs560;}else {vErrors = null;}}}var _valid42 = _errs559 === errors;errors = _errs558;if(vErrors !== null){if(_errs558){vErrors.length = _errs558;}else {vErrors = null;}}if(_valid42){const _errs566 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data290 = data.properties;if(Array.isArray(data290)){const len50 = data290.length;for(let i50=0; i50<len50; i50++){let data291 = data290[i50];const _errs569 = errors;let valid335 = true;const _errs570 = errors;if(data291 && typeof data291 == "object" && !Array.isArray(data291)){if((data291.binding === undefined) && ("binding")){const err512 = {};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}else {if(data291.binding !== undefined){let data292 = data291.binding;if(data292 && typeof data292 == "object" && !Array.isArray(data292)){if(((data292.type === undefined) && ("type")) || ((data292.name === undefined) && ("name"))){const err513 = {};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}else {if(data292.type !== undefined){const _errs572 = errors;if("property" !== data292.type){const err514 = {};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}var valid337 = _errs572 === errors;}else {var valid337 = true;}if(valid337){if(data292.name !== undefined){const _errs573 = errors;if("activationCondition" !== data292.name){const err515 = {};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}var valid337 = _errs573 === errors;}else {var valid337 = true;}}}}}}}var _valid44 = _errs570 === errors;errors = _errs569;if(vErrors !== null){if(_errs569){vErrors.length = _errs569;}else {vErrors = null;}}if(_valid44){const _errs574 = errors;if(data291 && typeof data291 == "object" && !Array.isArray(data291)){if(data291.feel === undefined){const err516 = {instancePath:instancePath+"/properties/" + i50,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data291.feel !== undefined){if("required" !== data291.feel){const err517 = {instancePath:instancePath+"/properties/" + i50+"/feel",schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}}var _valid44 = _errs574 === errors;valid335 = _valid44;}if(!valid335){const err518 = {instancePath:instancePath+"/properties/" + i50,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}}}}var _valid42 = _errs566 === errors;valid327 = _valid42;}if(!valid327){const err519 = {instancePath,schemaPath:"#/allOf/2/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}const _errs577 = errors;let valid339 = true;const _errs578 = errors;const _errs579 = errors;let valid340 = false;const _errs580 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err520 = {};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}else {if(data.elementType !== undefined){let data296 = data.elementType;if(data296 && typeof data296 == "object" && !Array.isArray(data296)){if((data296.value === undefined) && ("value")){const err521 = {};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}else {if(data296.value !== undefined){if("bpmn:AdHocSubProcess" !== data296.value){const err522 = {};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}}}}}}var _valid46 = _errs580 === errors;valid340 = valid340 || _valid46;if(!valid340){const _errs583 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err523 = {};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[3].if.anyOf[1].properties.appliesTo.const)){const err524 = {};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}}var _valid46 = _errs583 === errors;valid340 = valid340 || _valid46;}if(!valid340){const err525 = {};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}else {errors = _errs579;if(vErrors !== null){if(_errs579){vErrors.length = _errs579;}else {vErrors = null;}}}var _valid45 = _errs578 === errors;errors = _errs577;if(vErrors !== null){if(_errs577){vErrors.length = _errs577;}else {vErrors = null;}}if(_valid45){const _errs585 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data299 = data.properties;if(Array.isArray(data299)){const len51 = data299.length;for(let i51=0; i51<len51; i51++){let data300 = data299[i51];const _errs588 = errors;let valid347 = true;const _errs589 = errors;if(data300 && typeof data300 == "object" && !Array.isArray(data300)){if(((data300.binding === undefined) && ("binding")) || ((data300.type === undefined) && ("type"))){const err526 = {};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}else {if(data300.type !== undefined){let data301 = data300.type;const _errs590 = errors;if(!((data301 === "String") || (data301 === "Text"))){const err527 = {};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}var valid348 = _errs590 === errors;}else {var valid348 = true;}if(valid348){if(data300.binding !== undefined){let data302 = data300.binding;const _errs591 = errors;if(data302 && typeof data302 == "object" && !Array.isArray(data302)){if(((data302.type === undefined) && ("type")) || ((data302.property === undefined) && ("property"))){const err528 = {};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}else {if(data302.type !== undefined){const _errs592 = errors;if("zeebe:adHoc" !== data302.type){const err529 = {};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}var valid349 = _errs592 === errors;}else {var valid349 = true;}if(valid349){if(data302.property !== undefined){const _errs593 = errors;if("outputElement" !== data302.property){const err530 = {};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}var valid349 = _errs593 === errors;}else {var valid349 = true;}}}}var valid348 = _errs591 === errors;}else {var valid348 = true;}}}}var _valid47 = _errs589 === errors;errors = _errs588;if(vErrors !== null){if(_errs588){vErrors.length = _errs588;}else {vErrors = null;}}if(_valid47){const _errs594 = errors;if(data300 && typeof data300 == "object" && !Array.isArray(data300)){if(data300.feel === undefined){const err531 = {instancePath:instancePath+"/properties/" + i51,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}if(data300.feel !== undefined){if("required" !== data300.feel){const err532 = {instancePath:instancePath+"/properties/" + i51+"/feel",schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}}}var _valid47 = _errs594 === errors;valid347 = _valid47;}if(!valid347){const err533 = {instancePath:instancePath+"/properties/" + i51,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}}}}}var _valid45 = _errs585 === errors;valid339 = _valid45;}if(!valid339){const err534 = {instancePath,schemaPath:"#/allOf/2/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data307 = data.engines;if(data307 && typeof data307 == "object" && !Array.isArray(data307)){if(data307.camunda !== undefined){if(typeof data307.camunda !== "string"){const err535 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}}if(data307.camundaDesktopModeler !== undefined){if(typeof data307.camundaDesktopModeler !== "string"){const err536 = {instancePath:instancePath+"/engines/camundaDesktopModeler",schemaPath:"#/properties/engines/properties/camundaDesktopModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}if(data307.camundaWebModeler !== undefined){if(typeof data307.camundaWebModeler !== "string"){const err537 = {instancePath:instancePath+"/engines/camundaWebModeler",schemaPath:"#/properties/engines/properties/camundaWebModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}}else {const err538 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}}if(data.category !== undefined){let data311 = data.category;if(data311 && typeof data311 == "object" && !Array.isArray(data311)){if(data311.id === undefined){const err539 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}if(data311.name === undefined){const err540 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}if(data311.id !== undefined){if(typeof data311.id !== "string"){const err541 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}}if(data311.name !== undefined){if(typeof data311.name !== "string"){const err542 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}}}else {const err543 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}}if(data.icon !== undefined){let data314 = data.icon;if(data314 && typeof data314 == "object" && !Array.isArray(data314)){if(data314.contents === undefined){const err544 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}if(data314.contents !== undefined){let data315 = data314.contents;if(typeof data315 === "string"){if(!pattern13.test(data315)){const err545 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}}else {const err546 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}if(errors > 0){const emErrors7 = {"pattern":[]};const templates7 = {};for(const err547 of vErrors){if((((((err547.keyword !== "errorMessage") && (!err547.emUsed)) && (err547.instancePath === instancePath+"/icon/contents")) && (err547.keyword in emErrors7)) && (err547.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err547.schemaPath.slice(37)))){emErrors7[err547.keyword].push(err547);err547.emUsed = true;}}for(const key7 in emErrors7){if(emErrors7[key7].length){const err548 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors7[key7]},message:key7 in templates7 ? templates7[key7]() : schema17.properties.icon.properties.contents.errorMessage[key7]};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}}const emErrs43 = [];for(const err549 of vErrors){if(!err549.emUsed){emErrs43.push(err549);}}vErrors = emErrs43;errors = emErrs43.length;}}}else {const err550 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}if(errors > 0){const emErrors8 = {"required":{"contents":[]}};const templates8 = {required:{}};let emPropParams4;let emParamsErrors4;for(const err551 of vErrors){if((((((err551.keyword !== "errorMessage") && (!err551.emUsed)) && (err551.instancePath === instancePath+"/icon")) && (err551.keyword in emErrors8)) && (err551.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err551.schemaPath.slice(17)))){emPropParams4 = obj0[err551.keyword];emParamsErrors4 = emErrors8[err551.keyword][err551.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err551);err551.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp4 in emErrors8[key8]){emParamsErrors4 = emErrors8[key8][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates8[key8] && templates8[key8][keyProp4];const err552 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17.properties.icon.errorMessage[key8][keyProp4]};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}}}const emErrs44 = [];for(const err553 of vErrors){if(!err553.emUsed){emErrs44.push(err553);}}vErrors = emErrs44;errors = emErrs44.length;}}if(data.elementType !== undefined){let data316 = data.elementType;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if(data316.eventDefinition !== undefined){let data317 = data316.eventDefinition;if(!((((data317 === "bpmn:MessageEventDefinition") || (data317 === "bpmn:SignalEventDefinition")) || (data317 === "bpmn:TimerEventDefinition")) || (data317 === "bpmn:ConditionalEventDefinition"))){const err554 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}}}const _errs620 = errors;let valid358 = true;const _errs621 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if((data316.eventDefinition === undefined) && ("eventDefinition")){const err555 = {};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}var _valid48 = _errs621 === errors;errors = _errs620;if(vErrors !== null){if(_errs620){vErrors.length = _errs620;}else {vErrors = null;}}if(_valid48){const _errs622 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if(data316.value === undefined){const err556 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}if(data316.value !== undefined){let data318 = data316.value;if(!(((((data318 === "bpmn:StartEvent") || (data318 === "bpmn:IntermediateCatchEvent")) || (data318 === "bpmn:IntermediateThrowEvent")) || (data318 === "bpmn:BoundaryEvent")) || (data318 === "bpmn:EndEvent"))){const err557 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}var _valid48 = _errs622 === errors;valid358 = _valid48;}if(!valid358){const err558 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}const _errs625 = errors;let valid360 = true;const _errs626 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if((data316.eventDefinition === undefined) && ("eventDefinition")){const err559 = {};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}else {if(data316.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data316.eventDefinition){const err560 = {};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}}}var _valid49 = _errs626 === errors;errors = _errs625;if(vErrors !== null){if(_errs625){vErrors.length = _errs625;}else {vErrors = null;}}if(_valid49){const _errs628 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if(data316.value === undefined){const err561 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if(data316.value !== undefined){let data320 = data316.value;if(!(((data320 === "bpmn:StartEvent") || (data320 === "bpmn:IntermediateCatchEvent")) || (data320 === "bpmn:BoundaryEvent"))){const err562 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[2].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}}}var _valid49 = _errs628 === errors;valid360 = _valid49;}if(!valid360){const err563 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}const _errs631 = errors;let valid363 = true;const _errs632 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if((data316.eventDefinition === undefined) && ("eventDefinition")){const err564 = {};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}else {if(data316.eventDefinition !== undefined){if("bpmn:ConditionalEventDefinition" !== data316.eventDefinition){const err565 = {};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}}}}var _valid50 = _errs632 === errors;errors = _errs631;if(vErrors !== null){if(_errs631){vErrors.length = _errs631;}else {vErrors = null;}}if(_valid50){const _errs634 = errors;if(data316 && typeof data316 == "object" && !Array.isArray(data316)){if(data316.value === undefined){const err566 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(data316.value !== undefined){let data322 = data316.value;if(!(((data322 === "bpmn:StartEvent") || (data322 === "bpmn:IntermediateCatchEvent")) || (data322 === "bpmn:BoundaryEvent"))){const err567 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[3].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}}var _valid50 = _errs634 === errors;valid363 = _valid50;}if(!valid363){const err568 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}}if(data.groups !== undefined){let data323 = data.groups;if(Array.isArray(data323)){const len52 = data323.length;for(let i52=0; i52<len52; i52++){let data324 = data323[i52];if(data324 && typeof data324 == "object" && !Array.isArray(data324)){if(data324.tooltip !== undefined){if(typeof data324.tooltip !== "string"){const err569 = {instancePath:instancePath+"/groups/" + i52+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}if(data324.openByDefault !== undefined){if(typeof data324.openByDefault !== "boolean"){const err570 = {instancePath:instancePath+"/groups/" + i52+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}}}}}}if(data.configurationTemplates !== undefined){let data327 = data.configurationTemplates;if(Array.isArray(data327)){const len53 = data327.length;for(let i53=0; i53<len53; i53++){let data328 = data327[i53];if(data328 && typeof data328 == "object" && !Array.isArray(data328)){if(data328.name === undefined){const err571 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if(data328.id === undefined){const err572 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}if(data328.kind === undefined){const err573 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if(data328.version === undefined){const err574 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}if(data328.properties === undefined){const err575 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if(data328.$schema !== undefined){if(typeof data328.$schema !== "string"){const err576 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/$schema",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}if(data328.name !== undefined){if(typeof data328.name !== "string"){const err577 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/name",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}}if(data328.id !== undefined){if(typeof data328.id !== "string"){const err578 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/id",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}}if(data328.kind !== undefined){let data332 = data328.kind;if(typeof data332 === "string"){if(func12(data332) < 1){const err579 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/kind",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/kind/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}}else {const err580 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/kind",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}}if(data328.version !== undefined){let data333 = data328.version;if(!((typeof data333 == "number") && (!(data333 % 1) && !isNaN(data333)))){const err581 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/version",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}}if(data328.description !== undefined){if(typeof data328.description !== "string"){const err582 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/description",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}}if(data328.documentationRef !== undefined){let data335 = data328.documentationRef;if(typeof data335 === "string"){if(!pattern0.test(data335)){const err583 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/documentationRef",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}}else {const err584 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/documentationRef",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}if(data328.keywords !== undefined){let data336 = data328.keywords;if(Array.isArray(data336)){const len54 = data336.length;for(let i54=0; i54<len54; i54++){if(typeof data336[i54] !== "string"){const err585 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/keywords/" + i54,schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}}else {const err586 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/keywords",schemaPath:"#/properties/configurationTemplates/items/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}}}if(data328 && typeof data328 == "object" && !Array.isArray(data328)){if(data328.properties !== undefined){let data338 = data328.properties;if(Array.isArray(data338)){const len55 = data338.length;for(let i55=0; i55<len55; i55++){let data339 = data338[i55];const _errs672 = errors;let valid382 = true;const _errs673 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if((data339.type === undefined) && ("type")){const err587 = {};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}else {if(data339.type !== undefined){if("Dropdown" !== data339.type){const err588 = {};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}}}}var _valid51 = _errs673 === errors;errors = _errs672;if(vErrors !== null){if(_errs672){vErrors.length = _errs672;}else {vErrors = null;}}if(_valid51){const _errs675 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if(data339.choices === undefined){const err589 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}}if(errors > 0){const emErrs45 = [];for(const err590 of vErrors){if(((((err590.keyword !== "errorMessage") && (!err590.emUsed)) && ((err590.instancePath === instancePath+"/configurationTemplates/" + i53+"/properties/" + i55) || ((err590.instancePath.indexOf(instancePath+"/configurationTemplates/" + i53+"/properties/" + i55) === 0) && (err590.instancePath[instancePath+"/configurationTemplates/" + i53+"/properties/" + i55.length] === "/")))) && (err590.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err590.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs45.push(err590);err590.emUsed = true;}}if(emErrs45.length){const err591 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}const emErrs46 = [];for(const err592 of vErrors){if(!err592.emUsed){emErrs46.push(err592);}}vErrors = emErrs46;errors = emErrs46.length;}var _valid51 = _errs675 === errors;valid382 = _valid51;}if(!valid382){const err593 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}const _errs677 = errors;let valid384 = true;const _errs678 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if((data339.type === undefined) && ("type")){const err594 = {};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}else {if(data339.type !== undefined){const _errs680 = errors;const _errs681 = errors;if("Number" !== data339.type){const err595 = {};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}var valid386 = _errs681 === errors;if(valid386){const err596 = {};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}else {errors = _errs680;if(vErrors !== null){if(_errs680){vErrors.length = _errs680;}else {vErrors = null;}}}}}}var _valid52 = _errs678 === errors;errors = _errs677;if(vErrors !== null){if(_errs677){vErrors.length = _errs677;}else {vErrors = null;}}if(_valid52){const _errs682 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if(data339.value !== undefined){let data342 = data339.value;if((typeof data342 !== "string") && (typeof data342 !== "boolean")){const err597 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/value",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/then/properties/value/type",keyword:"type",params:{type: schema29.items.allOf[1].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}}}var _valid52 = _errs682 === errors;valid384 = _valid52;}if(!valid384){const err598 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}const _errs686 = errors;let valid388 = true;const _errs687 = errors;const _errs688 = errors;let valid389 = false;const _errs689 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if((data339.type === undefined) && ("type")){const err599 = {};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}else {if(data339.type !== undefined){let data343 = data339.type;if(!((data343 === "String") || (data343 === "Text"))){const err600 = {};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}}}}var _valid54 = _errs689 === errors;if(_valid54){valid389 = true;}const _errs691 = errors;const _errs692 = errors;const _errs693 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if((data339.type === undefined) && ("type")){const err601 = {};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}}var valid391 = _errs693 === errors;if(valid391){const err602 = {};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}else {errors = _errs692;if(vErrors !== null){if(_errs692){vErrors.length = _errs692;}else {vErrors = null;}}}var _valid54 = _errs691 === errors;if(_valid54 && valid389){valid389 = false;}else {if(_valid54){valid389 = true;}}if(!valid389){const err603 = {};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}else {errors = _errs688;if(vErrors !== null){if(_errs688){vErrors.length = _errs688;}else {vErrors = null;}}}var _valid53 = _errs687 === errors;errors = _errs686;if(vErrors !== null){if(_errs686){vErrors.length = _errs686;}else {vErrors = null;}}let ifClause0;if(_valid53){const _errs694 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if(data339.placeholder !== undefined){if(typeof data339.placeholder !== "string"){const err604 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/placeholder",schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}}}var _valid53 = _errs694 === errors;valid388 = _valid53;ifClause0 = "then";}else {const _errs697 = errors;const _errs698 = errors;const _errs699 = errors;if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if((data339.placeholder === undefined) && ("placeholder")){const err605 = {};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}}var valid393 = _errs699 === errors;if(valid393){const err606 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}else {errors = _errs698;if(vErrors !== null){if(_errs698){vErrors.length = _errs698;}else {vErrors = null;}}}var _valid53 = _errs697 === errors;valid388 = _valid53;ifClause0 = "else";}if(!valid388){const err607 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}if(data339 && typeof data339 == "object" && !Array.isArray(data339)){if(data339.value !== undefined){let data345 = data339.value;if(((typeof data345 !== "string") && (!(typeof data345 == "number"))) && (typeof data345 !== "boolean")){const err608 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema29.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}}if(data339.description !== undefined){if(typeof data339.description !== "string"){const err609 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}}if(data339.label !== undefined){if(typeof data339.label !== "string"){const err610 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}}if(data339.type !== undefined){if(typeof data339.type !== "string"){const err611 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}}if(data339.editable !== undefined){if(typeof data339.editable !== "boolean"){const err612 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}if(data339.choices !== undefined){let data350 = data339.choices;if(Array.isArray(data350)){const len56 = data350.length;for(let i56=0; i56<len56; i56++){let data351 = data350[i56];if(data351 && typeof data351 == "object" && !Array.isArray(data351)){if(data351.value === undefined){const err613 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}if(data351.name === undefined){const err614 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}if(data351.name !== undefined){if(typeof data351.name !== "string"){const err615 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}}if(data351.value !== undefined){if(typeof data351.value !== "string"){const err616 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}if(errors > 0){const emErrors9 = {"required":[]};const templates9 = {};for(const err618 of vErrors){if((((((err618.keyword !== "errorMessage") && (!err618.emUsed)) && (err618.instancePath === instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56)) && (err618.keyword in emErrors9)) && (err618.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err618.schemaPath.slice(63)))){emErrors9[err618.keyword].push(err618);err618.emUsed = true;}}for(const key9 in emErrors9){if(emErrors9[key9].length){const err619 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices/" + i56,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors9[key9]},message:key9 in templates9 ? templates9[key9]() : schema29.items.properties.choices.items.errorMessage[key9]};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}}const emErrs47 = [];for(const err620 of vErrors){if(!err620.emUsed){emErrs47.push(err620);}}vErrors = emErrs47;errors = emErrs47.length;}}}else {const err621 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}}if(data339.constraints !== undefined){let data354 = data339.constraints;if(data354 && typeof data354 == "object" && !Array.isArray(data354)){if(data354.notEmpty !== undefined){if(typeof data354.notEmpty !== "boolean"){const err622 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}if(data354.minLength !== undefined){if(!(typeof data354.minLength == "number")){const err623 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data354.maxLength !== undefined){if(!(typeof data354.maxLength == "number")){const err624 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}}if(data354.pattern !== undefined){let data358 = data354.pattern;const _errs727 = errors;let valid400 = false;let passing2 = null;const _errs728 = errors;if(data358 && typeof data358 == "object" && !Array.isArray(data358)){if(data358.value !== undefined){if(typeof data358.value !== "string"){const err625 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}if(data358.message !== undefined){if(typeof data358.message !== "string"){const err626 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}}}else {const err627 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}var _valid55 = _errs728 === errors;if(_valid55){valid400 = true;passing2 = 0;}const _errs734 = errors;if(typeof data358 !== "string"){const err628 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}var _valid55 = _errs734 === errors;if(_valid55 && valid400){valid400 = false;passing2 = [passing2, 1];}else {if(_valid55){valid400 = true;passing2 = 1;}}if(!valid400){const err629 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}else {errors = _errs727;if(vErrors !== null){if(_errs727){vErrors.length = _errs727;}else {vErrors = null;}}}}}else {const err630 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data339.group !== undefined){if(typeof data339.group !== "string"){const err631 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}}}else {const err632 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i55,schemaPath:"#/definitions/properties/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}}}else {const err633 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}if(Array.isArray(data338)){const len57 = data338.length;for(let i57=0; i57<len57; i57++){let data362 = data338[i57];if(data362 && typeof data362 == "object" && !Array.isArray(data362)){if(data362.type !== undefined){let data363 = data362.type;if(!((((((data363 === "String") || (data363 === "Text")) || (data363 === "Hidden")) || (data363 === "Dropdown")) || (data363 === "Boolean")) || (data363 === "Number"))){const err634 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.properties.configurationTemplates.items.properties.properties.allOf[1].items.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}}const _errs747 = errors;const _errs748 = errors;if(data362 && typeof data362 == "object" && !Array.isArray(data362)){if((data362.feel === undefined) && ("feel")){const err635 = {};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}}var valid406 = _errs748 === errors;if(valid406){const err636 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}else {errors = _errs747;if(vErrors !== null){if(_errs747){vErrors.length = _errs747;}else {vErrors = null;}}}const _errs751 = errors;const _errs752 = errors;if(data362 && typeof data362 == "object" && !Array.isArray(data362)){if((data362.optional === undefined) && ("optional")){const err637 = {};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}}var valid407 = _errs752 === errors;if(valid407){const err638 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}else {errors = _errs751;if(vErrors !== null){if(_errs751){vErrors.length = _errs751;}else {vErrors = null;}}}if(data362 && typeof data362 == "object" && !Array.isArray(data362)){if(data362.binding === undefined){const err639 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}if(data362.binding !== undefined){let data364 = data362.binding;if(data364 && typeof data364 == "object" && !Array.isArray(data364)){if(data364.type === undefined){const err640 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}if(data364.name === undefined){const err641 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}if(data364.type !== undefined){let data365 = data364.type;if(typeof data365 !== "string"){const err642 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}if("property" !== data365){const err643 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding/type",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}}if(data364.name !== undefined){if(typeof data364.name !== "string"){const err644 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding/name",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}}else {const err645 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/binding",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}}if(data362.secret !== undefined){if(typeof data362.secret !== "boolean"){const err646 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/secret",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/secret/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}}if(data362.tooltip !== undefined){if(typeof data362.tooltip !== "string"){const err647 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57+"/tooltip",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}}}else {const err648 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i57,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}}}else {const err649 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}if(Array.isArray(data338)){const len58 = data338.length;for(let i58=0; i58<len58; i58++){let data369 = data338[i58];const _errs768 = errors;let valid414 = true;const _errs769 = errors;if(data369 && typeof data369 == "object" && !Array.isArray(data369)){if(((data369.id === undefined) && ("id")) || ((data369.condition === undefined) && ("condition"))){const err650 = {};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}else {if(data369.condition !== undefined){let data370 = data369.condition;if(data370 && typeof data370 == "object" && !Array.isArray(data370)){if((data370.property === undefined) && ("property")){const err651 = {};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}else {if(data370.property !== undefined){if(!func0(data370.property, schema30.properties.property.const)){const err652 = {};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}}}}}}}var _valid56 = _errs769 === errors;errors = _errs768;if(vErrors !== null){if(_errs768){vErrors.length = _errs768;}else {vErrors = null;}}if(_valid56){const _errs773 = errors;const _errs774 = errors;const _errs775 = errors;if(data369 && typeof data369 == "object" && !Array.isArray(data369)){if((data369.condition === undefined) && ("condition")){const err653 = {};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}}var valid418 = _errs775 === errors;if(valid418){const err654 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}else {errors = _errs774;if(vErrors !== null){if(_errs774){vErrors.length = _errs774;}else {vErrors = null;}}}var _valid56 = _errs773 === errors;valid414 = _valid56;}if(!valid414){const err655 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58,schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}if(data369 && typeof data369 == "object" && !Array.isArray(data369)){if(data369.id !== undefined){if(typeof data369.id !== "string"){const err656 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/id",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}}if(data369.condition !== undefined){let data373 = data369.condition;if(!(data373 && typeof data373 == "object" && !Array.isArray(data373))){const err657 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}const _errs780 = errors;let valid420 = false;let passing3 = null;const _errs781 = errors;const _errs784 = errors;let valid422 = false;let passing4 = null;const _errs785 = errors;if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.equals === undefined){const err658 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}if(data373.equals !== undefined){let data374 = data373.equals;if(((typeof data374 !== "string") && (!(typeof data374 == "number"))) && (typeof data374 !== "boolean")){const err659 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}}}var _valid58 = _errs785 === errors;if(_valid58){valid422 = true;passing4 = 0;}const _errs788 = errors;if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.oneOf === undefined){const err660 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}if(data373.oneOf !== undefined){let data375 = data373.oneOf;if(Array.isArray(data375)){const len59 = data375.length;for(let i59=0; i59<len59; i59++){let data376 = data375[i59];if((typeof data376 !== "string") && (!(typeof data376 == "number"))){const err661 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/oneOf/" + i59,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}}}else {const err662 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}}}var _valid58 = _errs788 === errors;if(_valid58 && valid422){valid422 = false;passing4 = [passing4, 1];}else {if(_valid58){valid422 = true;passing4 = 1;}const _errs793 = errors;if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.isActive === undefined){const err663 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}if(data373.isActive !== undefined){if(typeof data373.isActive !== "boolean"){const err664 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}}}var _valid58 = _errs793 === errors;if(_valid58 && valid422){valid422 = false;passing4 = [passing4, 2];}else {if(_valid58){valid422 = true;passing4 = 2;}const _errs796 = errors;if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.isEmpty === undefined){const err665 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}errors++;}if(data373.isEmpty !== undefined){if(typeof data373.isEmpty !== "boolean"){const err666 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err666];}else {vErrors.push(err666);}errors++;}}}var _valid58 = _errs796 === errors;if(_valid58 && valid422){valid422 = false;passing4 = [passing4, 3];}else {if(_valid58){valid422 = true;passing4 = 3;}}}}if(!valid422){const err667 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err667];}else {vErrors.push(err667);}errors++;}else {errors = _errs784;if(vErrors !== null){if(_errs784){vErrors.length = _errs784;}else {vErrors = null;}}}if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.property === undefined){const err668 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err668];}else {vErrors.push(err668);}errors++;}if(data373.type !== undefined){if("simple" !== data373.type){const err669 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err669];}else {vErrors.push(err669);}errors++;}}if(data373.property !== undefined){if(typeof data373.property !== "string"){const err670 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err670];}else {vErrors.push(err670);}errors++;}}}else {const err671 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err671];}else {vErrors.push(err671);}errors++;}var _valid57 = _errs781 === errors;if(_valid57){valid420 = true;passing3 = 0;}const _errs802 = errors;if(data373 && typeof data373 == "object" && !Array.isArray(data373)){if(data373.allMatch === undefined){const err672 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err672];}else {vErrors.push(err672);}errors++;}if(data373.allMatch !== undefined){let data381 = data373.allMatch;if(Array.isArray(data381)){if(data381.length < 1){const err673 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err673];}else {vErrors.push(err673);}errors++;}const len60 = data381.length;for(let i60=0; i60<len60; i60++){let data382 = data381[i60];const _errs808 = errors;let valid434 = false;let passing5 = null;const _errs809 = errors;if(data382 && typeof data382 == "object" && !Array.isArray(data382)){if(data382.equals === undefined){const err674 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err674];}else {vErrors.push(err674);}errors++;}if(data382.equals !== undefined){let data383 = data382.equals;if(((typeof data383 !== "string") && (!(typeof data383 == "number"))) && (typeof data383 !== "boolean")){const err675 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/equals",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema31.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err675];}else {vErrors.push(err675);}errors++;}}}var _valid59 = _errs809 === errors;if(_valid59){valid434 = true;passing5 = 0;}const _errs812 = errors;if(data382 && typeof data382 == "object" && !Array.isArray(data382)){if(data382.oneOf === undefined){const err676 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err676];}else {vErrors.push(err676);}errors++;}if(data382.oneOf !== undefined){let data384 = data382.oneOf;if(Array.isArray(data384)){const len61 = data384.length;for(let i61=0; i61<len61; i61++){let data385 = data384[i61];if((typeof data385 !== "string") && (!(typeof data385 == "number"))){const err677 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/oneOf/" + i61,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema31.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err677];}else {vErrors.push(err677);}errors++;}}}else {const err678 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/oneOf",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err678];}else {vErrors.push(err678);}errors++;}}}var _valid59 = _errs812 === errors;if(_valid59 && valid434){valid434 = false;passing5 = [passing5, 1];}else {if(_valid59){valid434 = true;passing5 = 1;}const _errs817 = errors;if(data382 && typeof data382 == "object" && !Array.isArray(data382)){if(data382.isActive === undefined){const err679 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err679];}else {vErrors.push(err679);}errors++;}if(data382.isActive !== undefined){if(typeof data382.isActive !== "boolean"){const err680 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/isActive",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err680];}else {vErrors.push(err680);}errors++;}}}var _valid59 = _errs817 === errors;if(_valid59 && valid434){valid434 = false;passing5 = [passing5, 2];}else {if(_valid59){valid434 = true;passing5 = 2;}const _errs820 = errors;if(data382 && typeof data382 == "object" && !Array.isArray(data382)){if(data382.isEmpty === undefined){const err681 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/required",keyword:"required",params:{missingProperty: "isEmpty"},message:"must have required property '"+"isEmpty"+"'"};if(vErrors === null){vErrors = [err681];}else {vErrors.push(err681);}errors++;}if(data382.isEmpty !== undefined){if(typeof data382.isEmpty !== "boolean"){const err682 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/isEmpty",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf/3/properties/isEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err682];}else {vErrors.push(err682);}errors++;}}}var _valid59 = _errs820 === errors;if(_valid59 && valid434){valid434 = false;passing5 = [passing5, 3];}else {if(_valid59){valid434 = true;passing5 = 3;}}}}if(!valid434){const err683 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err683];}else {vErrors.push(err683);}errors++;}else {errors = _errs808;if(vErrors !== null){if(_errs808){vErrors.length = _errs808;}else {vErrors = null;}}}if(data382 && typeof data382 == "object" && !Array.isArray(data382)){if(data382.property === undefined){const err684 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err684];}else {vErrors.push(err684);}errors++;}if(data382.type !== undefined){if("simple" !== data382.type){const err685 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/type",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err685];}else {vErrors.push(err685);}errors++;}}if(data382.property !== undefined){if(typeof data382.property !== "string"){const err686 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60+"/property",schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err686];}else {vErrors.push(err686);}errors++;}}}else {const err687 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch/" + i60,schemaPath:"#/definitions/template/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err687];}else {vErrors.push(err687);}errors++;}}}else {const err688 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition/allMatch",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err688];}else {vErrors.push(err688);}errors++;}}}var _valid57 = _errs802 === errors;if(_valid57 && valid420){valid420 = false;passing3 = [passing3, 1];}else {if(_valid57){valid420 = true;passing3 = 1;}}if(!valid420){const err689 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/condition",schemaPath:"#/properties/configurationTemplates/items/properties/properties/allOf/2/items/allOf/0/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err689];}else {vErrors.push(err689);}errors++;}else {errors = _errs780;if(vErrors !== null){if(_errs780){vErrors.length = _errs780;}else {vErrors = null;}}}}}if(data369 && typeof data369 == "object" && !Array.isArray(data369)){if(data369.choices !== undefined){let data390 = data369.choices;if(Array.isArray(data390)){const len62 = data390.length;for(let i62=0; i62<len62; i62++){let data391 = data390[i62];if(data391 && typeof data391 == "object" && !Array.isArray(data391)){if(data391.condition !== undefined){if(!(validate20(data391.condition, {instancePath:instancePath+"/configurationTemplates/" + i53+"/properties/" + i58+"/choices/" + i62+"/condition",parentData:data391,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}}}}}}}}}}if(data328.groups !== undefined){let data393 = data328.groups;if(Array.isArray(data393)){const len63 = data393.length;for(let i63=0; i63<len63; i63++){let data394 = data393[i63];if(data394 && typeof data394 == "object" && !Array.isArray(data394)){if(data394.id === undefined){const err690 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err690];}else {vErrors.push(err690);}errors++;}if(data394.label === undefined){const err691 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err691];}else {vErrors.push(err691);}errors++;}if(data394.id !== undefined){if(typeof data394.id !== "string"){const err692 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63+"/id",schemaPath:"#/definitions/template/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err692];}else {vErrors.push(err692);}errors++;}}if(data394.label !== undefined){if(typeof data394.label !== "string"){const err693 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63+"/label",schemaPath:"#/definitions/template/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err693];}else {vErrors.push(err693);}errors++;}}}else {const err694 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err694];}else {vErrors.push(err694);}errors++;}if(errors > 0){const emErrors10 = {"required":{"id":[],"label":[]}};const templates10 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i63) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i63) + "\""}}};let emPropParams5;let emParamsErrors5;for(const err695 of vErrors){if((((((err695.keyword !== "errorMessage") && (!err695.emUsed)) && (err695.instancePath === instancePath+"/configurationTemplates/" + i53+"/groups/" + i63)) && (err695.keyword in emErrors10)) && (err695.schemaPath.indexOf("#/definitions/template/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err695.schemaPath.slice(54)))){emPropParams5 = obj0[err695.keyword];emParamsErrors5 = emErrors10[err695.keyword][err695.params[emPropParams5]];if(emParamsErrors5){emParamsErrors5.push(err695);err695.emUsed = true;}}}for(const key10 in emErrors10){for(const keyProp5 in emErrors10[key10]){emParamsErrors5 = emErrors10[key10][keyProp5];if(emParamsErrors5.length){const tmpl5 = templates10[key10] && templates10[key10][keyProp5];const err696 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups/" + i63,schemaPath:"#/definitions/template/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors5},message:tmpl5 ? tmpl5() : schema36.items.errorMessage[key10][keyProp5]};if(vErrors === null){vErrors = [err696];}else {vErrors.push(err696);}errors++;}}}const emErrs48 = [];for(const err697 of vErrors){if(!err697.emUsed){emErrs48.push(err697);}}vErrors = emErrs48;errors = emErrs48.length;}}}else {const err698 = {instancePath:instancePath+"/configurationTemplates/" + i53+"/groups",schemaPath:"#/definitions/template/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err698];}else {vErrors.push(err698);}errors++;}}}else {const err699 = {instancePath:instancePath+"/configurationTemplates/" + i53,schemaPath:"#/properties/configurationTemplates/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err699];}else {vErrors.push(err699);}errors++;}}}else {const err700 = {instancePath:instancePath+"/configurationTemplates",schemaPath:"#/properties/configurationTemplates/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err700];}else {vErrors.push(err700);}errors++;}}if(data.steps !== undefined){let data397 = data.steps;if(Array.isArray(data397)){const len64 = data397.length;for(let i64=0; i64<len64; i64++){if(!(validate22(data397[i64], {instancePath:instancePath+"/steps/" + i64,parentData:data397,parentDataProperty:i64,rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}else {const err701 = {instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err701];}else {vErrors.push(err701);}errors++;}}if(data.presets !== undefined){let data399 = data.presets;if(Array.isArray(data399)){const len65 = data399.length;for(let i65=0; i65<len65; i65++){let data400 = data399[i65];if(data400 && typeof data400 == "object" && !Array.isArray(data400)){if(data400.id === undefined){const err702 = {instancePath:instancePath+"/presets/" + i65,schemaPath:"#/properties/presets/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err702];}else {vErrors.push(err702);}errors++;}if(data400.properties === undefined){const err703 = {instancePath:instancePath+"/presets/" + i65,schemaPath:"#/properties/presets/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err703];}else {vErrors.push(err703);}errors++;}if(data400.id !== undefined){if(typeof data400.id !== "string"){const err704 = {instancePath:instancePath+"/presets/" + i65+"/id",schemaPath:"#/properties/presets/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err704];}else {vErrors.push(err704);}errors++;}}if(data400.properties !== undefined){let data402 = data400.properties;if(data402 && typeof data402 == "object" && !Array.isArray(data402));else {const err705 = {instancePath:instancePath+"/presets/" + i65+"/properties",schemaPath:"#/properties/presets/items/properties/properties/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err705];}else {vErrors.push(err705);}errors++;}}}else {const err706 = {instancePath:instancePath+"/presets/" + i65,schemaPath:"#/properties/presets/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err706];}else {vErrors.push(err706);}errors++;}}}else {const err707 = {instancePath:instancePath+"/presets",schemaPath:"#/properties/presets/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err707];}else {vErrors.push(err707);}errors++;}}if(data.entriesVisible !== undefined){let data403 = data.entriesVisible;const _errs851 = errors;let valid456 = false;let passing6 = null;const _errs852 = errors;if(typeof data403 !== "boolean"){const err708 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/0/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err708];}else {vErrors.push(err708);}errors++;}var _valid60 = _errs852 === errors;if(_valid60){valid456 = true;passing6 = 0;}const _errs854 = errors;if(data403 && typeof data403 == "object" && !Array.isArray(data403)){for(const key11 in data403){if(!(((key11 === "outputs") || (key11 === "executionListeners")) || (key11 === "taskListeners"))){const err709 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err709];}else {vErrors.push(err709);}errors++;}}if(data403.outputs !== undefined){if(typeof data403.outputs !== "boolean"){const err710 = {instancePath:instancePath+"/entriesVisible/outputs",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/outputs/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err710];}else {vErrors.push(err710);}errors++;}}if(data403.executionListeners !== undefined){if(typeof data403.executionListeners !== "boolean"){const err711 = {instancePath:instancePath+"/entriesVisible/executionListeners",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/executionListeners/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err711];}else {vErrors.push(err711);}errors++;}}if(data403.taskListeners !== undefined){if(typeof data403.taskListeners !== "boolean"){const err712 = {instancePath:instancePath+"/entriesVisible/taskListeners",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/taskListeners/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err712];}else {vErrors.push(err712);}errors++;}}}else {const err713 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err713];}else {vErrors.push(err713);}errors++;}var _valid60 = _errs854 === errors;if(_valid60 && valid456){valid456 = false;passing6 = [passing6, 1];}else {if(_valid60){valid456 = true;passing6 = 1;}}if(!valid456){const err714 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err714];}else {vErrors.push(err714);}errors++;}else {errors = _errs851;if(vErrors !== null){if(_errs851){vErrors.length = _errs851;}else {vErrors = null;}}}}}else {const err715 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err715];}else {vErrors.push(err715);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", 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, {instancePath,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], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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;}
|
|
812
812
|
return standaloneZeebeValidator.exports;
|
|
813
813
|
}
|
|
814
814
|
|
|
@@ -848,7 +848,7 @@ function validateAllZeebe(objects) {
|
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
var name = "@camunda/zeebe-configuration-templates-json-schema";
|
|
851
|
-
var version = "0.2.0
|
|
851
|
+
var version = "0.2.0";
|
|
852
852
|
|
|
853
853
|
var standaloneZeebeConfigurationValidator = {exports: {}};
|
|
854
854
|
|