Skip to content

Commit 8e59229

Browse files
author
Ma Shimiao
committed
schema/config-linux: fix namespace based on runtime spec
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
1 parent d3c3763 commit 8e59229

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

schema/config-linux.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@
4848
},
4949
"namespaces": {
5050
"id": "https://opencontainers.org/schema/bundle/linux/namespaces",
51-
"type": "array",
52-
"items": {
53-
"anyOf": [
54-
{
51+
"oneOf": [
52+
{
53+
"type": "array",
54+
"items": {
5555
"$ref": "defs-linux.json#/definitions/NamespaceReference"
5656
}
57-
]
58-
}
57+
},
58+
{
59+
"type": "null"
60+
}
61+
]
5962
},
6063
"resources": {
6164
"id": "https://opencontainers.org/schema/bundle/linux/resources",

0 commit comments

Comments
 (0)