Zuplo CLI
Zuplo CLI: OpenAPI Convert
Convert OpenAPI files between JSON and YAML formats
Code
Examples
Convert a YAML OpenAPI file to JSON format
Code
Convert a JSON OpenAPI file to YAML with custom output path
Code
Convert using --format flag instead of --json/--yaml
Code
Options
--input
The input OpenAPI file (JSON or YAML)
Type:
stringAlias: -i--format
Output format
Type:
stringChoices: json, yamlAlias: -f--output
Output file path (if not specified, generates based on input)
Type:
stringAlias: -o--json
Convert to JSON format
Type:
booleanConflicts: --yaml, --format--yaml
Convert to YAML format
Type:
booleanConflicts: --json, --formatGlobal options
The following global options are available for all commands:
Last modified on