Open CameronGo opened 6 years ago
@CameronGo, what does your config.json
look like?
@shockey - the config.json contents were actually in the inital bug report, but here it is:
{
"dom_id": "#swagger-ui",
"deepLinking": true,
"docExpansion": "none"
}
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition: I tested this with the petstore OpenAPI doc also.
Swagger-UI configuration options: This is what my config.json looks like
Describe the bug you're encountering
When I launch swagger UI with the API_URLS environment set, I get the expected behavior with 2 API docs returned. When I launch swagger UI with the CONFIG_URL environment set, I get the expected behavior with regards to the doc expansion, etc. If I have both API_URLS and CONFIG_URL set, then the CONFIG is used, but no API doc is loaded.
To reproduce...
You can use this docker-compose file to launch the service with the same options I'm using:
Steps to reproduce the behavior: Once Swagger UI is launched you will see a blank page is loaded. You can manually explore an API doc by putting in the URL and it will use the settings from the config.json file as defined.
You can alternate back and forth removing one or the other and see that the settings are working independently, just not together.
Expected behavior
I would expect it to use both the settings from the config file found from the CONFIG_URL and also to load the API docs from the API_URLS.