Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oas-raml-converter

Package Overview
Dependencies
Maintainers
10
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oas-raml-converter - npm Package Compare versions

Comparing version 1.1.31 to 1.1.32

10

lib/oas20/oas20RootConverter.js

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc