From 8e5922918bf84ce1bb9d2b9bdb422f0f78827351 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Tue, 6 Sep 2016 22:58:42 +0800 Subject: [PATCH] schema/config-linux: fix namespace based on runtime spec Signed-off-by: Ma Shimiao --- schema/config-linux.json | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/schema/config-linux.json b/schema/config-linux.json index 518b71ae7..5c27e4137 100644 --- a/schema/config-linux.json +++ b/schema/config-linux.json @@ -48,14 +48,17 @@ }, "namespaces": { "id": "https://opencontainers.org/schema/bundle/linux/namespaces", - "type": "array", - "items": { - "anyOf": [ - { + "oneOf": [ + { + "type": "array", + "items": { "$ref": "defs-linux.json#/definitions/NamespaceReference" } - ] - } + }, + { + "type": "null" + } + ] }, "resources": { "id": "https://opencontainers.org/schema/bundle/linux/resources",