This module provides a Node.js utility to clean OpenAPI documents by removing unused components. It helps in reducing the file size and improving the readability of the API documents by eliminating clutter.
You can install the module using npm:
npm install openapi-cleaner
Removes unused components from OpenAPI documents. Supports both JSON and YAML OpenAPI formats. Easy to integrate into build processes or CI/CD pipelines.
After installation, you can use the module to clean your OpenAPI document by running:
const openapicleaner = require('openapi-cleaner');
openapicleaner.cleanOpenApiFile('openapi.json', 'openapi_clean.json');
Contributions are welcome! If you have suggestions for improvements or bug fixes, please open an issue or submit a pull request.