apinf / openapi-designer

Design interface for creating Open API (Swagger) specification files
https://openapi.design
MIT License
69 stars 18 forks source link

YAML indentations #349

Open bajiat opened 6 years ago

bajiat commented 6 years ago

Ensure that yaml output is indented properly and the file produced by OpenAPi designer can be used/viewed in Swagger Hub.

Also, ensure that the yaml indentations are properly formatted and displayed in the "Editable output" view.

tulir commented 6 years ago

Could you elaborate this a bit?

I'm pretty sure we can trust the YAML library, and validating it with yet another library is just pointless. If you mean that some fields are on the wrong YAML level, then it's a problem with the editor/object structure and not YAML.

Input YAML validation also seems useless: the parser error message should be enough.