OpenAPI Scrubber
Project description
API Scrubber
An OpenAPI scrubber to process and remove certain information depending on the target audience. For example, given something like:
paths:
/hello:
get:
description: Returns a hello world string.
/admin:
x-only: admin
get:
description: Get the admin settings
Then running apiscrub input.yaml -
would result in:
paths:
/hello:
get:
description: Returns a hello world string.
While running apiscrub --keep=admin input.yaml -
would result in:
paths:
/hello:
get:
description: Returns a hello world string.
/admin:
get:
description: Get the admin settings
Note that the x-only
metadata extension tag gets removed in both cases.
Installation
Install via Python:
$ pip install apiscrub
License
Copyright © 2018 Daniel G. Taylor
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apiscrub-1.2.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
apiscrub-1.2.0-py3.7.egg
(6.1 kB
view hashes)