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

openapi-graph-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-graph-core

A TS library to manage large API projects defined by OpenAPIv3 specification.

  • 0.0.1-alpha.1.0
  • alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Swagger-graph

A TS library to manage large API projects defined by OpenAPIv3 specification.

This library is under development, and it will likely change

Installation

Just run

npm install openapi-graph

and you are good to go

Functions

For now, just one function is being exposed

getUnusedSchemas(path: string)

It will create a OpenAPIGraph, and get the schemas that are not being used as a list.

Arguments

path: string - Abosolute, relative or url where the API has being defined

Returns

A list of Schemas that are not being used in the API.

Example
const openApiGraph = require('openapi-graph');

(async () => {
    const a = await openApiGraph.getUnusedSchemas('./')
    console.log(a)
})();

Keywords

FAQs

Package last updated on 20 Mar 2021

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