Skip to content

Commit 6e19bb9

Browse files
committed
schema/defs.json: Pull ociVersion over from config.json
So we can use it in the coming state.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 <[email protected]>
1 parent cb8e8cb commit 6e19bb9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

schema/config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"type": "object",
66
"properties": {
77
"ociVersion": {
8-
"description": "The version of OpenContainer specification configuration complies with",
98
"id": "https://opencontainers.org/schema/bundle/ociVersion",
10-
"type": "string"
9+
"$ref": "defs.json#/definitions/ociVersion"
1110
},
1211
"hooks": {
1312
"id": "https://opencontainers.org/schema/bundle/hooks",

schema/defs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@
155155
"source",
156156
"type"
157157
]
158+
},
159+
"ociVersion": {
160+
"description": "The version of Open Container Runtime Specification that the document complies with",
161+
"type": "string"
158162
}
159163
}
160164
}

0 commit comments

Comments
 (0)