[BUG] docker compose config --ouput=json
omits x-*
fields - generally some differences in marshalled YAML vs. JSON forms
#11528
Labels
Description
The JSON config output omits
x-*
entries. Diff from the actual generated JSON to the JSON-ified YAML of example below:My main issue is the absence of the
x-*
fields, but can see there's at least some additional difference as the default network'sipam
,command
, andentrypoint
entries are omitted in YAML whereas it is an empty objects/nulls in the JSON.I imagine in an ideal world that
diff <(docker compose config --output=yaml | yq -output-format=json) <(docker compose config --output=json)
would always have a 0 exit code/no diff, and thatx-*
fields would be included.Steps To Reproduce
docker compose config
outputdocker compose config --format=json | python3 -m json.tool
outputCompose Version
The text was updated successfully, but these errors were encountered: