openapi-codegen-typescript
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -0,1 +1,13 @@ | ||
# v0.1.20 (Thu Feb 18 2021) | ||
#### 🐛 Bug Fix | ||
- feat: support dictionary of array of complex type [#30](https://github.com/LandrAudio/openapi-codegen-typescript/pull/30) ([@boulc](https://github.com/boulc)) | ||
#### Authors: 1 | ||
- Sébastien Boulay ([@boulc](https://github.com/boulc)) | ||
--- | ||
# v0.1.19 (Tue Dec 15 2020) | ||
@@ -2,0 +14,0 @@ |
@@ -215,2 +215,5 @@ "use strict"; | ||
break; | ||
case types_1.DataTypes.Array: | ||
result = '[]'; | ||
break; | ||
default: { | ||
@@ -217,0 +220,0 @@ result = ' // TODO: Wrong dictionary value'; |
@@ -185,4 +185,12 @@ "use strict"; | ||
break; | ||
case types_1.DataTypes.Array: | ||
if (additionalProperties.items && additionalProperties.items[types_1.SwaggerProps.$ref]) { | ||
res = parseRefType(additionalProperties.items[types_1.SwaggerProps.$ref].split('/')) + "[]"; | ||
} | ||
else { | ||
res = " \"// TODO: Something is wrong\" "; | ||
} | ||
break; | ||
default: | ||
res = " \"// TODO: Something in wrong\" "; | ||
res = " \"// TODO: Something is wrong, type " + additionalProperties.type + " is not supported\" "; | ||
break; | ||
@@ -198,7 +206,7 @@ } | ||
else { | ||
result += " \"// TODO: Something in wrong\" "; | ||
result += " \"// TODO: Something is wrong\" "; | ||
} | ||
} | ||
else { | ||
result += ' "// TODO: Something in wrong" '; | ||
result += ' "// TODO: Something is wrong" '; | ||
} | ||
@@ -205,0 +213,0 @@ } |
{ | ||
"name": "openapi-codegen-typescript", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "OpenApi codegen for generating types an mocks from swagger json file", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"@typescript-eslint/parser": "2.20.0", | ||
"auto": "^10.4.2", | ||
"auto": "^10.16.5", | ||
"eslint": "6.8.0", | ||
@@ -46,0 +46,0 @@ "eslint-config-prettier": "6.10.0", |
73171
1347