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
question about the yaml sequences indent #779
Comments
Both are valid, and you will also find examples like your first in the spec.
|
Yes, both are valid. I found some communities prefer the indented style. https://developers.home-assistant.io/docs/documenting/yaml-style-guide/#block-style-sequences |
The latest YAML spec does seem to give the un-indented as its canonical example (though it used to be indented): https://yaml.org/spec/1.2.2/#21-collections |
See my google/yamlfmt#87 (comment) in google/yamlfmt#87 for more detail on the specification's allowance for both styles. |
When marshal from an object, this library will generate sequences in following format:
But according to yaml spec: https://yaml.org/spec/1.2/#id2797382
The format seems to be:
Is there any background on this?
The text was updated successfully, but these errors were encountered: