Skip to content

Commit 8320089

Browse files
committed
schema: Remove string pointers
Catch up with 868e631 (Remove string pointers, 2017-01-12, #653). Signed-off-by: W. Trevor King <wking@tremily.us>
1 parent f298e10 commit 8320089

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

schema/config-linux.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@
179179
"properties": {
180180
"cpus": {
181181
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/cpus",
182-
"$ref": "defs.json#/definitions/stringPointer"
182+
"$ref": "defs.json#/definitions/string"
183183
},
184184
"mems": {
185185
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/mems",
186-
"$ref": "defs.json#/definitions/stringPointer"
186+
"$ref": "defs.json#/definitions/string"
187187
},
188188
"period": {
189189
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/period",
@@ -290,14 +290,8 @@
290290
}
291291
},
292292
"cgroupsPath": {
293-
"oneOf": [
294-
{
295-
"type": "null"
296-
},
297-
{
298-
"type": "string"
299-
}
300-
]
293+
"id": "https://opencontainers.org/schema/bundle/linux/cgroupsPath",
294+
"$ref": "defs.json#/definitions/string"
301295
},
302296
"rootfsPropagation": {
303297
"id": "https://opencontainers.org/schema/bundle/linux/rootfsPropagation",

schema/defs-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
"type": "boolean"
231231
},
232232
"type": {
233-
"$ref": "defs.json#/definitions/stringPointer"
233+
"$ref": "defs.json#/definitions/string"
234234
},
235235
"major": {
236236
"oneOf": [
@@ -253,7 +253,7 @@
253253
]
254254
},
255255
"access": {
256-
"$ref": "defs.json#/definitions/stringPointer"
256+
"$ref": "defs.json#/definitions/string"
257257
}
258258
},
259259
"required": [

schema/defs.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,6 @@
8686
}
8787
]
8888
},
89-
"stringPointer": {
90-
"oneOf": [
91-
{
92-
"type": "string"
93-
},
94-
{
95-
"type": "null"
96-
}
97-
]
98-
},
9989
"mapStringString": {
10090
"type": "object",
10191
"patternProperties": {

0 commit comments

Comments
 (0)