New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

multi-file-swagger

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-file-swagger

Multi-file Swagger example

  • 2.3.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 11 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc