fix(json-schema-2020-12): avoid accessing properties of null schemas (#10397)

This commit is contained in:
Oliwia Rogala
2025-04-02 08:16:08 +02:00
committed by GitHub
parent 25daec9ce9
commit d2fff7c746
9 changed files with 45 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
/**
* @prettier
*/
describe("Empty JSON Schema 2020-12", () => {
it("should render as schema of type `any`", () => {
cy.visit("/?url=/documents/features/json-schema-2020-12-empty-schema.yaml")
cy.get(".json-schema-2020-12__title").should("contain", "Test")
cy.get(".json-schema-2020-12__attribute").should("contain", "any")
})
})

View File

@@ -0,0 +1,4 @@
openapi: 3.1.0
components:
schemas:
Test: