在 Swagger UI 中美化 Json 响应

Prettify Json response in Swagger UI

有没有办法在 Swagger UI 的响应主体中美化 JSON? 我正在使用 SwaggerUIBundle.

我的 API 正在返回 Content-Type 的文本内容。使用 Flask 作为代理并且只返回 requests 响应的内容。这个 SO post 帮助 Return a requests.Response object from Flask