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
Actually ^ that was due to a cors issue. I am now using a custom container with cors more or less open wide and manual import of the localhost urls now works. Navigation with /?url still doesn't work though.
To reproduce...
Here is my docker compose:
I am simply doing docker-compose-up and then using the UI @ http://localhost:8083/
Swagger UI now loads the minified OpenAPI spec.
Swagger Editor (latest version) doesn't support custom spec passed with envars or url parameters (see [swagger-editor/issues/4411](swagger-api/swagger-editor#4411)).
Refs: #2
jenkin
added a commit
to sparkfabrik/nominatim-openapi
that referenced
this issue
Nov 6, 2023
Swagger UI now loads the minified OpenAPI spec.
Swagger Editor (latest version) doesn't support custom spec passed with envars or url parameters (see [swagger-editor/issues/4411](swagger-api/swagger-editor#4411)).
Refs: #2
Q&A (please complete the following information)
Describe the bug you're encountering
Cannot load specs by URL
I can load external yaml specs through the Swagger Editor UI's load button, but NOT through navigation.
Worse:
I cannot load yaml specs by URL that are hosted within the container, neither through the load button on the UI nor through the browser bar (eg http://localhost:8083/?url=http://localhost:8083/docs/my_spec.yaml) just opens pet store. These are valid specs and I can reach them directly within the container (as a file download) by going directly to their url like: http://localhost:8083/docs/my_spec.yamlActually ^ that was due to a cors issue. I am now using a custom container with cors more or less open wide and manual import of the localhost urls now works. Navigation with /?url still doesn't work though.
To reproduce...
Here is my docker compose:
I am simply doing docker-compose-up and then using the UI @ http://localhost:8083/
Expected behavior
I should be able to load whatever spec I define in the URL... not pet store!
My dockerized swagger editor should behave like the live one: https://editor.swagger.io/?url=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/link-example.yaml
The text was updated successfully, but these errors were encountered: