Skip to content

Module and library to convert Swagger 2.0 to a Postman Collection (v2.0)

License

Notifications You must be signed in to change notification settings

zjrunner/swagger2-postman2

 
 

Repository files navigation

swagger2-Postman

Converter for swagger 2.0 JSON to Postman Collection v2 Exports the following functions:

validate(JSON-or-string): Formats like RAML/cURL don't have a JSON representation. For others, JSON is preferred. The result should be an object: {result: true/false, reason: 'string'}. Reason must be populated if the result is false. This function will be used by the app to determine whether or not this converter can be used for the given input.

convert(JSON-or-string): Converts the input to a collection object. Conversion result should be an object: {result: true/false, reason: '', collection: <object>} Reason must be populated if the result is false. Collection must be populated if result is true.

About

Module and library to convert Swagger 2.0 to a Postman Collection (v2.0)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.5%
  • Shell 10.5%