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:
Vladimír Gorej
2024-04-08 13:43:38 +02:00
committed by GitHub
parent af538a3800
commit 111e420c98
5 changed files with 177 additions and 30 deletions

View File

@@ -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")
})
})