docs: generate OAS manually for 2.7.0 (#12158)

* original changes

* changes

* fixes for delete operations

* generate oas
This commit is contained in:
Shahed Nasser
2025-04-11 16:41:39 +03:00
committed by GitHub
parent f8023f419e
commit cd66cdd2bb
1028 changed files with 29859 additions and 286 deletions

View File

@@ -615,7 +615,12 @@ class OasKindGenerator extends FunctionKindGenerator {
// check if it has a success response of a type other than JSON
if (!this.hasResponseType(node, oas)) {
// remove response schema by only keeping the default responses
oas.responses = DEFAULT_OAS_RESPONSES
oas.responses = {
...DEFAULT_OAS_RESPONSES,
[newStatus]: {
description: "OK",
},
}
}
} else {
// check if response status should be changed
@@ -1269,7 +1274,7 @@ class OasKindGenerator extends FunctionKindGenerator {
)
}
if (methodName !== "delete" && methodName !== "get") {
if (methodName !== "get") {
requestSchema = requestBodyParameterSchema
}