openapi-to-postmanv2
Advanced tools
Comparing version 4.9.0-beta.7 to 4.9.0-beta.8
@@ -5,2 +5,13 @@ let _ = require('lodash'), | ||
PATH_WEBHOOK = 'path~webhook', | ||
ALLOWED_HTTP_METHODS = { | ||
get: true, | ||
head: true, | ||
post: true, | ||
put: true, | ||
patch: true, | ||
delete: true, | ||
connect: true, | ||
options: true, | ||
trace: true | ||
}, | ||
@@ -27,3 +38,3 @@ _generateTreeFromPaths = function (openapi) { | ||
_.forEach(methods, function (data, method) { | ||
if (method === 'servers' || method === 'parameters') { | ||
if (!ALLOWED_HTTP_METHODS[method]) { | ||
return; | ||
@@ -85,3 +96,3 @@ } | ||
_.forEach(methods, function (data, method) { | ||
if (method === 'servers' || method === 'parameters') { | ||
if (!ALLOWED_HTTP_METHODS[method]) { | ||
return; | ||
@@ -123,3 +134,3 @@ } | ||
_.forEach(methods, function (data, method) { | ||
if (method === 'servers' || method === 'parameters') { | ||
if (!ALLOWED_HTTP_METHODS[method]) { | ||
return; | ||
@@ -126,0 +137,0 @@ } |
{ | ||
"name": "openapi-to-postmanv2", | ||
"version": "4.9.0-beta.7", | ||
"version": "4.9.0-beta.8", | ||
"description": "Convert a given OpenAPI specification to Postman Collection v2.0", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/postmanlabs/openapi-to-postman", |
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
1682825
43182