From 1491eafa9344e6fc485c62e3f942fc87e03bf8da Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 4 Aug 2021 15:59:02 +0200 Subject: [PATCH] Allow use of plain boolean as environment values Signed-off-by: Nicolas De Loof --- schema/compose-spec.json | 2 +- spec.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/compose-spec.json b/schema/compose-spec.json index 2ce8da4a..8891fc42 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -770,7 +770,7 @@ "type": "object", "patternProperties": { ".+": { - "type": ["string", "number", "null"] + "type": ["string", "number", "boolean", "null"] } }, "additionalProperties": false diff --git a/spec.md b/spec.md index 5f1d0e12..4932e287 100644 --- a/spec.md +++ b/spec.md @@ -754,7 +754,7 @@ VAR="quoted" ### environment `environment` defines environment variables set in the container. `environment` can use either an array or a -map. Any boolean values; true, false, yes, no, MUST be enclosed in quotes to ensure +map. Any boolean values; true, false, yes, no, SHOULD be enclosed in quotes to ensure they are not converted to True or False by the YAML parser. Environment variables MAY be declared by a single key (no value to equals sign). In such a case Compose