Skip to content

Commit

Permalink
schema: Remove string pointers
Browse files Browse the repository at this point in the history
Catch up with 868e631 (Remove string pointers, 2017-01-12, opencontainers#653).

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Jan 13, 2017
1 parent f298e10 commit c6c68c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@
"properties": {
"cpus": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/cpus",
"$ref": "defs.json#/definitions/stringPointer"
"$ref": "defs.json#/definitions/string"
},
"mems": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/mems",
"$ref": "defs.json#/definitions/stringPointer"
"$ref": "defs.json#/definitions/string"
},
"period": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/period",
Expand Down
4 changes: 2 additions & 2 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"type": "boolean"
},
"type": {
"$ref": "defs.json#/definitions/stringPointer"
"$ref": "defs.json#/definitions/string"
},
"major": {
"oneOf": [
Expand All @@ -253,7 +253,7 @@
]
},
"access": {
"$ref": "defs.json#/definitions/stringPointer"
"$ref": "defs.json#/definitions/string"
}
},
"required": [
Expand Down
10 changes: 0 additions & 10 deletions schema/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@
}
]
},
"stringPointer": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"mapStringString": {
"type": "object",
"patternProperties": {
Expand Down

0 comments on commit c6c68c7

Please sign in to comment.