From a27dc5aea4fbdfcb0c5bb91dae868b419d0f4e55 Mon Sep 17 00:00:00 2001 From: Martin Stamm Date: Fri, 9 Feb 2024 11:46:04 +0100 Subject: [PATCH] fix(condition): correctly apply `allOf` condition closes #133 --- .../src/defs/condition.json | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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 855aeea..1974187 100644 --- a/packages/element-templates-json-schema-shared/src/defs/condition.json +++ b/packages/element-templates-json-schema-shared/src/defs/condition.json @@ -80,14 +80,19 @@ "required": [ "allMatch" ], - "allMatch": { - "contains": { - "properties": { - "property": { - "const": { - "$data": "2/id" + "properties": { + "allMatch": { + "contains": { + "properties": { + "property": { + "const": { + "$data": "4/id" + } } - } + }, + "required": [ + "property" + ] } } }