Zuplo
Zuplo CLI

Zuplo CLI: OpenAPI Overlay

Apply an OpenAPI Overlay to an OpenAPI document
TerminalCode
zuplo oas overlay --input <file> --overlay <file> --output <file> [options]

Examples

Apply an overlay to an OpenAPI document

TerminalCode
zuplo oas overlay --input openapi.json --overlay changes.json --output result.json

Apply overlay and output in YAML format

TerminalCode
zuplo oas overlay -i api.yaml -v overlay.yaml -o result.yaml --yaml

Apply overlay and convert format in one step

TerminalCode
zuplo oas overlay --input openapi.json --overlay overlay.json --output result.yaml --format yaml

Options

--input

The input OpenAPI file

Type: stringAlias: -i

--overlay

The overlay file

Type: stringAlias: -v

--output

The output OpenAPI file path

Type: stringAlias: -o

--format

Output format

Type: stringChoices: json, yamlAlias: -f

--json

Output in JSON format

Type: booleanConflicts: --yaml, --format

--yaml

Output in YAML format

Type: booleanConflicts: --json, --format

Global options

The following global options are available for all commands:

Last modified on