openapi-gen-typescript
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -71,3 +71,3 @@ "use strict"; | ||
if (jsonSchema.lastIndexOf('[]') === jsonSchema.length - 2) { | ||
jsonSchema = jsonSchema.replace(/\(|\)|(\[\])+/g, ''); | ||
jsonSchema = jsonSchema.replace(/\(|\)|(\[\]$)/g, ''); | ||
responseTypeNames.push(`${responseTypeName}[]`); | ||
@@ -74,0 +74,0 @@ } |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -80,3 +80,3 @@ // @ts-ignore | ||
if (jsonSchema.lastIndexOf('[]') === jsonSchema.length - 2) { | ||
jsonSchema = jsonSchema.replace(/\(|\)|(\[\])+/g, ''); | ||
jsonSchema = jsonSchema.replace(/\(|\)|(\[\]$)/g, ''); | ||
responseTypeNames.push(`${responseTypeName}[]`); | ||
@@ -83,0 +83,0 @@ } else if (/^\(([\s\S]+)\)$/.test(jsonSchema)) { |
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