Skip to content

Commit

Permalink
Merge pull request #370 from compose-spec/compose-spec
Browse files Browse the repository at this point in the history
Update compose-spec.json
  • Loading branch information
glours authored Mar 22, 2023
2 parents ec503aa + 16e2509 commit 5713643
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions schema/compose-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,7 @@
"cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"cgroup": {"type": "string", "enum": ["host", "private"]},
"cgroup_parent": {"type": "string"},
"command": {
"oneOf": [
{"type": "string"},
{"type": "array", "items": {"type": "string"}}
]
},
"command": {"$ref": "#/definitions/command"},
"configs": {"$ref": "#/definitions/service_config_or_secret"},
"container_name": {"type": "string"},
"cpu_count": {"type": "integer", "minimum": 0},
Expand Down Expand Up @@ -202,12 +197,7 @@
"dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true},
"dns_search": {"$ref": "#/definitions/string_or_list"},
"domainname": {"type": "string"},
"entrypoint": {
"oneOf": [
{"type": "string"},
{"type": "array", "items": {"type": "string"}}
]
},
"entrypoint": {"$ref": "#/definitions/command"},
"env_file": {"$ref": "#/definitions/string_or_list"},
"environment": {"$ref": "#/definitions/list_or_dict"},

Expand Down Expand Up @@ -738,6 +728,14 @@
"patternProperties": {"^x-": {}}
},

"command": {
"oneOf": [
{"type": "null"},
{"type": "string"},
{"type": "array","items": {"type": "string"}}
]
},

"string_or_list": {
"oneOf": [
{"type": "string"},
Expand Down

0 comments on commit 5713643

Please sign in to comment.