fix: required properties (#7206)
* fix: required properties schema required properties should not be treated like required: true. this lead to objects that requires properties being treated as required itself * test: try-it-out-schema-required-override-allowed Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
describe("Try It Out: schema required properties can be overriden", () => {
|
||||
it("should execute", () => {
|
||||
cy
|
||||
.visit("?tryItOutEnabled=true&url=/documents/features/try-it-out-schema-required-override-allowed.yaml")
|
||||
.get("#operations-default-setDeliveryLocation")
|
||||
.click()
|
||||
.get(".body-param__text")
|
||||
.should("include.value", "testProperty")
|
||||
.clear() // swagger-ui will auto insert "{}" into textarea
|
||||
.get(".execute-wrapper > .btn")
|
||||
.click()
|
||||
.get(".curl-command")
|
||||
.should("exist")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user