We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When parser parses this yaml:
default: &DEFAULT name: Anchor customname: &CUSTOMNAME custom_name: Anchor anchor_test: <<: *DEFAULT <<: *CUSTOMNAME
It reports error: Map keys must be unique. But this is valid yaml.
Map keys must be unique
To Reproduce Just parse yaml provided in description.
Expected behaviour Parser shouldn't report duplicate key errors on anchor references.
Versions (please complete the following information):
Node.js 12.7.0
yaml
2.0.0-6
Additional context Found during work on redhat-developer/yaml-language-server#442
The text was updated successfully, but these errors were encountered:
Your example is valid YAML 1.1, but we're defaulting to YAML 1.2, which does not consider << as any sort of special key.
<<
To parse this as you expect, you may use either the merge: true or version: '1.1' options.
merge: true
version: '1.1'
Sorry, something went wrong.
yes, I totally miss that, thank you!
No branches or pull requests
Describe the bug
When parser parses this yaml:
It reports error:
Map keys must be unique
. But this is valid yaml.To Reproduce
Just parse yaml provided in description.
Expected behaviour
Parser shouldn't report duplicate key errors on anchor references.
Versions (please complete the following information):
Node.js 12.7.0
yaml
:2.0.0-6
Additional context
Found during work on redhat-developer/yaml-language-server#442
The text was updated successfully, but these errors were encountered: