Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: correctly handle yml with duplicate keys #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Qstick
Copy link

@Qstick Qstick commented Jun 19, 2022

JS-YAML fails to parse YAML in to JS when duplicate keys exist due to JS object restrictions, this uses JSON parse option for JS-YAML to prevent JS-YAML from throwing out during safeload of the YML file.

Fixes #211

Ref: nodeca/js-yaml#591

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ajv-cli dies when evaluating yaml with duplicate object keys
1 participant