[WIP] Sync compose-schemas with upstream (docker/cli) #6642
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to update the compose-schemas to make sure they're in sync with upstream, but noticed there's changes in the schema in this repository that are not upstream.
Also; some of these patches were applied to older version, but are not in the latest (3.7) and upcoming (3.8) version.
We should make sure that both
docker stack deploy
anddocker-compose up
validation is equal, otherwise files may work for one, but won't work for the other.If there's differences because of the implementation (Python vs Go), we should look if we can still use the same schema (if needed, upstream changes to docker/cli).
I was looking at reproducing the original issue () earlier this week (but not sure where I ended up, as I had to finish some other things 😂); I see I have these files still on my machine, which was what I was testing with;
I think I was testing if the problem presented itself on compose-file schema
3.6
and3.7
as it doesn't appear to have the fix from #4904, thus "should be failing"; here's the diff between 3.6 and 3.7 (before this patch);output:
Posting my test files here in case someone has time to verify.
docker-compose.yml
:docker-compose.json
: