Skip to content

Commit a04cce9

Browse files
author
Ma Shimiao
committed
fix blkio related validation
Signed-off-by: Ma Shimiao <[email protected]>
1 parent aad1f38 commit a04cce9

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

schema/config-linux.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"type": "array",
114114
"items": [
115115
{
116-
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
116+
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
117117
}
118118
]
119119
},
@@ -128,7 +128,7 @@
128128
{
129129
"type": "array",
130130
"items": {
131-
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
131+
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
132132
}
133133
},
134134
{
@@ -142,7 +142,7 @@
142142
{
143143
"type": "array",
144144
"items": {
145-
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
145+
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
146146
}
147147
},
148148
{
@@ -156,7 +156,7 @@
156156
{
157157
"type": "array",
158158
"items": {
159-
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
159+
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
160160
}
161161
},
162162
{
@@ -168,7 +168,7 @@
168168
"id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice",
169169
"type": "array",
170170
"items": {
171-
"$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer"
171+
"$ref": "defs-linux.json#/definitions/blockIODeviceWeight"
172172
}
173173
}
174174
}

schema/defs-linux.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,6 @@
188188
}
189189
]
190190
},
191-
"blockIODeviceWeightPointer": {
192-
"oneOf": [
193-
{
194-
"$ref": "#/definitions/blockIODeviceWeight"
195-
},
196-
{
197-
"type": "null"
198-
}
199-
]
200-
},
201191
"blockIODeviceThrottle": {
202192
"allOf": [
203193
{
@@ -207,22 +197,12 @@
207197
"type": "object",
208198
"properties": {
209199
"rate": {
210-
"$ref": "defs.json#/definitions/uint64Pointer"
200+
"$ref": "defs.json#/definitions/uint64"
211201
}
212202
}
213203
}
214204
]
215205
},
216-
"blockIODeviceThrottlePointer": {
217-
"oneOf": [
218-
{
219-
"$ref": "#/definitions/blockIODeviceThrottle"
220-
},
221-
{
222-
"type": "null"
223-
}
224-
]
225-
},
226206
"DeviceCgroup": {
227207
"type": "object",
228208
"properties": {

0 commit comments

Comments
 (0)