openapi-gen-typescript
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -124,3 +124,4 @@ "use strict"; | ||
const { operationId, parameters = [], requestBody = {}, responses, } = objectElement; | ||
const namespaceName = camelcase(operationId || `${method.toLowerCase()}${getCamelcase(urlPath, { pascalCase: true })}`, { pascalCase: true }); | ||
let namespaceName = camelcase(operationId || `${method.toLowerCase()}${getCamelcase(urlPath, { pascalCase: true })}`, { pascalCase: true }); | ||
namespaceName = namespaceName.replace(/[^a-zA-Z0-9_]/g, ""); | ||
const responseTypeNames = []; | ||
@@ -127,0 +128,0 @@ const responsesCode = (yield Promise.all(Object.keys(responses) |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -165,3 +165,4 @@ // @ts-ignore | ||
const namespaceName = camelcase(operationId || `${method.toLowerCase()}${getCamelcase(urlPath, { pascalCase: true })}`, { pascalCase: true }); | ||
let namespaceName = camelcase(operationId || `${method.toLowerCase()}${getCamelcase(urlPath, { pascalCase: true })}`, { pascalCase: true }); | ||
namespaceName = namespaceName.replace(/[^a-zA-Z0-9_]/g, ""); | ||
const responseTypeNames: string[] = []; | ||
@@ -168,0 +169,0 @@ const responsesCode: string = (await Promise.all(Object.keys(responses as Object) |
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
50182
979