@samchon/openapi
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -10,5 +10,5 @@ "use strict"; | ||
MigrateConverter.convert = (document) => { | ||
var _a; | ||
var _a, _b; | ||
const errors = []; | ||
const entire = Object.entries((_a = document.paths) !== null && _a !== void 0 ? _a : {}) | ||
const entire = Object.entries(Object.assign(Object.assign({}, ((_a = document.paths) !== null && _a !== void 0 ? _a : {})), ((_b = document.webhooks) !== null && _b !== void 0 ? _b : {}))) | ||
.map(([path, collection]) => ["head", "get", "post", "put", "patch", "delete"] | ||
@@ -15,0 +15,0 @@ .filter((method) => collection[method] !== undefined) |
@@ -65,3 +65,3 @@ import { IMigrateDocument } from "./IMigrateDocument"; | ||
paths?: Record<string, IPath>; | ||
webhooks?: Record<string, IJsonSchema.IReference<`#/components/pathItems/${string}`> | IPath>; | ||
webhooks?: Record<string, IPath>; | ||
security?: Record<string, string[]>[]; | ||
@@ -68,0 +68,0 @@ tags?: IDocument.ITag[]; |
{ | ||
"name": "@samchon/openapi", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -11,5 +11,6 @@ import { IMigrateRoute } from "../IMigrateRoute"; | ||
const errors: IMigrateDocument.IError[] = []; | ||
const entire: Array<IMigrateRoute | null> = Object.entries( | ||
document.paths ?? {}, | ||
) | ||
const entire: Array<IMigrateRoute | null> = Object.entries({ | ||
...(document.paths ?? {}), | ||
...(document.webhooks ?? {}), | ||
}) | ||
.map(([path, collection]) => | ||
@@ -16,0 +17,0 @@ (["head", "get", "post", "put", "patch", "delete"] as const) |
@@ -124,6 +124,3 @@ import { IMigrateDocument } from "./IMigrateDocument"; | ||
paths?: Record<string, IPath>; | ||
webhooks?: Record< | ||
string, | ||
IJsonSchema.IReference<`#/components/pathItems/${string}`> | IPath | ||
>; | ||
webhooks?: Record<string, IPath>; | ||
security?: Record<string, string[]>[]; | ||
@@ -130,0 +127,0 @@ tags?: IDocument.ITag[]; |
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
296575
7317