fix(oas31): allow override names of top level schemas (#9787)
Refs #9713 Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @prettier
|
||||
*/
|
||||
|
||||
describe("JSON Schema 2020-12 title keyword", () => {
|
||||
it("should render a correct title for schemas", () => {
|
||||
cy.visit("/?url=/documents/features/json-schema-2020-12-title.yaml")
|
||||
.get(".json-schema-2020-12__title")
|
||||
.eq(0)
|
||||
.contains("My Pet")
|
||||
.should("exist")
|
||||
.get(".json-schema-2020-12__title")
|
||||
.eq(1)
|
||||
.contains("My Pets")
|
||||
.should("exist")
|
||||
.get(".json-schema-2020-12__title")
|
||||
.eq(2)
|
||||
.contains("Error")
|
||||
.should("exist")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user