@byu-oit/prepare-swagger-for-wso2

2.1.3 • Public • Published

BYU logo prepare-swagger-for-wso2

A command-line interface tool to prepare Swagger or OpenAPI documents for importing into WSO2

Installation:

Using Node 10 or newer, install globally using npm by running

npm i -g @byu-oit/prepare-swagger-for-wso2

This should make the command wso2 available.

Usage:

Navigate to the directory containing your swagger.json file and run the command wso2. It will create a file called wso2_swagger.json. It's that easy.

For OpenAPI 3.0.x, use the -i flag to specify where to find your openapi.json file (e.g., wso2 -i openapi.json). This tool will convert your OpenAPI specification to Swagger in addition to its usual processes.

There are some flags you can use to tweak behavior and specify input/output file paths. To learn more about them, run wso2 --help.

Contributing:

I wrote this as a side project to save myself some time. If you'd like to contribute, feel free to send a pull request or message me on Slack. You can run the existing tests by navigating to this project's directory and running the command npm t.

Readme

Keywords

none

Package Sidebar

Install

npm i @byu-oit/prepare-swagger-for-wso2

Weekly Downloads

18

Version

2.1.3

License

Apache-2.0

Unpacked Size

504 kB

Total Files

10

Last publish

Collaborators

  • mjweather
  • yoshutch
  • lehinpm
  • oscea
  • stuft2
  • mhailstone
  • arasmus8
  • garygsc
  • martingarn
  • snelg
  • byu-oit-bot