|
155 | 155 | }, |
156 | 156 | "additionalProperties": false |
157 | 157 | }, |
158 | | - "cap_add": {"type": "array", "items": {"type": "string"}}, |
159 | | - "cap_drop": {"type": "array", "items": {"type": "string"}}, |
| 158 | + "cap_add": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
| 159 | + "cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
160 | 160 | "cgroup": {"type": "string", "enum": ["host", "private"]}, |
161 | 161 | "cgroup_parent": {"type": "string"}, |
162 | 162 | "command": {"$ref": "#/definitions/command"}, |
|
216 | 216 | ] |
217 | 217 | }, |
218 | 218 | "device_cgroup_rules": {"$ref": "#/definitions/list_of_strings"}, |
219 | | - "devices": {"type": "array", "items": {"type": "string"}}, |
| 219 | + "devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
220 | 220 | "dns": {"$ref": "#/definitions/string_or_list"}, |
221 | | - "dns_opt": {"type": "array","items": {"type": "string"}}, |
| 221 | + "dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true}, |
222 | 222 | "dns_search": {"$ref": "#/definitions/string_or_list"}, |
223 | 223 | "domainname": {"type": "string"}, |
224 | 224 | "entrypoint": {"$ref": "#/definitions/command"}, |
|
230 | 230 | "items": { |
231 | 231 | "type": ["string", "number"], |
232 | 232 | "format": "expose" |
233 | | - } |
| 233 | + }, |
| 234 | + "uniqueItems": true |
234 | 235 | }, |
235 | 236 | "extends": { |
236 | 237 | "oneOf": [ |
|
247 | 248 | } |
248 | 249 | ] |
249 | 250 | }, |
250 | | - "external_links": {"type": "array", "items": {"type": "string"}}, |
| 251 | + "external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
251 | 252 | "extra_hosts": {"$ref": "#/definitions/list_or_dict"}, |
252 | 253 | "group_add": { |
253 | 254 | "type": "array", |
254 | 255 | "items": { |
255 | 256 | "type": ["string", "number"] |
256 | | - } |
| 257 | + }, |
| 258 | + "uniqueItems": true |
257 | 259 | }, |
258 | 260 | "healthcheck": {"$ref": "#/definitions/healthcheck"}, |
259 | 261 | "hostname": {"type": "string"}, |
|
262 | 264 | "ipc": {"type": "string"}, |
263 | 265 | "isolation": {"type": "string"}, |
264 | 266 | "labels": {"$ref": "#/definitions/list_or_dict"}, |
265 | | - "links": {"type": "array", "items": {"type": "string"}}, |
| 267 | + "links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
266 | 268 | "logging": { |
267 | 269 | "type": "object", |
268 | 270 |
|
|
348 | 350 | "patternProperties": {"^x-": {}} |
349 | 351 | } |
350 | 352 | ] |
351 | | - } |
| 353 | + }, |
| 354 | + "uniqueItems": true |
352 | 355 | }, |
353 | 356 | "privileged": {"type": ["boolean", "string"]}, |
354 | 357 | "profiles": {"$ref": "#/definitions/list_of_strings"}, |
|
363 | 366 | "scale": { |
364 | 367 | "type": ["integer", "string"] |
365 | 368 | }, |
366 | | - "security_opt": {"type": "array", "items": {"type": "string"}}, |
| 369 | + "security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
367 | 370 | "shm_size": {"type": ["number", "string"]}, |
368 | 371 | "secrets": {"$ref": "#/definitions/service_config_or_secret"}, |
369 | 372 | "sysctls": {"$ref": "#/definitions/list_or_dict"}, |
|
429 | 432 | "patternProperties": {"^x-": {}} |
430 | 433 | } |
431 | 434 | ] |
432 | | - } |
| 435 | + }, |
| 436 | + "uniqueItems": true |
433 | 437 | }, |
434 | 438 | "volumes_from": { |
435 | 439 | "type": "array", |
436 | | - "items": {"type": "string"} |
| 440 | + "items": {"type": "string"}, |
| 441 | + "uniqueItems": true |
437 | 442 | }, |
438 | 443 | "working_dir": {"type": "string"} |
439 | 444 | }, |
|
828 | 833 |
|
829 | 834 | "list_of_strings": { |
830 | 835 | "type": "array", |
831 | | - "items": {"type": "string"} |
| 836 | + "items": {"type": "string"}, |
| 837 | + "uniqueItems": true |
832 | 838 | }, |
833 | 839 |
|
834 | 840 | "list_or_dict": { |
|
842 | 848 | }, |
843 | 849 | "additionalProperties": false |
844 | 850 | }, |
845 | | - {"type": "array", "items": {"type": "string"}} |
| 851 | + {"type": "array", "items": {"type": "string"}, "uniqueItems": true} |
846 | 852 | ] |
847 | 853 | }, |
848 | 854 |
|
|
0 commit comments