forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove special handling of non-FormData entries (swagger-api#6036)
Ref: swagger-api#6033 * 'createObjWithHashedKeys' validation consistency with isFunction * 'createObjWithHashedKeys' additional jsdoc example
- Loading branch information
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,42 @@ | ||
describe("Entries should be valid property name", () => { | ||
it("should render a OAS3.0 definition that uses 'entries' as a property name", () => { | ||
it("should render a OAS3.0 definition that uses 'entries' as a 'components' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas3.yaml") | ||
.get("#operations-tag-default") | ||
.should("exist") | ||
}) | ||
it("should render a OAS2.0 definition that uses 'entries' as a property name", () => { | ||
it("should render expanded Operations of OAS3.0 definition that uses 'entries' as a 'components' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas3.yaml") | ||
.get("#operations-default-test_test__get") | ||
.click() | ||
.get("#operations-default-test_test__get > div .opblock-body") | ||
.should("exist") | ||
|
||
}) | ||
it("should render expanded Models of OAS3.0 definition that uses 'entries' as a 'components' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas3.yaml") | ||
.get("#model-Testmodel > span .model-box") | ||
.click() | ||
.get("div .model-box") | ||
.should("exist") | ||
}) | ||
it("should render a OAS2.0 definition that uses 'entries' as a 'definitions' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas2.yaml") | ||
.get("#operations-default-post_pet") | ||
.should("exist") | ||
}) | ||
it("should render expanded Operations of OAS2.0 definition that uses 'entries' as a 'definitions' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas2.yaml") | ||
.get("#operations-default-post_pet") | ||
.click() | ||
.get("#operations-default-post_pet > div .opblock-body") | ||
.should("exist") | ||
|
||
}) | ||
it("should render expanded Models of OAS2.0 definition that uses 'entries' as a 'defintions' property name", () => { | ||
cy.visit("/?url=/documents/bugs/6016-oas2.yaml") | ||
.get("#model-Pet > span .model-box") | ||
.click() | ||
.get("div .model-box") | ||
.should("exist") | ||
}) | ||
}) |