Documentation
¶
Overview ¶
oas3filter writes the part of an OpenAPI 3 spec (JSON or YAML) that one audience may see, as marked by x-audience (internal, partner or public) or x-internal: true, with only the components, security schemes and tags the kept operations use.
Usage:
oas3filter -i openapi.json -o openapi-public.json -a public
Operations with no mark are internal unless --default says otherwise, so an unmarked operation is never published by mistake. The output is JSON, or YAML when the output file ends in .yaml or .yml, and is the same for the same input.
Click to show internal directories.
Click to hide internal directories.