@samchon/openapi
Advanced tools
Comparing version 0.1.20 to 0.1.21
@@ -36,3 +36,3 @@ "use strict"; | ||
var _a, _b; | ||
return (Object.assign(Object.assign({}, input), { parameters: pathItem.parameters !== undefined && input.parameters !== undefined | ||
return (Object.assign(Object.assign({}, input), { parameters: pathItem.parameters !== undefined || input.parameters !== undefined | ||
? [...((_a = pathItem.parameters) !== null && _a !== void 0 ? _a : []), ...((_b = input.parameters) !== null && _b !== void 0 ? _b : [])] | ||
@@ -39,0 +39,0 @@ .map((p) => { |
@@ -74,4 +74,4 @@ "use strict"; | ||
const downgradeParameter = (collection) => (input, i) => { | ||
var _a; | ||
return (Object.assign(Object.assign(Object.assign({}, SwaggerV2Downgrader.downgradeSchema(collection)(input.schema)), input), { schema: undefined, name: (_a = input.name) !== null && _a !== void 0 ? _a : `p${i}` })); | ||
var _a, _b; | ||
return (Object.assign(Object.assign(Object.assign({}, SwaggerV2Downgrader.downgradeSchema(collection)(input.schema)), input), { required: (_a = input.schema) === null || _a === void 0 ? void 0 : _a.required, schema: undefined, name: (_b = input.name) !== null && _b !== void 0 ? _b : `p${i}` })); | ||
}; | ||
@@ -78,0 +78,0 @@ const downgradeRequestBody = (collection) => (input) => { |
{ | ||
"name": "@samchon/openapi", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -60,3 +60,3 @@ import { OpenApi } from "../OpenApi"; | ||
parameters: | ||
pathItem.parameters !== undefined && input.parameters !== undefined | ||
pathItem.parameters !== undefined || input.parameters !== undefined | ||
? [...(pathItem.parameters ?? []), ...(input.parameters ?? [])] | ||
@@ -63,0 +63,0 @@ .map((p) => { |
@@ -118,2 +118,3 @@ import { OpenApi } from "../OpenApi"; | ||
...input, | ||
required: (input.schema as any)?.required, | ||
schema: undefined, | ||
@@ -120,0 +121,0 @@ name: input.name ?? `p${i}`, |
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
240069
5832