From d143670b93299e35b63f1039ca769315d1b087ee Mon Sep 17 00:00:00 2001 From: Alexander Skrock Date: Sat, 7 Oct 2023 00:11:55 +0200 Subject: [PATCH] feat(element-templates) allow both attributes to be missing --- .../src/defs/properties.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/element-templates-json-schema/src/defs/properties.json b/packages/element-templates-json-schema/src/defs/properties.json index 20f9d12..c3e049f 100644 --- a/packages/element-templates-json-schema/src/defs/properties.json +++ b/packages/element-templates-json-schema/src/defs/properties.json @@ -88,7 +88,23 @@ } }, { - "required": ["scriptFormat"] + "required": [ + "scriptFormat" + ] + }, + { + "allOf": [ + { + "not": { + "required": ["implementationType"] + } + }, + { + "not": { + "required": ["scriptFormat"] + } + } + ] } ] }