Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-codegen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-codegen-typescript - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

12

CHANGELOG.md

@@ -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 @@

3

dist/MockGenerateHelper.js

@@ -215,2 +215,5 @@ "use strict";

break;
case types_1.DataTypes.Array:
result = '[]';
break;
default: {

@@ -217,0 +220,0 @@ result = ' // TODO: Wrong dictionary value';

14

dist/typesConverter.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc