Reloading is broken by latest pull request #52
ColmHally opened this issue · 0 comments
ColmHally commented
If you're exploring an API and try to reload, the page fails to load due to a JSON error:
Uncaught SyntaxError: Unexpected token < in JSON at position 0
This is because the code added in #52 blindly appends on /swagger.json
to the current URL, which might be something like http://localhost:8000/#!/pet/updatePet
; giving http://localhost:8000/#!/pet/updatePet/swagger.json
.
A server seeing this URL will actually just return the index.html
page which is not valid JSON.