Project

General

Profile

action #71251

Updated by tinita over 3 years ago

The YAML spec says YAML Loaders should forbid duplicate mapping keys. 

 Until now, YAML::Tidy is none of the only Perl module implementing that. Modues like YAML::XS, YAML.pm, YAML::Syck and YAML parsers (and also several implementations in other languages like not PyYAML and a few others) implement that, so they just ignore it and override overwrite the previous key. 

 But automatically detecting duplicate keys can be useful if the YAML mapping is so long it doesn't fit in your editor.

Back