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
There is no problem with the generated document. The issue arises because the HTML was escaped during rendering, causing the HTML tags to be displayed as raw text.
In addition to Body-parameters, Query-parameters, Path-parameters, and Request-headers also have their descriptions escaped.
Is it necessary to escape the descriptions of the parameters?
生成的文档没有问题,出现这个问题的原因是渲染时对 HTML 进行了转义,导致 HTML 标签以原文展示,
Your Environment(您的使用环境)
Expected Behavior(您期望的结果)
Body-parameters Description is rendered in the HTML document.
Body-parameters Description 渲染 HTML 文档
Current Behavior(当前结果)
If Body-parameters Description is not rendered in the HTML document, it will display the raw HTML.
Body-parameters Description 不渲染 HTML 文档,会显示原始 HTML
Possible Solution(bug解决建议)
Consistent with the interface description, render HTML.
与接口描述一致,渲染 HTML
Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)
The interface description above uses HTML tags, which can be properly rendered in the HTML document.
上面的接口描述中使用了 HTML 标签,在 HTML 文档中能被正常渲染,
However, when HTML tags are used in the properties of RequestBody, the generated document cannot be properly rendered and displays the raw HTML.
然而 RequestBody 里的属性使用 HTML 标签,生成的文档却不能被正常渲染,显示的是原始的 HTML,
Context(Bug影响描述)
The text was updated successfully, but these errors were encountered: