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",