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
With the spec which has a long description like below, README generated from the spec is very hard to read as new line contained in {{appDescription}} is stripped. 😢
I was thinking about that allowing new line in "{{appDescription}}" . 💭
{{appDescription}} is also used at source code (doc comment), so allowing new line in {{appDescription}} may has risk:
Allowing new line in {{appDescription}} may cause unintended behavior of api/model on the languages that values new line and indentation.
I can not yet assume a specific case where security problems will occur if we allow new line in doc comment... However, the problem usually comes from an unexpected place.
So I think make available a new tag is the best way. The new tag can satisfy the both of requirement allowing new line at description and limitation of where we allow new line (only README).
Description
With the spec which has a long description like below, README generated from the spec is very hard to read as new line contained in
{{appDescription}}
is stripped. 😢which has markdown-formatted description.
https://api.shop-pro.jp/v1/swagger.json
The description is hard to read as the new line is stripped.
https://github.com/ackintosh/colormeshop-ruby/blob/6b5e3dd638d0f5e449a9aa24769c1dfbf012f781/README.md
We have also {{unescapedAppDescription}}, but want to keep the docs as safe as possible. (Only new line is needed.)
openapi-generator version
latest master
OpenAPI declaration file content or url
https://api.shop-pro.jp/v1/swagger.json
Suggest a fix/enhancement
Make available a new tag which allows new line named like
{{appDescriptionWithNewLine}}
.Any thoughts?
The text was updated successfully, but these errors were encountered: