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 Jan 12, 2017
1 parent aad1f38 commit a04cce9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
10 changes: 5 additions & 5 deletions schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"type": "array",
"items": [
{
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
]
},
Expand All @@ -128,7 +128,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -142,7 +142,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -156,7 +156,7 @@
{
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
}
},
{
Expand All @@ -168,7 +168,7 @@
"id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer"
"$ref": "defs-linux.json#/definitions/blockIODeviceWeight"
}
}
}
Expand Down
22 changes: 1 addition & 21 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,6 @@
}
]
},
"blockIODeviceWeightPointer": {
"oneOf": [
{
"$ref": "#/definitions/blockIODeviceWeight"
},
{
"type": "null"
}
]
},
"blockIODeviceThrottle": {
"allOf": [
{
Expand All @@ -207,22 +197,12 @@
"type": "object",
"properties": {
"rate": {
"$ref": "defs.json#/definitions/uint64Pointer"
"$ref": "defs.json#/definitions/uint64"
}
}
}
]
},
"blockIODeviceThrottlePointer": {
"oneOf": [
{
"$ref": "#/definitions/blockIODeviceThrottle"
},
{
"type": "null"
}
]
},
"DeviceCgroup": {
"type": "object",
"properties": {
Expand Down

0 comments on commit a04cce9

Please sign in to comment.