Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Isolate a single OAS endpoint for easier debugging

gkoberger/oasolate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OASolate

Isolate a single endpoint from an OpenAPI Spec file, for easier debugging!

Currently, it's pretty simplistic. It just removes all paths and components not used. It's possible it'll break a few OAS files or cause unintented errors!

$ npm install oasolate --save

Here's how to use it:

const oasolate = require('oasolate');
const file = /* get the OAS file */;

// Get all endpoints in the OAS file
// (This is a helper function!)
console.log(oasolate(file).list());

// Isolate a single endpoint
console.log(oasolate(file).path('get', '/pets'));

Future support, maybe:

  • Remove unused auth schemas, etc
  • Remove unused servers, etc
  • Have error messages

About

Isolate a single OAS endpoint for easier debugging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published