Skip to content

Commit

Permalink
Tweak $id URI format and add version
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkwang committed Aug 4, 2021
1 parent 05d804a commit 146bebe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion schema/build/generate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def op_to_component(op):
])
operation = {
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "http://standards.ncats.io/operation.json",
"$id": "http://standards.ncats.io/operation/1.0.0/schema",
"anyOf": [
{
"$ref": f"#/$defs/{op_to_component(op)}"
Expand Down
2 changes: 1 addition & 1 deletion schema/operation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "http://standards.ncats.io/operation.json",
"$id": "http://standards.ncats.io/operation/1.0.0/schema",
"anyOf": [
{
"$ref": "#/$defs/OperationAnnotate"
Expand Down
4 changes: 2 additions & 2 deletions schema/workflow.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "http://standards.ncats.io/workflow.json",
"$id": "http://standards.ncats.io/workflow/1.0.0/schema",
"type": "array",
"items": {
"$ref": "http://standards.ncats.io/operation.json"
"$ref": "http://standards.ncats.io/operation/1.0.0/schema"
}
}

0 comments on commit 146bebe

Please sign in to comment.