schema/defs-linux: Fix type for seccomp names

The:

  "type": [
    "string"
  ]

syntax added in 652323cd (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 <wking@tremily.us>
This commit is contained in:
W. Trevor King 2017-03-06 12:15:47 -08:00
parent d87ec6945f
commit 5bf9b95c45
1 changed files with 4 additions and 3 deletions

View File

@ -66,9 +66,10 @@
"type": "object", "type": "object",
"properties": { "properties": {
"names": { "names": {
"type": [ "type": "array",
"string" "items": {
] "type": "string"
}
}, },
"action": { "action": {
"$ref": "#/definitions/SeccompAction" "$ref": "#/definitions/SeccompAction"