Package Exports
- openapi-filter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (openapi-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
openapi-filter
Filter internal paths, operations, parameters, schemas etc from OpenAPI/Swagger definitions
Simply tag any object within the definition with an x-internal
specification extension, and it will be removed from the output.
Works with OpenAPI/Swagger 2.0 and 3.0.x and AsyncAPI 1.x definitions.
Usage: openapi-filter [options] {infile} [{outfile}]
Options:
-h, --help Show help [boolean]
--version Show version number [boolean]
-i, --inverse output filtered elements only [boolean]
-t, --tags tags to filter by [array] [default: ["x-internal"]]
or
let openapiFilter = require('openapi-filter');
let options = {}; // defaults are shown
//options.inverse = false;
//options.tags = ['x-internal'];
let res = openapiFilter.filter(obj,options);