Skip to content

Commit

Permalink
Merge pull request #655 from Mashimiao/schema-fix-with-latest-spec
Browse files Browse the repository at this point in the history
schema: fix items based on latest spec
  • Loading branch information
vbatts authored Jan 18, 2017
2 parents 937ea7b + 5076439 commit dc0fa75
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@
"id": "https://opencontainers.org/schema/bundle/linux/resources/memory/kernel",
"$ref": "defs.json#/definitions/int64Pointer"
},
"kernelTCP": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/memory/kernelTCP",
"$ref": "defs.json#/definitions/int64Pointer"
},
"limit": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/memory/limit",
"$ref": "defs.json#/definitions/int64Pointer"
Expand Down
24 changes: 16 additions & 8 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
"minimum": 0,
"maximum": 512
},
"FilePermissions": {
"type": "string"
},
"FileType": {
"description": "Type of a block or special character device",
"type": "string",
Expand All @@ -116,9 +113,6 @@
"type": {
"$ref": "#/definitions/FileType"
},
"permissions": {
"$ref": "#/definitions/FilePermissions"
},
"path": {
"$ref": "defs.json#/definitions/FilePath"
},
Expand All @@ -132,10 +126,24 @@
"$ref": "#/definitions/Minor"
},
"uid": {
"$ref": "defs.json#/definitions/UID"
"oneOf": [
{
"$ref": "defs.json#/definitions/UID"
},
{
"type": "null"
}
]
},
"gid": {
"$ref": "defs.json#/definitions/GID"
"oneOf": [
{
"$ref": "defs.json#/definitions/GID"
},
{
"type": "null"
}
]
}
}
},
Expand Down

0 comments on commit dc0fa75

Please sign in to comment.