openapi-gen-typescript
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -55,3 +55,3 @@ "use strict"; | ||
const splitRef = ref.replace(/^[^/]+\/components\//, '').split('/'); | ||
const result = _.get(openApiData.components, splitRef.join('.')); | ||
const result = _.get(openApiData.components, splitRef); | ||
const { content, description } = result; | ||
@@ -58,0 +58,0 @@ const requestBodyCode = yield genCodeFromContent(content, typename, description, arr); |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -57,3 +57,3 @@ // @ts-ignore | ||
const splitRef = ref.replace(/^[^/]+\/components\//, '').split('/'); | ||
const result = _.get(openApiData.components, splitRef.join('.')); | ||
const result = _.get(openApiData.components, splitRef); | ||
const { content, description }: ReferenceObject & RequestBodyObject = result as any; | ||
@@ -60,0 +60,0 @@ const requestBodyCode = await genCodeFromContent(content, typename, description, arr); |
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
92101