From 176b19d68a2d164e28e3b17d669ae78c9647487e Mon Sep 17 00:00:00 2001 From: laurazard Date: Tue, 27 Jun 2023 00:21:16 +0000 Subject: [PATCH] Update compose-spec.json Signed-off-by: GitHub --- schema/compose-spec.json | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/schema/compose-spec.json b/schema/compose-spec.json index 53f3c1db..055f2925 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -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", @@ -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", @@ -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"],