Skip to content

Commit

Permalink
fix blkio related validation
Browse files Browse the repository at this point in the history
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
  • Loading branch information
Ma Shimiao committed Aug 29, 2016
1 parent 069e8e1 commit 5d47014
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
23 changes: 15 additions & 8 deletions schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"type": "array",
"items": [
{
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
]
},
Expand All @@ -111,7 +111,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -125,7 +125,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -139,7 +139,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -149,10 +149,17 @@
},
"blkioWeightDevice": {
"id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer"
}
"oneOf": [
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceWeight"
}
},
{
"type": "null"
}
]
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
},
"Major": {
"description": "major device number",
"$ref": "defs.json#/definitions/uint16"
"$ref": "defs.json#/definitions/int16"
},
"Minor": {
"description": "minor device number",
"$ref": "defs.json#/definitions/uint16"
"$ref": "defs.json#/definitions/int16"
},
"FileMode": {
"description": "File permissions mode (typically an octal value)",
Expand Down

0 comments on commit 5d47014

Please sign in to comment.