multi-file-swagger

2.3.0 • Public • Published

Multi-file Swagger example

Example of how to split up a large Swagger spec into smaller files.

Read the blog post

Usage

Install the node tool:

  npm install -g multi-file-swagger

Run the command like so:

  multi-file-swagger index.yaml > index.json

This will resolve every json pointer ($ref) externally or internally and then save it in a json file. Which can then be used for code generation and so on.

You can also output as yaml by using the --output-format option

  multi-file-swagger -o yaml index.yaml > compiled.yaml

License

MIT

Dependents (1)

Package Sidebar

Install

npm i multi-file-swagger

Weekly Downloads

6,459

Version

2.3.0

License

MIT

Unpacked Size

12.7 kB

Total Files

15

Last publish

Collaborators

  • iain17
  • mohsen