You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was previously using go1.19.7 linux/amd64 to generate specs and recently upgraded to go1.20.3. After the upgrade definitions object is missing from the generated spec leading to invalid spec.
Everything else is exactly same. Tried with go-swagger v0.29.0 and go1.20.3, it worked fine. The issue is only with swagger v0.30.0 or higher.
Also found an issue mentioning something similar - #2897 but that also provides no answers. So is the latest swagger version not compatible with latest go version or can anyone mention anything that could help?
Update:
Worked when installed swagger directly from source as mentioned here- http://goswagger.io/install.html
There seems to be problem with go-swagger static binary.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone
I was previously using go1.19.7 linux/amd64 to generate specs and recently upgraded to go1.20.3. After the upgrade definitions object is missing from the generated spec leading to invalid spec.
Everything else is exactly same. Tried with go-swagger v0.29.0 and go1.20.3, it worked fine. The issue is only with swagger v0.30.0 or higher.
Also found an issue mentioning something similar - #2897 but that also provides no answers. So is the latest swagger version not compatible with latest go version or can anyone mention anything that could help?
Update:
Worked when installed swagger directly from source as mentioned here- http://goswagger.io/install.html
There seems to be problem with go-swagger static binary.
Beta Was this translation helpful? Give feedback.
All reactions