@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
|
@@ -1239,7 +1239,8 @@ var OpenApiTsGenerator = class {
|
|
|
1239
1239
|
output: ep.outputSchema,
|
|
1240
1240
|
description: ep.description,
|
|
1241
1241
|
tags: ep.tags,
|
|
1242
|
-
operationId: ep.operationId
|
|
1242
|
+
operationId: ep.operationId,
|
|
1243
|
+
responseType: ep.responseType ?? "application/json"
|
|
1243
1244
|
};
|
|
1244
1245
|
});
|
|
1245
1246
|
}
|
|
@@ -1493,7 +1494,7 @@ var OpenApiTsGenerator = class {
|
|
|
1493
1494
|
parts.push(`responses: {
|
|
1494
1495
|
200: {
|
|
1495
1496
|
content: {
|
|
1496
|
-
'
|
|
1497
|
+
'${info.responseType}': ${outputName};
|
|
1497
1498
|
};
|
|
1498
1499
|
};
|
|
1499
1500
|
}`);
|
|
@@ -1794,4 +1795,4 @@ async function openapiCommand(options = {}) {
|
|
|
1794
1795
|
|
|
1795
1796
|
//#endregion
|
|
1796
1797
|
export { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig };
|
|
1797
|
-
//# sourceMappingURL=openapi-
|
|
1798
|
+
//# sourceMappingURL=openapi-DY3ctapV.mjs.map
|