Skip to content

Commit 5f166e8

Browse files
committed
add version field at the schema top level
1 parent 4b7b0b9 commit 5f166e8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

json-schema/workflow.schema.json renamed to src/schema/workflow.schema.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"version": "0.0.1",
43
"title": "Workflow",
54
"type": "object",
65
"properties": {
6+
"schemaVersion": {
7+
"type": "string",
8+
"default": "0.0.1"
9+
},
710
"tasks": {
811
"type": "array",
912
"items": {
@@ -31,7 +34,10 @@
3134
"description": "Timezone for the schedule."
3235
}
3336
},
34-
"required": ["tasks", "name"],
37+
"required": [
38+
"tasks",
39+
"name"
40+
],
3541
"definitions": {
3642
"Task": {
3743
"type": "object",
@@ -95,7 +101,11 @@
95101
"description": "DAG node ID of this task."
96102
}
97103
},
98-
"required": ["input_uri", "name", "node_id"]
104+
"required": [
105+
"input_uri",
106+
"name",
107+
"node_id"
108+
]
99109
}
100110
}
101-
}
111+
}

0 commit comments

Comments
 (0)