Skip to content

fix: correctly handle yml with duplicate keys#212

Open
Qstick wants to merge 1 commit intoajv-validator:masterfrom
Qstick:patch-1
Open

fix: correctly handle yml with duplicate keys#212
Qstick wants to merge 1 commit intoajv-validator:masterfrom
Qstick:patch-1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

Comments