Skip to content

Commit 8095e4e

Browse files
author
Mrunal Patel
authored
Merge pull request #528 from hmeng-19/add_missing_type
Add missing `"type": "object"`
2 parents 90027b0 + da3b96e commit 8095e4e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

schema/config-linux.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
},
7070
"pids": {
7171
"id": "https://opencontainers.org/schema/bundle/linux/resources/pids",
72+
"type": "object",
7273
"properties": {
7374
"limit": {
7475
"id": "https://opencontainers.org/schema/bundle/linux/resources/pids/limit",
@@ -157,6 +158,7 @@
157158
},
158159
"cpu": {
159160
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu",
161+
"type": "object",
160162
"properties": {
161163
"cpus": {
162164
"id": "https://opencontainers.org/schema/bundle/linux/resources/cpu/cpus",
@@ -283,6 +285,7 @@
283285
},
284286
"seccomp": {
285287
"id": "https://opencontainers.org/schema/bundle/linux/seccomp",
288+
"type": "object",
286289
"properties": {
287290
"defaultAction": {
288291
"id": "https://opencontainers.org/schema/bundle/linux/seccomp/defaultAction",

schema/defs-linux.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
]
4545
},
4646
"SyscallArg": {
47+
"type": "object",
4748
"properties": {
4849
"index": {
4950
"$ref": "defs.json#/definitions/uint32"
@@ -60,6 +61,7 @@
6061
}
6162
},
6263
"Syscall": {
64+
"type": "object",
6365
"properties": {
6466
"name": {
6567
"type": "string"
@@ -103,6 +105,7 @@
103105
"pattern": "^[cbup]$"
104106
},
105107
"Device": {
108+
"type": "object",
106109
"properties": {
107110
"type": {
108111
"$ref": "#/definitions/FileType"
@@ -146,6 +149,7 @@
146149
]
147150
},
148151
"blockIODevice": {
152+
"type": "object",
149153
"properties": {
150154
"major": {
151155
"$ref": "#/definitions/Major"
@@ -166,6 +170,7 @@
166170
"$ref": "#/definitions/blockIODevice"
167171
},
168172
{
173+
"type": "object",
169174
"properties": {
170175
"weight": {
171176
"$ref": "#/definitions/blkioWeightPointer"
@@ -193,6 +198,7 @@
193198
"$ref": "#/definitions/blockIODevice"
194199
},
195200
{
201+
"type": "object",
196202
"properties": {
197203
"rate": {
198204
"$ref": "defs.json#/definitions/uint64Pointer"
@@ -212,6 +218,7 @@
212218
]
213219
},
214220
"NetworkInterfacePriority": {
221+
"type": "object",
215222
"properties": {
216223
"name": {
217224
"type": "string"
@@ -234,6 +241,7 @@
234241
]
235242
},
236243
"NamespaceReference": {
244+
"type": "object",
237245
"properties": {
238246
"type": {
239247
"$ref": "#/definitions/NamespaceType"

schema/defs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"$ref": "#/definitions/ArrayOfStrings"
105105
},
106106
"Hook": {
107+
"type": "object",
107108
"properties": {
108109
"path": {
109110
"$ref": "#/definitions/FilePath"
@@ -123,6 +124,7 @@
123124
}
124125
},
125126
"IDMapping": {
127+
"type": "object",
126128
"properties": {
127129
"hostID": {
128130
"$ref": "#/definitions/uint32"
@@ -136,6 +138,7 @@
136138
}
137139
},
138140
"Mount": {
141+
"type": "object",
139142
"properties": {
140143
"source": {
141144
"$ref": "#/definitions/FilePath"

0 commit comments

Comments
 (0)