jeremyfa / yaml.js

Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.
MIT License
887 stars 145 forks source link

Warning on duplicate keys #76

Open rijnhard opened 7 years ago

rijnhard commented 7 years ago

Hi

Is there anyway to get yamljs to error/warn on duplicate keys? At the moment it just fails silently which in a yaml file of thousands of lines could be difficult to determine that you have a duplicate

basically look here: https://github.com/symfony/symfony/issues/19526

jeremyfa commented 7 years ago

I don't plan to work on this myself, but a pull request is welcome if you wish to add the feature.