-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
unkown LeftDelim and RightDelim in swag.Spec #1568
Comments
can reproduce this issue on release 2.0.0-rc2. |
Same issue for me. |
Please update your project swag dependency to the latest version (speaking about go.mod) |
I already have this line in go.mod
|
reverted mine to v1.8.12 to avoid this problem. |
Can you be more specific about this? |
ok I was half asleep when I wrote that dumb comment I could reproduce the problem if I go install github.com/swaggo/swag/cmd/swag@latest and swag init, but if I reinstall swag with go install github.com/swaggo/swag/cmd/[email protected], the problem disappears for some odd reason. go version go1.20.3 linux/amd64
|
Hi! I got the same issue. My Dockerfile has As @seunghkong mentioned if you change version to [email protected] it will work. |
I just checked out the v1.16.1 version and cannot reproduce the issue. @dnsx2k what swag version is imported in your go.mod ? A similar issue existed in V2.0.0-rc2 that has been fixed with V2.0.0-rc3. |
Was having the same issue and decided to add the following line the makefile that I use to synchronize the start:
Obviously, not a proper fix, but should prevent you from having to manually remove the 2 lines. |
|
@Vanderscycle what version of the library is imported in your go.mod? |
it works for me |
@Nerzal Works for me now |
It works for me |
it works for me too, i think this issue can be closed now. |
It's solved by update swaggo to the latest version, this issue can be closed |
yeah, for use go get -u github.com/swaggo/swagchange the link you can look at you go.mod at this version , the error is solved |
works for me too |
|
it worked for me too |
Great, it works thanks! |
It works for me too ! thanks |
- `go get -u github.com/swaggo/swag` - fixes 'unknown field' ('LeftDelim'/'RightDelim') errors during swagger document creation - related: [swag ~ unknown LeftDelim and RightDelim in swag.Spec](swaggo/swag#1568)
it works for me. thankyou |
it works for me. thx 🫶 |
I use |
Hi. After updating swag to version v1.16.1 (@latest) the
swag init
command produce aSwaggerInfo
variable with compile error.Steps to reproduce the behavior:
go install github.com/swaggo/swag/cmd/swag@latest
swag init
docs.go
Screenshots
swag version
v1.8.12
go version
go1.19.2 darwin/arm64
OS: mac os Ventura
The text was updated successfully, but these errors were encountered: