Skip to content
New issue

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

Incorrect duplicate key registered when using YAML anchors #82

Closed
ChristopherSchubert opened this issue Apr 17, 2018 · 1 comment
Closed
Labels

Comments

@ChristopherSchubert
Copy link

I receive a "Duplicate Key" error highlight and tooltip when reference multiple YAML anchors at the same level within an element.

For example, defining two different anchors, which do not share the same keys:

x-anchor-one: &anchor_one
    sub-property-one: "one"
x-anchor-two: &anchor_two
    sub-property-one: "two"

causes the error when referenced as:

object:
  property:
    <<: &anchor_one
    <<: &anchor_two

Full snippet:

x-anchor-one: &anchor_one
    sub-property-one: "one"
x-anchor-two: &anchor_two
    sub-property-one: "two"

object:
  property:
    <<: &anchor_one
    <<: &anchor_two

Screenshot:
yaml_anchor_error

@JPinkney JPinkney added the bug label Apr 17, 2018
@JPinkney
Copy link
Contributor

Fixed in 0.0.12 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants