diff --git a/packages/zeebe-element-templates-json-schema/src/defs/examples.json b/packages/zeebe-element-templates-json-schema/src/defs/examples.json index 8637678..40e444f 100644 --- a/packages/zeebe-element-templates-json-schema/src/defs/examples.json +++ b/packages/zeebe-element-templates-json-schema/src/defs/examples.json @@ -17,9 +17,6 @@ "type": "zeebe:property", "name": "property" }, - { - "type": "zeebe:taskDefinition:type" - }, { "type": "zeebe:taskHeader", "key": "key" @@ -27,6 +24,10 @@ { "type": "zeebe:taskDefinition", "property": "retries" + }, + { + "type": "zeebe:taskDefinition", + "property": "type" } ] } diff --git a/packages/zeebe-element-templates-json-schema/src/defs/properties.json b/packages/zeebe-element-templates-json-schema/src/defs/properties.json index 6b3e206..80eaa7f 100644 --- a/packages/zeebe-element-templates-json-schema/src/defs/properties.json +++ b/packages/zeebe-element-templates-json-schema/src/defs/properties.json @@ -303,11 +303,34 @@ ] }, "then": { + "properties": { + "property": { + "enum": [ + "type", + "retries" + ] + } + }, "required": [ "property" ] } }, + { + "if": { + "properties": { + "type": { + "const": "zeebe:taskDefinition:type" + } + }, + "required": [ + "type" + ] + }, + "then": { + "deprecated": true + } + }, { "$ref": "examples.json#/binding" }