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

Unique keys should be required otherwise should give failure. #5

Open
jonathan-s opened this issue Jul 14, 2023 · 1 comment · May be fixed by #6
Open

Unique keys should be required otherwise should give failure. #5

jonathan-s opened this issue Jul 14, 2023 · 1 comment · May be fixed by #6

Comments

@jonathan-s
Copy link

Right now the following yaml

a:
  - b
  - c

a:
  q: a
  q: b

Would get something akin to {'a': {'q': 'b'}}

PyYaml has similar behaviour as seen here > yaml/pyyaml#165 according to spec keys should be unique. This issue probably needs to be resolved upstream, but worth keeping this as a reminder.

@jonathan-s
Copy link
Author

jonathan-s commented Jul 14, 2023

It looks like this was resolved here > dtolnay/serde-yaml#301, so in version 0.9.4

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 a pull request may close this issue.

1 participant