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
Starting with v3.19.0 using the CONFIG_URL you could reference a config.json file, which had an array of urls to return different API spec documents. This worked as recently as v3.19.4, but starting with v3.19.5 this behavior is broken and appears to be the case with the latest v3.20.2 versions as well.
When you use the same config with these newer versions, Swagger UI comes up, the config is retrieved (I can tell b/c of the visual changes related to docExpansion, etc) but the API spec that is loaded is the default Petstore.
With further testing I determined that, if I create multiple items in the config.json urls array, the inital page load returns Petstore, but I can select another spec from the menu and this loads the correct API spec at which point I can toggle back and forth and the correct API spec is loaded.
To reproduce...
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Browser is Chrome.
Running swagger UI using Docker image. v3.19.4 works, v3.19.5 - v3.20.2 is broken.
Content & configuration
Example Swagger/OpenAPI definition:
N/A
Describe the bug you're encountering
Starting with v3.19.0 using the CONFIG_URL you could reference a config.json file, which had an array of urls to return different API spec documents. This worked as recently as v3.19.4, but starting with v3.19.5 this behavior is broken and appears to be the case with the latest v3.20.2 versions as well.
When you use the same config with these newer versions, Swagger UI comes up, the config is retrieved (I can tell b/c of the visual changes related to docExpansion, etc) but the API spec that is loaded is the default Petstore.
With further testing I determined that, if I create multiple items in the config.json urls array, the inital page load returns Petstore, but I can select another spec from the menu and this loads the correct API spec at which point I can toggle back and forth and the correct API spec is loaded.
To reproduce...
The text was updated successfully, but these errors were encountered: