fix: gracefully handle empty request bodies (via #4859)
This commit is contained in:
12
test/e2e-cypress/static/documents/bugs/4838.yaml
Normal file
12
test/e2e-cypress/static/documents/bugs/4838.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
openapi: "3.0.0"
|
||||
|
||||
paths:
|
||||
/some/route:
|
||||
post:
|
||||
description: This should be visible
|
||||
tags:
|
||||
- Some
|
||||
requestBody: {}
|
||||
responses:
|
||||
'200':
|
||||
description: Description
|
||||
11
test/e2e-cypress/tests/bugs/4838.js
Normal file
11
test/e2e-cypress/tests/bugs/4838.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import repeat from "lodash/repeat"
|
||||
|
||||
describe("#4838: empty request bodies result in endless loading", () => {
|
||||
it("should render model content changes correctly", () => {
|
||||
cy
|
||||
.visit("/?url=/documents/bugs/4838.yaml")
|
||||
.get("#operations-Some-post_some_route")
|
||||
.click()
|
||||
.contains("This should be visible")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user