Skip to content

Commit

Permalink
schema/defs.json: Pull annotations over from config-schema.json
Browse files Browse the repository at this point in the history
So we can use it in the coming state-schema.json without duplication.
I dropped the "id" because none of the other defs.json entries had an
ID.

Signed-off-by: W. Trevor King <[email protected]>
  • Loading branch information
wking committed Jun 6, 2016
1 parent 500e344 commit 35b17a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 1 addition & 9 deletions schema/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@
}
},
"annotations": {
"id": "https://opencontainers.org/schema/bundle/annotations",
"oneOf": [
{
"$ref": "defs.json#/definitions/mapStringString"
},
{
"type": "null"
}
]
"$ref": "defs.json#/definitions/annotations"
},
"hostname": {
"id": "https://opencontainers.org/schema/bundle/hostname",
Expand Down
10 changes: 10 additions & 0 deletions schema/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@
"ociVersion": {
"description": "The version of Open Container Runtime Specification that the document complies with",
"type": "string"
},
"annotations": {
"oneOf": [
{
"$ref": "#/definitions/mapStringString"
},
{
"type": "null"
}
]
}
}
}

0 comments on commit 35b17a2

Please sign in to comment.