-
Notifications
You must be signed in to change notification settings - Fork 5
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
Duplicate mapping keys not detected/allow_duplicate_keys not honored #11
Comments
hmmmm. Can you provide a MWE (or failing in this instance?). I tried the below and it failed as expected. Notably, I distinctly remember thinking that YAML allowed duplicate keys and JSON didn't (which is backwards, evidently). I vividly recall having this backwards in my mind.
|
Good to know that it should pitch a fit. I'll try to get a MWE together sometime this week; our use case is a comfortable hop-skip-jump away from simple, so I might discover where this is happening in the process of simplifying. |
ruamel.yaml purports to disallow duplicate keys by default (https://yaml.readthedocs.io/en/latest/api.html#duplicate-keys), however yamlize is somehow side-steps this. The duplicate check is happening in
constructor.py
in ruamel.yaml. I am trying to figure out how to get that functionality back, but it is unclear where the interface is between ruamel.yaml and yamlize. Perhaps the cause/solution would be more immediately obvious to the author? Any guidance would be most appreciated, thanks!The text was updated successfully, but these errors were encountered: