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
Hi, I'm running a restify server with this package that is working correctly locally, but I have a problem in production where it always tries to fetch the swagger.json file from localhost.
This is my configuration. I'm running it based on environment and "docs_host" config var is actually the production url.
As you can see from the screen it tries to fetch from localhost while the host is set to remote url. I tried to update path with the docs_host too, but I got an error because it requires the field to start with "/".
Replacing localhost and port with the docs_host in explore input field it actually loads correctly the UI. Is there something wrong in my configuration?
P.S: side question, is openapi option available as in swagger-json lib? I see it actually defaults to swagger v2.
The text was updated successfully, but these errors were encountered:
I'm not sure I understand your use case, can you give more details?
If you think you have a solution for this problem, don't hesitate to propose a PR, I will be happy to review it.
Hi, I'm running a restify server with this package that is working correctly locally, but I have a problem in production where it always tries to fetch the swagger.json file from localhost.
This is my configuration. I'm running it based on environment and "docs_host" config var is actually the production url.
As you can see from the screen it tries to fetch from localhost while the host is set to remote url. I tried to update path with the docs_host too, but I got an error because it requires the field to start with "/".
Replacing localhost and port with the docs_host in explore input field it actually loads correctly the UI. Is there something wrong in my configuration?
P.S: side question, is openapi option available as in swagger-json lib? I see it actually defaults to swagger v2.
The text was updated successfully, but these errors were encountered: