使用 JSON 时 Swagger 描述中的新段落

New paragraph in Swagger description when using JSON

如何在使用 JSON 时在 Swagger 中编写描述时创建新段落?

我只找到 YAML 的示例,当我像使用 Markdown 一样简单地创建一个新段落时,验证失败并且文档不再呈现。

我想要什么

The first paragraph describes the call.

Another paragraph gives additional information about the call.

我试过但不起作用

"description": "The first paragraph describes the call.

Another paragraph gives additional information about the call.",

JSON 不支持文字多行字符串。

\n 替换换行符应该有效,例如:

"description": "The first paragraph describes the call.\n\nAnother paragraph gives additional information about the call.",