thim81 / asyncapi-format

Format an AsyncAPI document by ordering, formatting and filtering fields.
MIT License
6 stars 1 forks source link

Option to NOT strip comments? #12

Open philCryoport opened 1 year ago

philCryoport commented 1 year ago

Hi there,

We use comments in our AsyncAPI YAML files to track implementation of requirements. The current application's behavior is to strip comments -- and I can't seem to find an option to NOT strip comments.

Help?

thim81 commented 1 year ago

hi @philCryoport

We are using https://github.com/stoplightio/yaml for loading/saving YAML files.

We investigated to support comments, but have not found a library to parse/save YAML with support comments. https://github.com/thim81/openapi-format/issues/60

If you find a YAML library that would support it, please let me know so we can offer support of preserving comments.