swagger-typescript-api 11.0.0--beta-2 → 11.0.0--beta-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "11.0.0--beta-2",
3
+ "version": "11.0.0--beta-3",
4
4
  "description": "Generate typescript/javascript api from swagger schema",
5
5
  "scripts": {
6
6
  "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
@@ -547,7 +547,10 @@ class SchemaRoutes {
547
547
  successResponse.type = this.schemaParser.getInlineParseContent(successResponse.schema);
548
548
 
549
549
  if (idx > -1) {
550
- _.assign(responseBodyInfo.responses[idx], successResponse.schema);
550
+ _.assign(responseBodyInfo.responses[idx], {
551
+ ...successResponse.schema,
552
+ type: successResponse.type,
553
+ });
551
554
  }
552
555
  }
553
556
  }