Closed lirixiang closed 1 month ago
生成代码是下面这样,没有报错
// @description Type "Bearer your-jwt-token" to Value
是不是你手动改为下面这样导致swag报的错误呢
// @description "Type Bearer your-jwt-token" to Value
用浏览器抓取了一下,是会报错
我用的swag版本是v1.8.12,生成swagger文档时,"
会被转义\"
,因此不会报错。
Describe the bug 生成文档时swag会报错
To Reproduce Steps to reproduce the behavior, if applicable:
The code is
The error is
3.将// @description "Type Bearer your-jwt-token" to Value 改成 // @description Type Bearer your-jwt-token to Value 可以解决