Skip to content

Commit 5713643

Browse files
authored
Merge pull request #370 from compose-spec/compose-spec
Update compose-spec.json
2 parents ec503aa + 16e2509 commit 5713643

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

schema/compose-spec.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,7 @@
146146
"cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
147147
"cgroup": {"type": "string", "enum": ["host", "private"]},
148148
"cgroup_parent": {"type": "string"},
149-
"command": {
150-
"oneOf": [
151-
{"type": "string"},
152-
{"type": "array", "items": {"type": "string"}}
153-
]
154-
},
149+
"command": {"$ref": "#/definitions/command"},
155150
"configs": {"$ref": "#/definitions/service_config_or_secret"},
156151
"container_name": {"type": "string"},
157152
"cpu_count": {"type": "integer", "minimum": 0},
@@ -202,12 +197,7 @@
202197
"dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true},
203198
"dns_search": {"$ref": "#/definitions/string_or_list"},
204199
"domainname": {"type": "string"},
205-
"entrypoint": {
206-
"oneOf": [
207-
{"type": "string"},
208-
{"type": "array", "items": {"type": "string"}}
209-
]
210-
},
200+
"entrypoint": {"$ref": "#/definitions/command"},
211201
"env_file": {"$ref": "#/definitions/string_or_list"},
212202
"environment": {"$ref": "#/definitions/list_or_dict"},
213203

@@ -738,6 +728,14 @@
738728
"patternProperties": {"^x-": {}}
739729
},
740730

731+
"command": {
732+
"oneOf": [
733+
{"type": "null"},
734+
{"type": "string"},
735+
{"type": "array","items": {"type": "string"}}
736+
]
737+
},
738+
741739
"string_or_list": {
742740
"oneOf": [
743741
{"type": "string"},

0 commit comments

Comments
 (0)