Skip to content

Commit

Permalink
Merge pull request #3257 from thaJeztah/compose_remove_required_version
Browse files Browse the repository at this point in the history
cli/compose: add schema 3.10, with optional version field (default to "latest")
  • Loading branch information
thaJeztah authored Feb 25, 2022
2 parents 6401786 + a777880 commit 6c75b75
Show file tree
Hide file tree
Showing 4 changed files with 641 additions and 2 deletions.
8 changes: 8 additions & 0 deletions cli/compose/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,14 @@ func TestV1Unsupported(t *testing.T) {
foo:
image: busybox
`)
assert.ErrorContains(t, err, "(root) Additional property foo is not allowed")

_, err = loadYAML(`
version: "1.0"
foo:
image: busybox
`)

assert.ErrorContains(t, err, "unsupported Compose file version: 1.0")
}

Expand Down
Loading

0 comments on commit 6c75b75

Please sign in to comment.