Skip to content
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

#397 is reproduced in v1.11.1. #710

Open
YamazakiYasuhiro opened this issue Aug 7, 2022 · 3 comments
Open

#397 is reproduced in v1.11.1. #710

YamazakiYasuhiro opened this issue Aug 7, 2022 · 3 comments

Comments

@YamazakiYasuhiro
Copy link

#397
This happens again in v1.11.1?
I've disabled Swagger validation, then the BaseURL works.

@blame2020
Copy link

I got same issue.

@icamys
Copy link

icamys commented Oct 4, 2022

For those who get this error, keep in mind that if you use the example code from this repo, the following line in your Golang code:

// app.go
swagger.Servers = nil

removes the base URL from the generated Swagger specification object, thus resets the instructions you set in the swagger definition file:

# swagger.yaml
servers:
  - url: /api/v1

Just remove the swagger.Servers = nil line from your code and you will get it working.

@blame2020
Copy link

@icamys
Thanks. I understand and resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants