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

Docker image with URLS defined still show pet shop #5138

Closed
JbIPS opened this issue Jan 25, 2019 · 4 comments
Closed

Docker image with URLS defined still show pet shop #5138

JbIPS opened this issue Jan 25, 2019 · 4 comments

Comments

@JbIPS
Copy link

JbIPS commented Jan 25, 2019

Hi,

I'm setting up a Docker container with Swagger-ui using a volume and the URLS envar to use multiple files:

URLS=[{url: "/swagger/file1.yml", name: "file1"}, {url: "/swagger/file2.yml", name: "file2"}]

But each time I refresh, even with DEEP_LINKS=true, I get the pet shop API printed. I have to select another definition in the TopBar and go back to the first one to see it.

Did I miss a parameter somewhere ?

Thank you

@g-stawarczyk
Copy link

Hi.

You missed URL parameter. Set URL to empty string:

URL=''

If you're using docker, just add an env property -e URL=''

@JbIPS
Copy link
Author

JbIPS commented Jan 30, 2019

Thank you, I didn't know it was mandatory when using URLS

@JbIPS JbIPS closed this as completed Jan 30, 2019
@shockey shockey reopened this Jan 30, 2019
@shockey
Copy link
Contributor

shockey commented Jan 30, 2019

Reopening this to investigate a bit - perhaps we should be ignoring url in the UI itself when urls is defined.

@JbIPS
Copy link
Author

JbIPS commented Feb 7, 2019

Thank you 😃

@lock lock bot locked and limited conversation to collaborators Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants