Skip to content

Commit

Permalink
fix: add definition for subworkflow unit
Browse files Browse the repository at this point in the history
  • Loading branch information
seankwarren committed Nov 25, 2023
1 parent 90bdf80 commit 96594df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"items": {
"oneOf": [
{
"$ref": "workflow/unit.json"
"$ref": "workflow/unit/subworkflowUnit.json"
},
{
"$ref": "workflow/unit/io.json"
Expand Down
21 changes: 21 additions & 0 deletions schema/workflow/unit/subworkflowUnit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$id": "workflow/unit/subworkflow",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "subworkflow unit schema",
"type": "object",
"allOf": [
{
"$ref": "../unit.json"
}
],
"properties": {
"type": {
"enum": [
"subworkflow"
]
}
},
"required": [
"name"
]
}

0 comments on commit 96594df

Please sign in to comment.