Spectral - Keep Comments


I’m a great fan spectral for keeping my OpenApi spec file nice and clean.
I’ve chosen YAML since it will allow me to add comments in the file for parts of the spec that are still being designed/iterated.

The problem is that Spectral removes the comments by default, via Stoplight studio.

Is there a setting/linting rule that I can use to prevent the removal of the comments items from the OpenApi file?

1 Like

Same problem here. I’m a big fan of spectral, but it’s one of the things that makes me unable to use the stoplight editor to manage my API.