schema/defs.json: Pull ociVersion over from config-schema.json

So we can use it in the coming state-schema.json without duplication.
While I'm touching it, I updated the spec title to match the project
README's header.  I also dropped the "id" because none of the other
defs.json entries had an ID.

Signed-off-by: W. Trevor King <wking@tremily.us>
This commit is contained in:
W. Trevor King 2016-06-01 15:46:17 -07:00
parent 59ede1a6ac
commit 28cbd4dd8e
2 changed files with 5 additions and 2 deletions

View File

@ -5,9 +5,8 @@
"type": "object", "type": "object",
"properties": { "properties": {
"ociVersion": { "ociVersion": {
"description": "The version of OpenContainer specification configuration complies with",
"id": "https://opencontainers.org/schema/bundle/ociVersion", "id": "https://opencontainers.org/schema/bundle/ociVersion",
"type": "string" "$ref": "defs.json#/definitions/ociVersion"
}, },
"hooks": { "hooks": {
"id": "https://opencontainers.org/schema/bundle/hooks", "id": "https://opencontainers.org/schema/bundle/hooks",

View File

@ -155,6 +155,10 @@
"source", "source",
"type" "type"
] ]
},
"ociVersion": {
"description": "The version of Open Container Runtime Specification that the document complies with",
"type": "string"
} }
} }
} }