mirror of
https://github.com/docker/compose.git
synced 2025-07-20 12:14:41 +02:00
Correct some schema field definitions
Now validation is split in two, the integration tests helped highlight some places where the schema definition was incorrect. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
9979880c9f
commit
f51a5431ec
@ -19,7 +19,12 @@
|
|||||||
"cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
"cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
"command": {"$ref": "#/definitions/string_or_list"},
|
"command": {"$ref": "#/definitions/string_or_list"},
|
||||||
"container_name": {"type": "string"},
|
"container_name": {"type": "string"},
|
||||||
"cpu_shares": {"type": "string"},
|
"cpu_shares": {
|
||||||
|
"oneOf": [
|
||||||
|
{"type": "number"},
|
||||||
|
{"type": "string"}
|
||||||
|
]
|
||||||
|
},
|
||||||
"cpuset": {"type": "string"},
|
"cpuset": {"type": "string"},
|
||||||
"detach": {"type": "boolean"},
|
"detach": {"type": "boolean"},
|
||||||
"devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
"devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
@ -27,7 +32,7 @@
|
|||||||
"dns_search": {"$ref": "#/definitions/string_or_list"},
|
"dns_search": {"$ref": "#/definitions/string_or_list"},
|
||||||
"dockerfile": {"type": "string"},
|
"dockerfile": {"type": "string"},
|
||||||
"domainname": {"type": "string"},
|
"domainname": {"type": "string"},
|
||||||
"entrypoint": {"type": "string"},
|
"entrypoint": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
"env_file": {"$ref": "#/definitions/string_or_list"},
|
"env_file": {"$ref": "#/definitions/string_or_list"},
|
||||||
|
|
||||||
"environment": {
|
"environment": {
|
||||||
@ -75,7 +80,7 @@
|
|||||||
},
|
},
|
||||||
"name": {"type": "string"},
|
"name": {"type": "string"},
|
||||||
"net": {"type": "string"},
|
"net": {"type": "string"},
|
||||||
"pid": {"type": "string"},
|
"pid": {"type": ["string", "null"]},
|
||||||
|
|
||||||
"ports": {
|
"ports": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -94,10 +99,10 @@
|
|||||||
"uniqueItems": true
|
"uniqueItems": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"privileged": {"type": "string"},
|
"privileged": {"type": "boolean"},
|
||||||
"read_only": {"type": "boolean"},
|
"read_only": {"type": "boolean"},
|
||||||
"restart": {"type": "string"},
|
"restart": {"type": "string"},
|
||||||
"security_opt": {"type": "string"},
|
"security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
"stdin_open": {"type": "string"},
|
"stdin_open": {"type": "string"},
|
||||||
"tty": {"type": "string"},
|
"tty": {"type": "string"},
|
||||||
"user": {"type": "string"},
|
"user": {"type": "string"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user