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
laurazard authored Jun 27, 2023
1 parent 532cd92 commit 176b19d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion schema/compose-spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft/2019-09/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "compose_spec.json",
"type": "object",
"title": "Compose Specification",
Expand All @@ -17,6 +17,15 @@
"description": "define the Compose project name, until user defines one explicitly."
},

"include": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/include"
},
"description": "compose sub-projects to be included."
},

"services": {
"id": "#/properties/services",
"type": "object",
Expand Down Expand Up @@ -588,6 +597,22 @@
}
},

"include": {
"id": "#/definitions/include",
"oneOf": [
{"type": "string"},
{
"type": "object",
"properties": {
"path": {"$ref": "#/definitions/string_or_list"},
"env_file": {"$ref": "#/definitions/string_or_list"},
"project_directory": {"type": "string"}
},
"additionalProperties": false
}
]
},

"network": {
"id": "#/definitions/network",
"type": ["object", "null"],
Expand Down

0 comments on commit 176b19d

Please sign in to comment.