@geekmidas/cli 1.10.32 → 1.10.33
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-BQft1jm8.cjs → openapi-BQVC9vE5.cjs} +4 -3
- package/dist/{openapi-BQft1jm8.cjs.map → openapi-BQVC9vE5.cjs.map} +1 -1
- package/dist/{openapi-DE8b-vin.mjs → openapi-DY3ctapV.mjs} +4 -3
- package/dist/{openapi-DE8b-vin.mjs.map → openapi-DY3ctapV.mjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/package.json +2 -2
- package/src/generators/OpenApiTsGenerator.ts +3 -1
- package/src/generators/__tests__/OpenApiTsGenerator.responseType.spec.ts +56 -0
- package/src/init/versions.ts +2 -2
|
@@ -1240,7 +1240,8 @@ var OpenApiTsGenerator = class {
|
|
|
1240
1240
|
output: ep.outputSchema,
|
|
1241
1241
|
description: ep.description,
|
|
1242
1242
|
tags: ep.tags,
|
|
1243
|
-
operationId: ep.operationId
|
|
1243
|
+
operationId: ep.operationId,
|
|
1244
|
+
responseType: ep.responseType ?? "application/json"
|
|
1244
1245
|
};
|
|
1245
1246
|
});
|
|
1246
1247
|
}
|
|
@@ -1494,7 +1495,7 @@ var OpenApiTsGenerator = class {
|
|
|
1494
1495
|
parts.push(`responses: {
|
|
1495
1496
|
200: {
|
|
1496
1497
|
content: {
|
|
1497
|
-
'
|
|
1498
|
+
'${info.responseType}': ${outputName};
|
|
1498
1499
|
};
|
|
1499
1500
|
};
|
|
1500
1501
|
}`);
|
|
@@ -1842,4 +1843,4 @@ Object.defineProperty(exports, 'resolveOpenApiConfig', {
|
|
|
1842
1843
|
return resolveOpenApiConfig;
|
|
1843
1844
|
}
|
|
1844
1845
|
});
|
|
1845
|
-
//# sourceMappingURL=openapi-
|
|
1846
|
+
//# sourceMappingURL=openapi-BQVC9vE5.cjs.map
|