openapi-stitcher

2.0.0 • Public • Published

OpenAPI Stitcher

Stitch together OpenAPI files into a single file.

Requirements

  • NodeJS (>= 10)

Usage

See help for all commands and options

npx openapi-stitcher --help
npx openapi-stitcher build --help

Stitch together files matching a pattern.

npx openapi-stitcher build "spec/**/*.{yaml,yml}" openapi.yaml

Watch for changes and rebuild the file.

npx openapi-stitcher build --watch "spec/**/*.{yaml,yml}" openapi.yaml

Serve the specification using Swagger UI.

npx openapi-stitcher serve "spec/**/*.{yaml,yml}"

See example/spec for an example of how to organize your files to best work with this tool.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    40
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    40
  • 1.1.0
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i openapi-stitcher

Weekly Downloads

12

Version

2.0.0

License

MIT

Unpacked Size

8.31 kB

Total Files

7

Last publish

Collaborators

  • mloberg