Skip to content

Commit 5bf9b95

Browse files
committed
schema/defs-linux: Fix type for seccomp names
The: "type": [ "string" ] syntax added in 652323c (improve seccomp format to be more expressive, 2017-01-13, #657) is not valid: $ ./validate ./config-schema.json <../config.json The document is not valid. see errors : - linux.seccomp.syscalls.0.names: Invalid type. Expected: string, given: array Signed-off-by: W. Trevor King <[email protected]>
1 parent d87ec69 commit 5bf9b95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

schema/defs-linux.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@
6666
"type": "object",
6767
"properties": {
6868
"names": {
69-
"type": [
70-
"string"
71-
]
69+
"type": "array",
70+
"items": {
71+
"type": "string"
72+
}
7273
},
7374
"action": {
7475
"$ref": "#/definitions/SeccompAction"

0 commit comments

Comments
 (0)