From 938d3a40154cc8e950af815bf9ed883d6bf09f0b Mon Sep 17 00:00:00 2001 From: Adrien Barreau Date: Mon, 9 Oct 2023 12:37:21 +0200 Subject: [PATCH] Json schema (#484) * fix: JSON schema for final condition property Signed-off-by: Adrien Barreau * fix: JSON schema for foreach condition property Signed-off-by: Adrien Barreau --------- Signed-off-by: Adrien Barreau --- hack/template-schema.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/hack/template-schema.json b/hack/template-schema.json index 0a924d5a..0bb30837 100644 --- a/hack/template-schema.json +++ b/hack/template-schema.json @@ -801,6 +801,15 @@ "check" ] }, + "foreach": { + "type": "string", + "description": "Whether this skip condition stops the parent or the children of a foreach step (parent forbidden ouside of foreach or on a check condition)", + "default": "children", + "enum": [ + "parent", + "children" + ] + }, "if": { "type": "array", "items": { @@ -850,6 +859,11 @@ "type": "object", "description": "Describes state changement if all conditions match" }, + "final": { + "type": "boolean", + "description": "Whether the condition execution continues if this one evaluates to true", + "default": false + }, "message": { "type": "string", "description": "Message to display in the UI if condition match" @@ -1167,4 +1181,4 @@ "type": "boolean" } } -} \ No newline at end of file +}