Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

jlourenc
Copy link

@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
Author

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

@jlourenc
Copy link
Author

jlourenc commented Jun 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant