oas3filter

command
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL