Skip to content

Deserializing is not handling non-unique keys correctly #536

@Khazuar

Description

@Khazuar

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

fu: bar
fu: baz

is interpreted like

fu: baz

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions