fix: fix regression in definition resolution (#9658)

Refs https://github.com/swagger-api/swagger-js/issues/3385
Refs #9645
This commit is contained in:
Oliwia Rogala
2024-03-01 13:50:04 +01:00
committed by GitHub
parent 0e638cd224
commit 6154396e06
4 changed files with 8 additions and 15 deletions

8
package-lock.json generated
View File

@@ -41,7 +41,7 @@
"reselect": "^5.1.0",
"serialize-error": "^8.1.0",
"sha.js": "^2.4.11",
"swagger-client": "^3.25.3",
"swagger-client": "^3.25.4",
"url-parse": "^1.5.10",
"xml": "=1.0.1",
"xml-but-prettier": "^1.0.1",
@@ -27228,9 +27228,9 @@
}
},
"node_modules/swagger-client": {
"version": "3.25.3",
"resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.25.3.tgz",
"integrity": "sha512-DUQ1zBgs+SDRTL+w2F2KDoneA9rkwpq9oF2Gex0HzGdlWP/4mEClFgp6ulMgcdSS2mC+B7thnvuT6aF1AwKbqw==",
"version": "3.25.4",
"resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.25.4.tgz",
"integrity": "sha512-pq9Zs6yf6Giy5JLnkUSeH+y1AQrhomDCkmVYpMY5Rkx6u70jnyiuRWwkGW6cgsPY+/8N38jRGieoWzJYPPGIuA==",
"dependencies": {
"@babel/runtime-corejs3": "^7.22.15",
"@swagger-api/apidom-core": ">=0.90.0 <1.0.0",

View File

@@ -103,7 +103,7 @@
"reselect": "^5.1.0",
"serialize-error": "^8.1.0",
"sha.js": "^2.4.11",
"swagger-client": "^3.25.3",
"swagger-client": "^3.25.4",
"url-parse": "^1.5.10",
"xml": "=1.0.1",
"xml-but-prettier": "^1.0.1",

View File

@@ -18,19 +18,15 @@ describe("OpenAPI 3.0 complex spec with allOf and nested references", () => {
cy.get("@scenarioSiblings")
.find("span")
.contains("scenarioID")
.should("not.exist")
.should("exist")
cy.get("@scenarioSiblings")
.find("span")
.contains("Scenarios (for create)")
.contains("Studies (for create)")
.should("exist")
.click()
cy.get("@scenarioSiblings")
.find("span")
.contains("scenarioID")
.should("exist")
cy.get("@scenarioSiblings")
.find("span")
.contains("#/components/schemas/unresolvedRef")
.contains("studyPhase")
.should("exist")
})
})

View File

@@ -62193,9 +62193,6 @@
"allOf": [
{
"$ref": "#/components/schemas/com.sap.ctsm.backend.core.api.study.v1.StudyAPIv1.Scenarios-create"
},
{
"$ref": "#/components/schemas/unresolvedRef"
}
],
"nullable": true