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

Merging in multiple anchors results in validation error #18

Open
puco opened this issue Dec 21, 2017 · 0 comments
Open

Merging in multiple anchors results in validation error #18

puco opened this issue Dec 21, 2017 · 0 comments

Comments

@puco
Copy link

puco commented Dec 21, 2017

When using anchors and merging multiple anchors into the same object Visual Studio Code complains about invlid document.

Document:

.numbers: &numbers
  one: "1"
  two: "2"

.countries: &countries
  us: "United States"
  uk: "United Kingdom"

instance1:
  <<: *numbers
  <<: *countries
  something: "else"

Expected result: The document is valid

Actual result: Error in validating document

JS-YAML: duplicate key at line 10, column 3
JS-YAML: duplicate key at line 11, column 3

2017-12-21 16_36_32

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

No branches or pull requests

1 participant