Skip to content

Commit

Permalink
schema/defs-linux: Fix type for seccomp names
Browse files Browse the repository at this point in the history
The:

  "type": [
    "string"
  ]

syntax added in 652323c (improve seccomp format to be more
expressive, 2017-01-13, opencontainers#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>
  • Loading branch information
wking committed Mar 6, 2017
1 parent d87ec69 commit 5bf9b95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
"type": "object",
"properties": {
"names": {
"type": [
"string"
]
"type": "array",
"items": {
"type": "string"
}
},
"action": {
"$ref": "#/definitions/SeccompAction"
Expand Down

0 comments on commit 5bf9b95

Please sign in to comment.