From 5bf9b95c450fd5fbfe86028100acfd53933decd6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 6 Mar 2017 12:15:47 -0800 Subject: [PATCH] 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 --- schema/defs-linux.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/schema/defs-linux.json b/schema/defs-linux.json index 7548e286f..094037654 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -66,9 +66,10 @@ "type": "object", "properties": { "names": { - "type": [ - "string" - ] + "type": "array", + "items": { + "type": "string" + } }, "action": { "$ref": "#/definitions/SeccompAction"