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.4 to 0.1.5

12

CHANGELOG.md

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

7

dist/mockConverter.js

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

4

package.json
{
"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",

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