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
err:
$ yaml2json <(cat foo.yml) UnknownAlias {_anchorName = "consul_shared"}
foo.yml:
... consul: *consul_shared ... consul: &consul_shared ...
The text was updated successfully, but these errors were encountered:
I do not understand the mean of '*' or '&' in yaml. I never saw them before. Is there any document or example of this syntax?
Sorry, something went wrong.
@bronze1man yes, sure:
easy one: https://medium.com/@kinghuang/docker-compose-anchors-aliases-extensions-a1e4105d70bd
official spec (I can not read this spec easy): https://yaml.org/spec/1.2/spec.html#id2783797
YAML anchors are supported by gopkg.in/yaml.v2.
gopkg.in/yaml.v2
My own fork of yaml2json supports them: https://github.com/dolmen/yaml2json
yaml2json
No branches or pull requests
err:
foo.yml:
The text was updated successfully, but these errors were encountered: