From 5153bcf8fc64c0dee342c2bbac98519a4589f965 Mon Sep 17 00:00:00 2001 From: Melissa Hansen Date: Thu, 1 Feb 2024 09:06:13 -0800 Subject: [PATCH] docs: correct typo in "Multiple schemas" example and add tip for bundling schemas --- docs/cli.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/cli.md b/docs/cli.md index f86f2d0df..aaf12c32d 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -38,9 +38,15 @@ apis: external@v1: root: ./openapi/external.yaml x-openapi-ts: - output: ./openapi/openapi.ts + output: ./openapi/external.ts ``` +::: tip + +This will preserve schemas 1:1 input:output. To bundle multiple schemas into one, use Redocly’s [bundle command](https://redocly.com/docs/resources/multi-file-definitions/#bundle) + +::: + Whenever you have a `redocly.yaml` file in your project with `apis`, you can omit the input/output parameters in the CLI: ```bash