@nestia/sdk
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -135,6 +135,6 @@ "use strict"; | ||
function fill_security(security, swagger) { | ||
swagger.security = []; | ||
swagger.security = [{}]; | ||
swagger.components.securitySchemes = {}; | ||
for (const [key, value] of Object.entries(security)) { | ||
swagger.security.push(key); | ||
swagger.security[0][key] = []; | ||
swagger.components.securitySchemes[key] = emend_security(value); | ||
@@ -141,0 +141,0 @@ } |
@@ -8,3 +8,3 @@ import { IJsonComponents, IJsonSchema } from "typia"; | ||
components: ISwaggerDocument.IComponents; | ||
security?: string[]; | ||
security?: Record<string, string[]>[]; | ||
paths: Record<string, ISwaggerDocument.IPath>; | ||
@@ -11,0 +11,0 @@ } |
{ | ||
"name": "@nestia/sdk", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Nestia SDK and Swagger generator", | ||
@@ -36,3 +36,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@nestia/core": "^1.0.8", | ||
"@nestia/core": "^1.0.10", | ||
"@nestia/fetcher": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "@trivago/prettier-plugin-sort-imports": "^4.0.0", |
@@ -193,7 +193,7 @@ import fs from "fs"; | ||
): void { | ||
swagger.security = []; | ||
swagger.security = [{}]; | ||
swagger.components.securitySchemes = {}; | ||
for (const [key, value] of Object.entries(security)) { | ||
swagger.security.push(key); | ||
swagger.security[0]![key] = []; | ||
swagger.components.securitySchemes[key] = emend_security(value); | ||
@@ -200,0 +200,0 @@ } |
@@ -9,3 +9,3 @@ import { IJsonComponents, IJsonSchema } from "typia"; | ||
components: ISwaggerDocument.IComponents; | ||
security?: string[]; | ||
security?: Record<string, string[]>[]; | ||
paths: Record<string, ISwaggerDocument.IPath>; | ||
@@ -12,0 +12,0 @@ } |
Sorry, the diff of this file is not supported yet
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
311653