Skip to content

Commit 38ccd50

Browse files
authored
Merge pull request #420 from compose-spec/compose-spec
2 parents 532cd92 + 176b19d commit 38ccd50

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

schema/compose-spec.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft/2019-09/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-09/schema#",
33
"id": "compose_spec.json",
44
"type": "object",
55
"title": "Compose Specification",
@@ -17,6 +17,15 @@
1717
"description": "define the Compose project name, until user defines one explicitly."
1818
},
1919

20+
"include": {
21+
"type": "array",
22+
"items": {
23+
"type": "object",
24+
"$ref": "#/definitions/include"
25+
},
26+
"description": "compose sub-projects to be included."
27+
},
28+
2029
"services": {
2130
"id": "#/properties/services",
2231
"type": "object",
@@ -588,6 +597,22 @@
588597
}
589598
},
590599

600+
"include": {
601+
"id": "#/definitions/include",
602+
"oneOf": [
603+
{"type": "string"},
604+
{
605+
"type": "object",
606+
"properties": {
607+
"path": {"$ref": "#/definitions/string_or_list"},
608+
"env_file": {"$ref": "#/definitions/string_or_list"},
609+
"project_directory": {"type": "string"}
610+
},
611+
"additionalProperties": false
612+
}
613+
]
614+
},
615+
591616
"network": {
592617
"id": "#/definitions/network",
593618
"type": ["object", "null"],

0 commit comments

Comments
 (0)