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