Skip to content

Commit ec99788

Browse files
author
zhouhao
committed
config-schema: Optimize code
Signed-off-by: zhouhao <[email protected]>
1 parent 5723c6c commit ec99788

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

schema/config-schema.json

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -125,38 +125,23 @@
125125
"properties": {
126126
"bounding": {
127127
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/bounding",
128-
"type": "array",
129-
"items": {
130-
"type": "string"
131-
}
128+
"$ref": "defs.json#/definitions/ArrayOfStrings"
132129
},
133130
"permitted": {
134131
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/permitted",
135-
"type": "array",
136-
"items": {
137-
"type": "string"
138-
}
132+
"$ref": "defs.json#/definitions/ArrayOfStrings"
139133
},
140134
"effective": {
141135
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/effective",
142-
"type": "array",
143-
"items": {
144-
"type": "string"
145-
}
136+
"$ref": "defs.json#/definitions/ArrayOfStrings"
146137
},
147138
"inheritable": {
148139
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/inheritable",
149-
"type": "array",
150-
"items": {
151-
"type": "string"
152-
}
140+
"$ref": "defs.json#/definitions/ArrayOfStrings"
153141
},
154142
"ambient": {
155143
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/ambient",
156-
"type": "array",
157-
"items": {
158-
"type": "string"
159-
}
144+
"$ref": "defs.json#/definitions/ArrayOfStrings"
160145
}
161146
}
162147
},

0 commit comments

Comments
 (0)