From 7f7cb704dbae12243a4c8dd8f57229c45cfc0996 Mon Sep 17 00:00:00 2001 From: Charles d'Avernas Date: Thu, 15 Feb 2024 16:52:08 +0100 Subject: [PATCH] feat(Schema): Added "error" operation, used to throw an error Signed-off-by: Charles d'Avernas --- schema/workflow.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/schema/workflow.json b/schema/workflow.json index f2bd236d..7716d552 100644 --- a/schema/workflow.json +++ b/schema/workflow.json @@ -377,14 +377,14 @@ "description": "References a sub-workflow to invoke", "$ref": "#/definitions/subflowref" }, + "errorRef": { + "description": "References or defines the error to throw", + "$ref": "errors.json#/definitions/errorReference" + }, "sleep": { "description": "Defines time periods workflow execution should sleep before / after function execution", "$ref": "#/definitions/sleep" }, - "retryRef": { - "type": "string", - "description": "References a defined workflow retry definition. If not defined the default retry policy is assumed" - }, "onErrors":{ "$ref": "#/definitions/onerrors" }, @@ -417,6 +417,12 @@ "name", "subFlowRef" ] + }, + { + "required": [ + "name", + "errorRef" + ] } ] },