Features
Better Path Output
Using the -v
option, formatting will print all formatted paths to stdout. With the new debug code -debug diffs
formatting will print all the formatted diffs (same as -dry
except the formatting will actually occur).
Force Array Style
With the formatter option force_array_style
you can force flow
([x]
) or block
(- x
) style arrays. With either option chosen, all arrays in the document will be the configured style.
Bug Fixes
Using alias node as a key
When using an alias node (*alias
) as a key, yaml.v3
broke the YAML spec and output an invalid document. See this comment on the original issue for an explanation.
The default behaviour now fixes this, but in case it causes any unexpected side effects there is a formatter option added called disable_alias_key_correction
.