Skip to content

Commit 5e656f4

Browse files
committed
schema: removed unneeded oneOfs
Signed-off-by: Vincent Batts <[email protected]>
1 parent cee386a commit 5e656f4

3 files changed

Lines changed: 5 additions & 25 deletions

File tree

schema/defs.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,13 @@
8888
"ArrayOfGIDs": {
8989
"type": "array",
9090
"items": {
91-
"oneOf": [
92-
{
93-
"$ref": "#/definitions/GID"
94-
}
95-
]
91+
"$ref": "#/definitions/GID"
9692
}
9793
},
9894
"ArrayOfStrings": {
9995
"type": "array",
10096
"items": {
101-
"oneOf": [
102-
{
103-
"type": "string"
104-
}
105-
]
97+
"type": "string"
10698
}
10799
},
108100
"FilePath": {
@@ -127,11 +119,7 @@
127119
"ArrayOfHooks": {
128120
"type": "array",
129121
"items": {
130-
"oneOf": [
131-
{
132-
"$ref": "#/definitions/Hook"
133-
}
134-
]
122+
"$ref": "#/definitions/Hook"
135123
}
136124
},
137125
"IDMapping": {

schema/schema-linux.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,7 @@
341341
"id": "https://opencontainers.org/schema/bundle/linux/seccomp/syscalls",
342342
"type": "array",
343343
"items": {
344-
"oneOf": [
345-
{
346-
"$ref": "defs-linux.json#/definitions/Syscall"
347-
}
348-
]
344+
"$ref": "defs-linux.json#/definitions/Syscall"
349345
}
350346
}
351347
},

schema/schema.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@
3232
"id": "https://opencontainers.org/schema/bundle/mounts",
3333
"type": "array",
3434
"items": {
35-
"oneOf": [
36-
{
37-
"$ref": "defs.json#/definitions/Mount"
38-
}
39-
]
35+
"$ref": "defs.json#/definitions/Mount"
4036
}
4137
},
4238
"platform": {

0 commit comments

Comments
 (0)