Skip to main content

Mic open API docs

Project description

moad: Mix Open Api Documents

PyPI - License PyPI PyPI - Python Version

Tool to Mix Open Api Docs. You can copy components from other openapi docs. The tool was initially written to share objects between openapi docs if there is a requirement for the docs to be in a single file.

You can place the following comments in one openapi doc:

# moad-mixin:begin:other.yml:components/schemas
# moad-mixin:end

moad will scan the file and attempt to replace the text between begin and end with the content of the schemas of file test2.yml

Usage:

python -m pip install moat
python -m moat

Cou can only select certain elements from a path

# moad-mixin:begin:other.yml:components/schemas>address,user
# moad-mixin:end

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

moad-0.3.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

moad-0.3.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page