Skip to content

editor.swagger.io critical issue - API content not being reloaded when entering swagger editor url with specific api query param #5484

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

Open
8o8inCodes opened this issue May 13, 2025 · 4 comments

Comments

@8o8inCodes
Copy link

Q&A (please complete the following information)

  • OS: macOS
  • Browser: chrome, safari
  • Version: latest chrome
  • Method of installation: none
  • Swagger-Editor version: Not sure
  • Swagger/OpenAPI version: OpenAPI 3.0, doesn't really matter tho

Describe the bug you're encountering

When first entering the official editor swagger with provided url querystring that supposed to load our open api data, it loads fine. HOWEVER if you were to make changes in the editor, and then try to enter the same url again, it doesn't dispose the changes. As well if we update our API data, and you would enter the URL again, it wont update content. So users are stuck with the first loaded content until they manually reload it using File>Load URL.

To reproduce...

Steps to reproduce the behavior:

  1. Go to https://editor.swagger.io/?url=https://raw.githubusercontent.com/testimio/public-openapi/main/api.yaml
  2. Click on File>Load petstore {doesn't matter which one} or make changes to the yaml
  3. reenter the url
  4. The changes you made are still there. And clearing cookies, erasing data doesn't help either.

Expected behavior

Every time you enter editor swagger with the specified api url in the query string, the editor should reload the api content.

Additional context or thoughts

This is super urgent because our customers are stuck with the old api documentation.

@OchirDarmaev
Copy link

faced with the same issue: swagger editor url parameter doesn't not load spec from URL

@maxl2287
Copy link

Same here!
Using the url-query-paramter is not leading to the correct specification.

@OchirDarmaev
Copy link

@maxl2287
Copy link

here is solution based on camaraproject/DeviceLocation#327

update subdomain from editor to editor-next old https://editor.swagger.io/?url=https://raw.githubusercontent.com/testimio/public-openapi/main/api.yaml new https://editor-next.swagger.io/?url=https://raw.githubusercontent.com/testimio/public-openapi/main/api.yaml

Yes we did this in DeviceLocation but either way there was no anouncement that editor.swagger.io is now "obsolate" and please go with "editor-next".

This old editor should work until there was something mentioned in the changelogs.
If not, then this is a bug.

Plus the fact that the editor-next is still an alpha-version, I would be thankful of finding a fix for the editor.swagger.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants