@tim-smart/openapi-gen 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +3 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -35562,6 +35562,9 @@ var make65 = gen2(function* () {
|
|
|
35562
35562
|
let defaultSchema;
|
|
35563
35563
|
Object.entries(operation.responses ?? {}).forEach(
|
|
35564
35564
|
([status2, response]) => {
|
|
35565
|
+
if ("$ref" in response) {
|
|
35566
|
+
response = resolveRef2(response.$ref);
|
|
35567
|
+
}
|
|
35565
35568
|
if (response.content?.["application/json"]?.schema) {
|
|
35566
35569
|
const schemaName = gen3.addSchema(
|
|
35567
35570
|
`${schemaId}${status2}`,
|