swagger-ui: UI not loading specs, no errors
I recently pulled the latest swagger-ui from GitHub and now my swagger-ui will not load any spec files, even for examples that previously worked.
I’m deploying locally at http://localhost/swagger-ui/ The UI comes up OK, but when I enter the URL of a local resource http://localhost/swagger/examples/sample.json
the UI does not show the spec.
(the resource exists; curl http://localhost/swagger/examples/sample.json works fine)
I can load the external spec http://api.wordnik.com/v4/resources.json OK.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- fix for vendor options in paths segment, https://github.com/wordnik/swagger-ui/issues/644 — committed to swagger-api/swagger-js by fehguy 10 years ago
- fix for https://github.com/wordnik/swagger-ui/issues/644, verify path object by type — committed to swagger-api/swagger-ui by fehguy 10 years ago
- Remove format specification due to Swagger-UI bug https://github.com/swagger-api/swagger-ui/issues/644 — committed to betagouv/paie-api by MattiSG 10 years ago
- fix for https://github.com/swagger-api/swagger-ui/issues/644#issuecomment-62723721, fall back on integer, number if format is not an expected value — committed to swagger-api/swagger-js by fehguy 10 years ago
- fix for https://github.com/wordnik/swagger-ui/issues/644, verify path object by type — committed to jessekoska/SwaggerLume by fehguy 10 years ago
- fix for https://github.com/wordnik/swagger-ui/issues/644, verify path object by type — committed to roboconf/swagger-ui by fehguy 10 years ago
And of course, better error handling should be added to give feedback on why a spec file fails to validate…