-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Deserializing is not handling non-unique keys correctly #536
Comments
Thanks @nuttytree. The current changes does not handle duplicate keys in |
Most likely an oversight, on my part as well. I’m working on getting a new release out shortly. If you want to put in a pr with the needed changes for it I can try and get it in. |
Yes, an oversite on my part. I have a task at work I committed to getting done today, I might still have time yet today to get a PR up, if not I will try to do it first thing in the morning. |
Follow up on aaubry#536 and extend the functionality to `DictionaryNodeDeserializer`.
Hi @EdwardCooke and @nuttytree - please check out the linked PR I just sent. Thanks! |
According to the YAML spec (and common sense) keys in YAML-mappings should be a set of unique values. I frequently encounter errors (originating from tiny typos of mine), where a document (or mapping within a document) like
is interpreted like
and the duplicate key issue is silently ignored.
Would it be possible to at least have an option to treat duplicate keys as deserialization errors?
The text was updated successfully, but these errors were encountered: