Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

fix: re-add option to switch off unique mapping keys enforcement#856

Open
jlourenc wants to merge 1 commit into
go-yaml:v3from
jlourenc:fix/decoding-unique-keys
Open

fix: re-add option to switch off unique mapping keys enforcement#856
jlourenc wants to merge 1 commit into
go-yaml:v3from
jlourenc:fix/decoding-unique-keys

Conversation

@jlourenc
Copy link
Copy Markdown

@jlourenc jlourenc commented May 23, 2022

This PR partially reverts 309c9d1 while keeping unique mapping keys enforcement as default behaviour for Unmarshal.

The rationale is that libraries like ghodss/yaml relies on uniqueKeys being set to false. Giving the possibility to do so would allow the upgrade of go-yaml to v3 without introducing breaking changes.

@jlourenc
Copy link
Copy Markdown
Author

ghodss/yaml draft fix using this changeset: ghodss/yaml#79

@jlourenc
Copy link
Copy Markdown
Author

jlourenc commented Jun 4, 2022

@niemeyer could I get some eyes on this ? That'd be much appreciated 🙇🏼

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant