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.py -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
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.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for openapi_trimmer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe2ef3dab19eba4a20b6080f8c7687e4db6b4fff0f156b8b90ca93952a5d829 |
|
MD5 | d1236691466c72fbe100e2982363bdb8 |
|
BLAKE2b-256 | 72847f51b627a9f8703b80446e4dc077cb0a6cce4cb1d5cd107f6b1af13b0af5 |