diff --git a/packages/element-templates-json-schema-shared/src/defs/condition.json b/packages/element-templates-json-schema-shared/src/defs/condition.json index 3904ff7..19108d0 100644 --- a/packages/element-templates-json-schema-shared/src/defs/condition.json +++ b/packages/element-templates-json-schema-shared/src/defs/condition.json @@ -1,4 +1,32 @@ { + "allOf": [ + { + "if": { + "required": [ + "id", + "condition" + ] + }, + "then": { + "not": { + "properties": { + "condition": { + "required": [ + "property" + ], + "properties": { + "property": { + "const": { + "$data": "2/id" + } + } + } + } + } + } + } + } + ], "properties": { "id": { "type": "string",