openapi-codegen-typescript
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -0,1 +1,13 @@ | ||
# v0.1.5 (Thu Mar 26 2020) | ||
#### 🐛 Bug Fix | ||
- fix(openapi-codegen): fix mock codegen of "array of numbers" [#5](https://github.com/LandrAudio/openapi-codegen-typescript/pull/5) ([@nemrosim](https://github.com/nemrosim)) | ||
#### Authors: 1 | ||
- Artem Diashkin ([@nemrosim](https://github.com/nemrosim)) | ||
--- | ||
# v0.1.4 (Fri Mar 13 2020) | ||
@@ -2,0 +14,0 @@ |
@@ -133,3 +133,8 @@ "use strict"; | ||
else { | ||
mocks.push({ propertyName: propertyName, value: "['" + casual_1.default.word + "']" }); | ||
if (items.type === types_1.DataTypes.Number) { | ||
mocks.push({ propertyName: propertyName, value: "[" + casual_1.default.double() + "," + casual_1.default.double() + "]" }); | ||
} | ||
else { | ||
mocks.push({ propertyName: propertyName, value: "['" + casual_1.default.word + "']" }); | ||
} | ||
} | ||
@@ -136,0 +141,0 @@ } |
{ | ||
"name": "openapi-codegen-typescript", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"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": "^9.19.5", | ||
"auto": "^9.21.0", | ||
"eslint": "6.8.0", | ||
@@ -46,0 +46,0 @@ "eslint-config-prettier": "6.10.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44458
805