Socket
Socket
Sign inDemoInstall

@samchon/openapi

Package Overview
Dependencies
0
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.20 to 0.1.21

2

lib/internal/OpenApiV3Converter.js

@@ -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}`,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc