-
Notifications
You must be signed in to change notification settings - Fork 15
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
YAML comments are stripped #44
Comments
@bbrks Sadly enough, there is no way to keep the comments. If you find a manner, please let me know, since I struggle with the comments being removed as well. A possible work-around is that you format the file and write the formatted file next the original file and do a diff of both files. |
Update: Stoplight YAML-ast-parser introduced the option to preserve comments on YAML docs, stoplightio/yaml-ast-parser#6 Will need some more investigation |
hi @bbrks We just release v1.23.0 which provides the option Closing this issue. |
I have no idea if this is intentional, or just a difficult problem to solve, but comments are stripped from YAML OpenAPI specs.
This becomes a little bit problematic when the comments are meaningful to the openapi writer and help maintainability.
E.g:
Becomes
The text was updated successfully, but these errors were encountered: