google-discovery-to-swagger
Advanced tools
Comparing version 0.0.14 to 1.0.0
{ | ||
"name": "google-discovery-to-swagger", | ||
"version": "0.0.14", | ||
"version": "1.0.0", | ||
"description": "Script for converting Google Discovery format into Swagger 2.0", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -267,4 +267,7 @@ 'use strict'; | ||
if ('scopes' in method) | ||
srMethod.security = [{ Oauth2: method.scopes}]; | ||
srMethod.security = _.map(method.scopes, function (scope) { | ||
return { | ||
Oauth2: [scope] | ||
}; | ||
}); | ||
@@ -271,0 +274,0 @@ return srMethod; |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17283
321
0