From c95a162b32b82b9e5fca7b125825d095cd06956c Mon Sep 17 00:00:00 2001 From: Julien Bourges Date: Tue, 23 Jan 2024 15:03:11 +0100 Subject: [PATCH 1/3] fix(oas31): defaultModelExpandDepth not applied to oneOf/anyOf --- .../components/keywords/AllOf.jsx | 5 +- .../components/keywords/AnyOf.jsx | 5 +- .../components/keywords/OneOf.jsx | 5 +- test/e2e-cypress/e2e/bugs/9508.cy.js | 11 +++ test/e2e-cypress/static/pages/9508/9508.yaml | 78 +++++++++++++++++++ test/e2e-cypress/static/pages/9508/index.html | 65 ++++++++++++++++ 6 files changed, 163 insertions(+), 6 deletions(-) create mode 100644 test/e2e-cypress/e2e/bugs/9508.cy.js create mode 100644 test/e2e-cypress/static/pages/9508/9508.yaml create mode 100644 test/e2e-cypress/static/pages/9508/index.html diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx index c38e944532e..b1ba9015955 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx @@ -5,14 +5,15 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply } from "../../hooks" +import { useFn, useComponent, useIsExpandedDeeply, useIsExpanded } from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const AllOf = ({ schema }) => { const allOf = schema?.allOf || [] const fn = useFn() + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx index 634e6c2524a..5aa82764855 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx @@ -5,14 +5,15 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply } from "../../hooks" +import { useFn, useComponent, useIsExpanded, useIsExpandedDeeply } from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const AnyOf = ({ schema }) => { const anyOf = schema?.anyOf || [] const fn = useFn() + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx index 6ad7b824ba0..080e2424c38 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx @@ -5,14 +5,15 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply } from "../../hooks" +import { useFn, useComponent, useIsExpandedDeeply, useIsExpanded } from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const OneOf = ({ schema }) => { const oneOf = schema?.oneOf || [] const fn = useFn() + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/test/e2e-cypress/e2e/bugs/9508.cy.js b/test/e2e-cypress/e2e/bugs/9508.cy.js new file mode 100644 index 00000000000..c28ae844cdf --- /dev/null +++ b/test/e2e-cypress/e2e/bugs/9508.cy.js @@ -0,0 +1,11 @@ +describe("#9508: defaultModelExpandDepth not applied to oneOf/anyOf", () => { + it("should expand oneOf/anyOf schemas", () => { + cy.visit("/pages/9508/").then(() => { + cy.get("div.model-example") + .find("span.json-schema-2020-12-accordion__icon--collapsed") + .should('have.length', 0) + cy.contains('anyOf1-p1-p2-p1') + cy.contains('oneOf1-p1-p2-p1') + }) + }) +}) diff --git a/test/e2e-cypress/static/pages/9508/9508.yaml b/test/e2e-cypress/static/pages/9508/9508.yaml new file mode 100644 index 00000000000..a59692fa0c6 --- /dev/null +++ b/test/e2e-cypress/static/pages/9508/9508.yaml @@ -0,0 +1,78 @@ +openapi: "3.1.0" +info: + version: "0.0.1" + title: "Swagger UI Webpack Setup" + description: "Demonstrates Swagger UI" +components: + schemas: {} +security: [] +paths: + /pets: + get: + responses: + 200: + description: "OK" + content: + application/json: + schema: + allOf: + - oneOf: + - type: object + properties: + oneOf1-p1: + type: object + properties: + oneOf1-p1-p1: + type: string + oneOf1-p1-p2: + type: object + properties: + oneOf1-p1-p2-p1: + type: string + oneOf1-p2: + type: string + - type: object + properties: + oneOf2-p1: + type: string + oneOf2-p2: + type: string + - anyOf: + - type: object + properties: + anyOf1-p1: + type: object + properties: + anyOf1-p1-p1: + type: string + anyOf1-p1-p2: + type: object + properties: + anyOf1-p1-p2-p1: + type: string + anyOf1-p2: + type: string + - type: object + properties: + anyOf2-p1: + type: object + properties: + anyOf2-p1-p1: + type: string + anyOf2-p2: + type: string + - type: object + properties: + p1: + type: object + properties: + p1-p1: + type: string + p1-p2: + type: object + properties: + p1-p2-p1: + type: string + p2: + type: string +tags: [] diff --git a/test/e2e-cypress/static/pages/9508/index.html b/test/e2e-cypress/static/pages/9508/index.html new file mode 100644 index 00000000000..791851f748b --- /dev/null +++ b/test/e2e-cypress/static/pages/9508/index.html @@ -0,0 +1,65 @@ + + + + + + + Swagger UI + + + + + + +
+ + + + + + + From bc9c52d3c296ee49778298450a647c15cc5ab615 Mon Sep 17 00:00:00 2001 From: Oliwia Rogala Date: Tue, 13 Feb 2024 16:42:34 +0100 Subject: [PATCH 2/3] fix(json-schema-2020-12): defaultModelExpandDepth not expanding schemas Co-authored-by: Julien Bourges --- .../components/keywords/$defs.jsx | 5 +++-- .../keywords/$vocabulary/$vocabulary.jsx | 9 +++++++-- .../components/keywords/AllOf.jsx | 7 ++++++- .../components/keywords/AnyOf.jsx | 7 ++++++- .../components/keywords/DependentSchemas.jsx | 5 +++-- .../components/keywords/OneOf.jsx | 7 ++++++- .../components/keywords/PrefixItems.jsx | 10 ++++++++-- test/e2e-cypress/e2e/bugs/9508.cy.js | 11 ---------- ...a-2020-12-default-model-expand-depth.cy.js | 20 +++++++++++++++++++ .../index.html | 2 +- ...a-2020-12-default-model-expand-depth.yaml} | 17 ++++++++++++++++ 11 files changed, 77 insertions(+), 23 deletions(-) delete mode 100644 test/e2e-cypress/e2e/bugs/9508.cy.js create mode 100644 test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js rename test/e2e-cypress/static/pages/{9508 => json-schema-2020-12-default-model-expand-depth}/index.html (95%) rename test/e2e-cypress/static/pages/{9508/9508.yaml => json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml} (78%) diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/$defs.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/$defs.jsx index 200d6ca2c93..3c0a6b088af 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/$defs.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/$defs.jsx @@ -5,13 +5,14 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useComponent, useIsExpandedDeeply } from "../../hooks" +import { useComponent, useIsExpanded, useIsExpandedDeeply } from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const $defs = ({ schema }) => { const $defs = schema?.$defs || {} + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx index 8ff0bc7ae1c..f33ba92004f 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx @@ -5,11 +5,16 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../../prop-types" -import { useComponent, useIsExpandedDeeply } from "../../../hooks" +import { + useComponent, + useIsExpanded, + useIsExpandedDeeply, +} from "../../../hooks" const $vocabulary = ({ schema }) => { + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const Accordion = useComponent("Accordion") const handleExpansion = useCallback(() => { diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx index b1ba9015955..8d01800f0a1 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx @@ -5,7 +5,12 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply, useIsExpanded } from "../../hooks" +import { + useFn, + useComponent, + useIsExpanded, + useIsExpandedDeeply, +} from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const AllOf = ({ schema }) => { diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx index 5aa82764855..d968409104f 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx @@ -5,7 +5,12 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpanded, useIsExpandedDeeply } from "../../hooks" +import { + useFn, + useComponent, + useIsExpanded, + useIsExpandedDeeply, +} from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const AnyOf = ({ schema }) => { diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/DependentSchemas.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/DependentSchemas.jsx index a9a94405543..63c3596a195 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/DependentSchemas.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/DependentSchemas.jsx @@ -5,13 +5,14 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useComponent, useIsExpandedDeeply } from "../../hooks" +import { useComponent, useIsExpanded, useIsExpandedDeeply } from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const DependentSchemas = ({ schema }) => { const dependentSchemas = schema?.dependentSchemas || [] + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx index 080e2424c38..1d93bcff327 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx @@ -5,7 +5,12 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply, useIsExpanded } from "../../hooks" +import { + useFn, + useComponent, + useIsExpanded, + useIsExpandedDeeply, +} from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const OneOf = ({ schema }) => { diff --git a/src/core/plugins/json-schema-2020-12/components/keywords/PrefixItems.jsx b/src/core/plugins/json-schema-2020-12/components/keywords/PrefixItems.jsx index 798a40a888a..cb83c4c1447 100644 --- a/src/core/plugins/json-schema-2020-12/components/keywords/PrefixItems.jsx +++ b/src/core/plugins/json-schema-2020-12/components/keywords/PrefixItems.jsx @@ -5,14 +5,20 @@ import React, { useCallback, useState } from "react" import classNames from "classnames" import { schema } from "../../prop-types" -import { useFn, useComponent, useIsExpandedDeeply } from "../../hooks" +import { + useFn, + useComponent, + useIsExpandedDeeply, + useIsExpanded, +} from "../../hooks" import { JSONSchemaDeepExpansionContext } from "../../context" const PrefixItems = ({ schema }) => { const prefixItems = schema?.prefixItems || [] const fn = useFn() + const isExpanded = useIsExpanded() const isExpandedDeeply = useIsExpandedDeeply() - const [expanded, setExpanded] = useState(isExpandedDeeply) + const [expanded, setExpanded] = useState(isExpanded || isExpandedDeeply) const [expandedDeeply, setExpandedDeeply] = useState(false) const Accordion = useComponent("Accordion") const ExpandDeepButton = useComponent("ExpandDeepButton") diff --git a/test/e2e-cypress/e2e/bugs/9508.cy.js b/test/e2e-cypress/e2e/bugs/9508.cy.js deleted file mode 100644 index c28ae844cdf..00000000000 --- a/test/e2e-cypress/e2e/bugs/9508.cy.js +++ /dev/null @@ -1,11 +0,0 @@ -describe("#9508: defaultModelExpandDepth not applied to oneOf/anyOf", () => { - it("should expand oneOf/anyOf schemas", () => { - cy.visit("/pages/9508/").then(() => { - cy.get("div.model-example") - .find("span.json-schema-2020-12-accordion__icon--collapsed") - .should('have.length', 0) - cy.contains('anyOf1-p1-p2-p1') - cy.contains('oneOf1-p1-p2-p1') - }) - }) -}) diff --git a/test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js b/test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js new file mode 100644 index 00000000000..87d8d40b92d --- /dev/null +++ b/test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js @@ -0,0 +1,20 @@ +/** + * @prettier + */ + +describe("defaultModelExpandDepth for JSON Schema 2020-12 keywords", () => { + it("should expand schemas", () => { + cy.visit("/pages/json-schema-2020-12-default-model-expand-depth/").then( + () => { + cy.get(".json-schema-2020-12-accordion") + .find(".json-schema-2020-12-accordion__icon--collapsed") + .should("not.exist") + cy.contains("anyOf1-p1-p2-p1").should("exist") + cy.contains("oneOf1-p1-p2-p1").should("exist") + cy.contains("Prefix items").should("exist") + cy.contains("exampleDef").should("exist") + cy.contains("core").should("exist") + } + ) + }) +}) diff --git a/test/e2e-cypress/static/pages/9508/index.html b/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html similarity index 95% rename from test/e2e-cypress/static/pages/9508/index.html rename to test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html index 791851f748b..9518b66bb7d 100644 --- a/test/e2e-cypress/static/pages/9508/index.html +++ b/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html @@ -36,7 +36,7 @@ window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] // Build a system const ui = SwaggerUIBundle({ - url: "./9508.yaml", + url: "./json-schema-2020-12-default-model-expand-depth.yaml", dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis, diff --git a/test/e2e-cypress/static/pages/9508/9508.yaml b/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml similarity index 78% rename from test/e2e-cypress/static/pages/9508/9508.yaml rename to test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml index a59692fa0c6..6c844061488 100644 --- a/test/e2e-cypress/static/pages/9508/9508.yaml +++ b/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml @@ -15,6 +15,11 @@ paths: content: application/json: schema: + $vocabulary: + core: "https://json-schema.org/draft/2020-12/meta/core" + $defs: + exampleDef: + type: string allOf: - oneOf: - type: object @@ -73,6 +78,18 @@ paths: properties: p1-p2-p1: type: string + dependentSchemas: + p1-p1: + properties: + p3: + type: array + prefixItems: + - type: string + enum: [a, b, c] + required: [p3] p2: type: string + prefixItems: + - type: string + enum: [a, b, c] tags: [] From 888f9f754e964489a1b70822094865b5ed52614f Mon Sep 17 00:00:00 2001 From: Oliwia Rogala Date: Wed, 14 Feb 2024 10:10:10 +0100 Subject: [PATCH 3/3] test(json-schema-2020-12): update tests --- .../json-schema-2020-12/expansion.cy.js} | 8 ++++---- .../expansion.yaml} | 7 ++++++- .../index.html | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) rename test/e2e-cypress/e2e/features/{json-schema-2020-12-default-model-expand-depth.cy.js => plugins/json-schema-2020-12/expansion.cy.js} (59%) rename test/e2e-cypress/static/pages/{json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml => json-schema-2020-12-expansion/expansion.yaml} (87%) rename test/e2e-cypress/static/pages/{json-schema-2020-12-default-model-expand-depth => json-schema-2020-12-expansion}/index.html (95%) diff --git a/test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js b/test/e2e-cypress/e2e/features/plugins/json-schema-2020-12/expansion.cy.js similarity index 59% rename from test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js rename to test/e2e-cypress/e2e/features/plugins/json-schema-2020-12/expansion.cy.js index 87d8d40b92d..9a9ff18b498 100644 --- a/test/e2e-cypress/e2e/features/json-schema-2020-12-default-model-expand-depth.cy.js +++ b/test/e2e-cypress/e2e/features/plugins/json-schema-2020-12/expansion.cy.js @@ -2,9 +2,9 @@ * @prettier */ -describe("defaultModelExpandDepth for JSON Schema 2020-12 keywords", () => { - it("should expand schemas", () => { - cy.visit("/pages/json-schema-2020-12-default-model-expand-depth/").then( +describe("JSON Schema 2020-12 complex keywords expansion", () => { + it("should deeply expand all Schemas and complex keywords", () => { + cy.visit("/pages/json-schema-2020-12-expansion/").then( () => { cy.get(".json-schema-2020-12-accordion") .find(".json-schema-2020-12-accordion__icon--collapsed") @@ -13,7 +13,7 @@ describe("defaultModelExpandDepth for JSON Schema 2020-12 keywords", () => { cy.contains("oneOf1-p1-p2-p1").should("exist") cy.contains("Prefix items").should("exist") cy.contains("exampleDef").should("exist") - cy.contains("core").should("exist") + cy.contains("https://json-schema.org/draft/2020-12/vocab/core").should("exist") } ) }) diff --git a/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml b/test/e2e-cypress/static/pages/json-schema-2020-12-expansion/expansion.yaml similarity index 87% rename from test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml rename to test/e2e-cypress/static/pages/json-schema-2020-12-expansion/expansion.yaml index 6c844061488..5e7f7958ce9 100644 --- a/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/json-schema-2020-12-default-model-expand-depth.yaml +++ b/test/e2e-cypress/static/pages/json-schema-2020-12-expansion/expansion.yaml @@ -16,7 +16,12 @@ paths: application/json: schema: $vocabulary: - core: "https://json-schema.org/draft/2020-12/meta/core" + https://json-schema.org/draft/2020-12/vocab/core: true + https://json-schema.org/draft/2020-12/vocab/applicator: true + https://json-schema.org/draft/2020-12/vocab/validation: true + https://json-schema.org/draft/2020-12/vocab/meta-data: true + https://json-schema.org/draft/2020-12/vocab/format-annotation: false + https://example.com/my-custom-vocab: true $defs: exampleDef: type: string diff --git a/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html b/test/e2e-cypress/static/pages/json-schema-2020-12-expansion/index.html similarity index 95% rename from test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html rename to test/e2e-cypress/static/pages/json-schema-2020-12-expansion/index.html index 9518b66bb7d..93a26c93398 100644 --- a/test/e2e-cypress/static/pages/json-schema-2020-12-default-model-expand-depth/index.html +++ b/test/e2e-cypress/static/pages/json-schema-2020-12-expansion/index.html @@ -36,7 +36,7 @@ window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] // Build a system const ui = SwaggerUIBundle({ - url: "./json-schema-2020-12-default-model-expand-depth.yaml", + url: "./expansion.yaml", dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis,