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
{{ message }}
Repository navigation
Validation of deep objects seems to be broken #5648
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:
Activity
shockey commentedon Oct 11, 2019
Looks like this was introduced in #5571:
c9c3b23#diff-47300e7ecd8989b6246221de88fc9a3cL524-R549
shockey commentedon Oct 11, 2019
Fixed! Will be released today.