Skip to content

Commit

Permalink
feat(Schema): Added "error" operation, used to throw an error
Browse files Browse the repository at this point in the history
Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
  • Loading branch information
cdavernas committed Feb 15, 2024
1 parent c113e52 commit 7f7cb70
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions schema/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -417,6 +417,12 @@
"name",
"subFlowRef"
]
},
{
"required": [
"name",
"errorRef"
]
}
]
},
Expand Down

0 comments on commit 7f7cb70

Please sign in to comment.