You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for creating this issue. Indeed after applying the overlay we need to reconstruct a YAML formatted string and by doing so we impose a certain style/format for now. Not sure how we could preserve the original format and we won't be able to change that so soon (but open for contribution!).
As YAML is pretty flexible, there are many different ways of writing the exact same data.
For example both string examples below have the same data:
key: my string value
vs
key: "my string value"
In the case you present, it's the case for long text where we use “folded” style multiline strings, so both examples below have the exact same output data values:
description: This is a long line of text with a lot of description in my YAML file
is exactly the same as
description: >- This is a long line of text with a lot of description in my YAML file
Hope this helps and sorry not to be able to give you a workaround / a solution for now. Let me know if you have other questions!
Steps to reproduce
Using the
bump overlay
results in an unwanted line width.Take any OpenAPI file, apply the following example overlay:
execute:
bump overlay openapi.yaml overlays.yaml > openapi.public.yaml
Expected behavior
Using the
bump overlay
results in the original line width being kept.BEFORE/AFTER
The text was updated successfully, but these errors were encountered: