Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-overlays-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-overlays-js

Tool to apply OpenAPI overlays, built in NodeJS with a command line interface (CLI).

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Overlays for OpenAPI

This NodeJS library is an implementation of the in-progress OpenAPI Overlays Specification.

About Overlays

Overlays are a way to extend or enhance an existing OpenAPI description by adding, updating or removing fields. For example:

  • The OpenAPI description lives in the codebase, but your tech writers need to add examples and information before documentation is produced.
  • Your organisation uses OpenAPI but it's generated from code, and needs amendments or additions to be useful to users.
  • You're using other tools such as API client generators, that can make use of additional context added to the API description, such as tags to remove certain endpoints, which aren't in the main API description file.

By using Overlays to describe and apply the changes, when the API description is updated, the same changes can instantly be re-applied.

Installation

Install the overlayjs command from npm with the following command:

npm install -g openapi-overlay-js

The -g switch installs it globally so you can use the command from anywhere on your system.

Pro-tip: use node index.js from the root of the project if you're using the bleeding edge of the project or working on a branch.

Usage

Example: overlayjs --openapi openapi.yml --overlay add-sparkle.yaml

Use overlayjs --help to see the usage information.

See docs/examples for more examples.

Project status

:warning: Project status: alpha

This project is very much at an alpha stage but feedback, comments and questions are all very welcome as issues on this repository - and pull requests are also gratefully received. It would be excellent to hear what problem this tool can solve, and how you get on with it. Bonus points if you can share examples (working or broken) of what you tried.

FAQs

Package last updated on 06 May 2024

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