We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug 生成文档时swag会报错
To Reproduce Steps to reproduce the behavior, if applicable:
The code is
// @title ChatGPT_MJ_aggregation_next api docs // @description http server api docs // @schemes http https // @Version 2.0 // @host localhost:8080 // @securityDefinitions.apikey BearerAuth // @in header // @name Authorization // @description "Type Bearer your-jwt-token" to Value func main() { initial.InitApp() services := initial.CreateServices() closes := initial.Close(services)
a := app.New(services, closes) a.Run()
}
2. The error is
// @description "Type Bearer your-jwt-token" to Value
3.将// @description "Type Bearer your-jwt-token" to Value 改成 // @description Type Bearer your-jwt-token to Value 可以解决
The text was updated successfully, but these errors were encountered:
生成代码是下面这样,没有报错
// @description Type "Bearer your-jwt-token" to Value
是不是你手动改为下面这样导致swag报的错误呢
Sorry, something went wrong.
我用的swag版本是v1.8.12,生成swagger文档时,"会被转义\",因此不会报错。
"
\"
No branches or pull requests
Describe the bug
生成文档时swag会报错
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
// @title ChatGPT_MJ_aggregation_next api docs
// @description http server api docs
// @schemes http https
// @Version 2.0
// @host localhost:8080
// @securityDefinitions.apikey BearerAuth
// @in header
// @name Authorization
// @description "Type Bearer your-jwt-token" to Value
func main() {
initial.InitApp()
services := initial.CreateServices()
closes := initial.Close(services)
}
// @description "Type Bearer your-jwt-token" to Value
The text was updated successfully, but these errors were encountered: