Skip to content

Commit

Permalink
Update compose-spec.json
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
OKEAMAH authored Aug 10, 2024
1 parent bec2150 commit 012fa90
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions schema/compose-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
},
"additionalProperties": false
},
"cap_add": {"type": "array", "items": {"type": "string"}},
"cap_drop": {"type": "array", "items": {"type": "string"}},
"cap_add": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"cgroup": {"type": "string", "enum": ["host", "private"]},
"cgroup_parent": {"type": "string"},
"command": {"$ref": "#/definitions/command"},
Expand Down Expand Up @@ -197,6 +197,7 @@
"^[a-zA-Z0-9._-]+$": {
"type": "object",
"additionalProperties": false,
"patternProperties": {"^x-": {}},
"properties": {
"restart": {"type": ["boolean", "string"]},
"required": {
Expand All @@ -215,9 +216,9 @@
]
},
"device_cgroup_rules": {"$ref": "#/definitions/list_of_strings"},
"devices": {"type": "array", "items": {"type": "string"}},
"devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"dns": {"$ref": "#/definitions/string_or_list"},
"dns_opt": {"type": "array","items": {"type": "string"}},
"dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true},
"dns_search": {"$ref": "#/definitions/string_or_list"},
"domainname": {"type": "string"},
"entrypoint": {"$ref": "#/definitions/command"},
Expand All @@ -229,7 +230,8 @@
"items": {
"type": ["string", "number"],
"format": "expose"
}
},
"uniqueItems": true
},
"extends": {
"oneOf": [
Expand All @@ -246,13 +248,14 @@
}
]
},
"external_links": {"type": "array", "items": {"type": "string"}},
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},
"group_add": {
"type": "array",
"items": {
"type": ["string", "number"]
}
},
"uniqueItems": true
},
"healthcheck": {"$ref": "#/definitions/healthcheck"},
"hostname": {"type": "string"},
Expand All @@ -261,7 +264,7 @@
"ipc": {"type": "string"},
"isolation": {"type": "string"},
"labels": {"$ref": "#/definitions/list_or_dict"},
"links": {"type": "array", "items": {"type": "string"}},
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"logging": {
"type": "object",

Expand Down Expand Up @@ -347,7 +350,8 @@
"patternProperties": {"^x-": {}}
}
]
}
},
"uniqueItems": true
},
"privileged": {"type": ["boolean", "string"]},
"profiles": {"$ref": "#/definitions/list_of_strings"},
Expand All @@ -362,7 +366,7 @@
"scale": {
"type": ["integer", "string"]
},
"security_opt": {"type": "array", "items": {"type": "string"}},
"security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"shm_size": {"type": ["number", "string"]},
"secrets": {"$ref": "#/definitions/service_config_or_secret"},
"sysctls": {"$ref": "#/definitions/list_or_dict"},
Expand Down Expand Up @@ -428,11 +432,13 @@
"patternProperties": {"^x-": {}}
}
]
}
},
"uniqueItems": true
},
"volumes_from": {
"type": "array",
"items": {"type": "string"}
"items": {"type": "string"},
"uniqueItems": true
},
"working_dir": {"type": "string"}
},
Expand Down Expand Up @@ -474,7 +480,9 @@
"path": {"type": "string"},
"action": {"type": "string", "enum": ["rebuild", "sync", "sync+restart"]},
"target": {"type": "string"}
}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
Expand Down Expand Up @@ -827,7 +835,8 @@

"list_of_strings": {
"type": "array",
"items": {"type": "string"}
"items": {"type": "string"},
"uniqueItems": true
},

"list_or_dict": {
Expand All @@ -841,7 +850,7 @@
},
"additionalProperties": false
},
{"type": "array", "items": {"type": "string"}}
{"type": "array", "items": {"type": "string"}, "uniqueItems": true}
]
},

Expand Down

0 comments on commit 012fa90

Please sign in to comment.