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

seems it doesn't support yaml anchors #17

Open
b10s opened this issue May 20, 2019 · 3 comments
Open

seems it doesn't support yaml anchors #17

b10s opened this issue May 20, 2019 · 3 comments

Comments

@b10s
Copy link

b10s commented May 20, 2019

err:

$ yaml2json <(cat foo.yml)
UnknownAlias {_anchorName = "consul_shared"}

foo.yml:

...
consul: *consul_shared
...
consul: &consul_shared
...
@bronze1man
Copy link
Owner

I do not understand the mean of '*' or '&' in yaml. I never saw them before.
Is there any document or example of this syntax?

@b10s
Copy link
Author

b10s commented May 21, 2019

@dolmen
Copy link
Contributor

dolmen commented Jul 1, 2020

YAML anchors are supported by gopkg.in/yaml.v2.

My own fork of yaml2json supports them: https://github.com/dolmen/yaml2json

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

3 participants