ajv-cli icon indicating copy to clipboard operation
ajv-cli copied to clipboard

fix: correctly handle yml with duplicate keys

Open Qstick opened this issue 3 years ago • 0 comments

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: https://github.com/nodeca/js-yaml/issues/591

Qstick avatar Jun 19 '22 20:06 Qstick