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
I'm having a similar issue (updating the URL and then pressing explore resets the URL back to the petstore). I've done some digging and it looks like the downloadUrl function in plugins\topbar\topbar.jsx needs modifying:
downloadUrl = (e) => {
this.props.specActions.updateUrl(this.state.url)
this.props.specActions.download(this.state.url)
// This line is needed to prevent the form submission from refreshing the page
e.preventDefault();
}
When entering a custom URL into the explore URL field on http://petstore.swagger.io/? this URL will completely be ignored and swagger-ui will always use http://petstore.swagger.io/v2/swagger.json as API spec source.
One can provide a custom URL by adding the
url=<custom-swagger-spec>
query parameter (e.g. http://petstore.swagger.io/?url=https://github.com/swagger-api/swagger-ui/files/832086/swagger.yaml.txt) but when pressing Explore, swagger-ui will again user the petstore specs.3.0.8
not relevant
The text was updated successfully, but these errors were encountered: