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" + ] } ] },