Redocly / redocly-cli

⚒️ Redocly CLI makes OpenAPI easy. Lint/validate to any standard, generate beautiful docs, and more.
https://redocly.com/docs/cli/
MIT License
849 stars 129 forks source link

Add the `--ext` parameter to the `split` command #1562

Open romanpryshliak opened 1 month ago

romanpryshliak commented 1 month ago

Is your feature request related to a problem? Please describe.

Please add the --ext parameter to the split command and convert JSON to YAML and vice versa.

The bundle command has that parameter, so if you get a file in JSON format and you want YAML, you have to split it, bundle it with --ext to convert it, then split it again.

Additional context

Front logo Front conversations

lornajane commented 1 month ago

Thanks for passing on this suggestion! One immediate comment I have is that it sounds like the first split operation could be omitted without any change in output - run bundle to get the target output format, and then run split to get the output in the desired structure.