From a8229385880633fdab4c499736e031df3005cf29 Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Mon, 30 Oct 2023 11:30:53 +0100 Subject: [PATCH] feat: mark `zeebe:taskDefinition:type` as deprecated The binding is replaced with `zeebe:taskDefinition` which suggests both `retries` and `type` property names. --- .../src/defs/examples.json | 7 +++--- .../src/defs/properties.json | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) 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" }