Skip to content

Commit

Permalink
Merge pull request compose-spec#187 from ndeloof/env_bool
Browse files Browse the repository at this point in the history
Allow use of plain boolean as environment values
  • Loading branch information
ndeloof committed Aug 4, 2021
2 parents 5141aaf + 1491eaf commit b369fe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schema/compose-spec.json
Expand Up @@ -770,7 +770,7 @@
"type": "object",
"patternProperties": {
".+": {
"type": ["string", "number", "null"]
"type": ["string", "number", "boolean", "null"]
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion spec.md
Expand Up @@ -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
Expand Down

0 comments on commit b369fe5

Please sign in to comment.