Socket
Socket
Sign inDemoInstall

openapi-to-postmanv2

Package Overview
Dependencies
Maintainers
7
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-to-postmanv2 - npm Package Compare versions

Comparing version 4.9.0-beta.7 to 4.9.0-beta.8

17

libV2/helpers/collection/generateSkeletionTreeeFromOpenAPI.js

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

2

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

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