Tool to trim OpenAPI YAML file to include only desired paths and components.
Reason this release was yanked:
Bug in exclude components option
Project description
OpenAPI Trimmer
Usage to make Open API file only for Quotes API, removing all others and also removing some DTOs:
openapi-trimmer -i openapi.yaml \
-p /v1/quotes \
-ec CompanyConfigDto,CompanyConfigPagedDto,UpdateCompanyConfigDto
The output will be stored in openapi-trimmer.yaml
At the end validate with:
swagger-cli validate ./openapi-trimmer.yaml
PyPi
To install check the package on PyPi:
https://pypi.org/project/openapi-trimmer/
pip install openapi-trimmer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openapi_trimmer-0.1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for openapi_trimmer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb259e654094971306e36c56135af7dfb6cf1f9d3e8cbef808f610ea736297c |
|
MD5 | 49fef12b6afae3dfb6daa77d89b12e37 |
|
BLAKE2b-256 | 5bef85ef80e67e0d396836aad8502d9e8b0a141ae6db8c77594e432a9c74318a |