-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
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
生成文档时swag会报错 #29
Comments
生成代码是下面这样,没有报错 // @description Type "Bearer your-jwt-token" to Value 是不是你手动改为下面这样导致swag报的错误呢 // @description "Type Bearer your-jwt-token" to Value |
我用的swag版本是v1.8.12,生成swagger文档时, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: