Skip to content

Commit 7f7cb70

Browse files
committed
feat(Schema): Added "error" operation, used to throw an error
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent c113e52 commit 7f7cb70

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

schema/workflow.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@
377377
"description": "References a sub-workflow to invoke",
378378
"$ref": "#/definitions/subflowref"
379379
},
380+
"errorRef": {
381+
"description": "References or defines the error to throw",
382+
"$ref": "errors.json#/definitions/errorReference"
383+
},
380384
"sleep": {
381385
"description": "Defines time periods workflow execution should sleep before / after function execution",
382386
"$ref": "#/definitions/sleep"
383387
},
384-
"retryRef": {
385-
"type": "string",
386-
"description": "References a defined workflow retry definition. If not defined the default retry policy is assumed"
387-
},
388388
"onErrors":{
389389
"$ref": "#/definitions/onerrors"
390390
},
@@ -417,6 +417,12 @@
417417
"name",
418418
"subFlowRef"
419419
]
420+
},
421+
{
422+
"required": [
423+
"name",
424+
"errorRef"
425+
]
420426
}
421427
]
422428
},

0 commit comments

Comments
 (0)