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
Swagger-UI configuration options:
I use the default options. I simply copied the contents of the dist folder into a folder in my application. Then I created swagger.json in that folder, and I modified index.html to point to that JSON file. Swagger is statically served by a Go application.
Describe the bug you're encountering
If I enter a non-valid JSON into the text area for parameter map and I click execute, a spinning wheel appears and it just stays there forever. No request is received by the backend.
Older versions of swagger UI (e.g., 3.23.6 or 3.22.3) work correctly: the text area becomes red and a message stating that a valid JSON is required appears. So, the correct behavior must have been broken at some point after 3.23.6.
To reproduce...
Steps to reproduce the behavior:
Statically serve the swagger.json shown above
Type some invalid JSON (e.g., foobar) in the only field
Click execute
See error
Expected behavior
Swagger UI should behave as it did in previous versions.
Screenshots
Current behavior where spinning wheel appears and swagger UI freezes:
Old behavior where invalid JSON is detected:
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
I use the default options. I simply copied the contents of the
dist
folder into a folder in my application. Then I createdswagger.json
in that folder, and I modifiedindex.html
to point to that JSON file. Swagger is statically served by a Go application.Describe the bug you're encountering
If I enter a non-valid JSON into the text area for parameter
map
and I click execute, a spinning wheel appears and it just stays there forever. No request is received by the backend.Older versions of swagger UI (e.g., 3.23.6 or 3.22.3) work correctly: the text area becomes red and a message stating that a valid JSON is required appears. So, the correct behavior must have been broken at some point after 3.23.6.
To reproduce...
Steps to reproduce the behavior:
swagger.json
shown aboveExpected behavior
Swagger UI should behave as it did in previous versions.
Screenshots
Current behavior where spinning wheel appears and swagger UI freezes:
Old behavior where invalid JSON is detected:
The text was updated successfully, but these errors were encountered: