Skip to content

Commit 55ae274

Browse files
authored
Merge pull request #1206 from giuseppe/fix-definition-io-priority
schema: fix definition for ioPriority
2 parents 9447d3c + d46c8b2 commit 55ae274

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

schema/config-schema.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,23 @@
145145
"type": "string"
146146
},
147147
"ioPriority": {
148-
"class": "string",
149-
"enum": [
150-
"IOPRIO_CLASS_RT",
151-
"IOPRIO_CLASS_BE",
152-
"IOPRIO_CLASS_IDLE"
148+
"type": "object",
149+
"required": [
150+
"class"
153151
],
154-
"priority": "integer"
152+
"properties": {
153+
"class": {
154+
"type": "string",
155+
"enum": [
156+
"IOPRIO_CLASS_RT",
157+
"IOPRIO_CLASS_BE",
158+
"IOPRIO_CLASS_IDLE"
159+
]
160+
},
161+
"priority": {
162+
"$ref": "defs.json#/definitions/int32"
163+
}
164+
}
155165
},
156166
"noNewPrivileges": {
157167
"type": "boolean"

0 commit comments

Comments
 (0)