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:
parent
d87ec6945f
commit
5bf9b95c45
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue