Describe the Bug
Our validation reports errors that are hard to impossible to comprehend by a user. For example, given the following template what is broken is that feel is not compatible to type=Dropdown. What is reported is that (without context) type=String|Text are the only compatible options, rather than highlighting that feel is not supported for Dropdown:
{
"$schema": "https://unpkg.com/browse/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
"name": "Connector Name",
"id": "connector-id",
"appliesTo": ["bpmn:Task"],
"properties": [
{
"label": "Some label",
"type": "Dropdown",
"feel": "optional",
"binding": {
"type": "zeebe:input",
"name": "variableName",
"key": "asd"
},
"choices": [],
"value": "=default expression"
}
]
}
Steps to Reproduce
- Open above template
- See that validation marks
property.type=Dropdown as invalid
Expected Behavior
We validate feel instead; it is not compatible with property.type=Dropdown.
Environment
- Host (Browser/Node version), if applicable: Any
- OS: Any
- Library version: v0.12.0
Describe the Bug
Our validation reports errors that are hard to impossible to comprehend by a user. For example, given the following template what is broken is that
feelis not compatible totype=Dropdown. What is reported is that (without context)type=String|Textare the only compatible options, rather than highlighting thatfeelis not supported forDropdown:{ "$schema": "https://unpkg.com/browse/@camunda/zeebe-element-templates-json-schema/resources/schema.json", "name": "Connector Name", "id": "connector-id", "appliesTo": ["bpmn:Task"], "properties": [ { "label": "Some label", "type": "Dropdown", "feel": "optional", "binding": { "type": "zeebe:input", "name": "variableName", "key": "asd" }, "choices": [], "value": "=default expression" } ] }Steps to Reproduce
property.type=Dropdownas invalidExpected Behavior
We validate
feelinstead; it is not compatible withproperty.type=Dropdown.Environment