Zuplo CLI
Zuplo CLI: OpenAPI Merge
Merge an OpenAPI file into your Zuplo project
Code
Common use cases
Importing an existing OpenAPI file
The command supports importing both JSON and YAML formats. The format is inferred from the file extension.
Code
When no --destination
option is provided, the OpenAPI file is automatically
merged into routes.oas.json
.
To import a remote file, use the --source
option with a URL. The command
downloads the file to a temporary directory and imports it.
Code
To rename the destination file, use the --destination
option.
Code
Options
--source
The OpenAPI file to merge (file path or URL)
Code
Type:
string
Alias: -s
--destination
The destination file name (must end with .oas.json)
Code
Type:
string
Alias: -d
--merge-mode
The merge mode to use when merging the OpenAPI file
Code
Type:
string
Default: "path-method"
Choices: path-method, operation-id
Alias: -m
Global options
The following global options are available for all commands:
Last modified on