How to use openapi-to-postmanv2 - 1 common examples

To help you get started, we’ve selected a few openapi-to-postmanv2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github postmanlabs / swagger2-postman2 / lib / convert.js View on Github external
}, function(err, oas3Wrapper) {
        if (err) {
          return callback(err);
        }

        return OpenAPI2Postman.convert({
          type: 'json',
          data: oas3Wrapper.openapi
        }, options, (error, result) => {
          if (error) {
            return callback('Error importing Swagger 2.0 spec');
          }
          else {
            return callback(null, result);
          }
        });
      });
    }

openapi-to-postmanv2

Convert a given OpenAPI specification to Postman Collection v2.0

Apache-2.0
Latest version published 3 months ago

Package Health Score

75 / 100
Full package analysis

Popular openapi-to-postmanv2 functions