oas-raml-converter
Advanced tools
Comparing version 1.1.31 to 1.1.32
@@ -266,2 +266,12 @@ 'use strict'; | ||
if (oasDef.hasOwnProperty('security')) { | ||
model.securedBy = []; | ||
oasDef.security.map(function (sec) { | ||
var key = _.keys(sec)[0]; | ||
var obj = {}; | ||
obj[key] = { scopes: sec[key] }; | ||
model.securedBy = model.securedBy.concat(sec[key].length === 0 ? key : obj); | ||
}); | ||
} | ||
Oas20RootConverter.importAnnotations(oasDef, model, model); | ||
@@ -268,0 +278,0 @@ |
{ | ||
"name": "oas-raml-converter", | ||
"version": "1.1.31", | ||
"version": "1.1.32", | ||
"description": "This package helps to convert between different API specifications. Supports OAS (Swagger 2), RAML 0.8, RAML 1.0.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -249,3 +249,13 @@ // @flow | ||
} | ||
if (oasDef.hasOwnProperty('security')) { | ||
model.securedBy = []; | ||
oasDef.security.map(sec => { | ||
const key = _.keys(sec)[0]; | ||
const obj = {}; | ||
obj[key] = {scopes: sec[key]}; | ||
model.securedBy = model.securedBy.concat(sec[key].length === 0 ? key : obj); | ||
}); | ||
} | ||
Oas20RootConverter.importAnnotations(oasDef, model, model); | ||
@@ -252,0 +262,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1089597
18010
0