https://github.com/thake/openapi_bundling
Just a demonstration of how OpenAPI bundling works.
https://github.com/thake/openapi_bundling
Last synced: 4 months ago
JSON representation
Just a demonstration of how OpenAPI bundling works.
- Host: GitHub
- URL: https://github.com/thake/openapi_bundling
- Owner: thake
- License: apache-2.0
- Created: 2023-11-28T05:47:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T05:49:48.000Z (over 2 years ago)
- Last Synced: 2025-09-05T19:13:22.679Z (9 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Showcasing ref resolving in Redocly CLI
## Preparation
Make sure you have the [redocly cli](https://redocly.com/docs/cli/installation/) installed.
## Run demonstration
[openapi.yaml](openapi.yaml) contains a OpenAPI spec that references a schema in [schemas.yaml](schemas.yaml).
One can bundle the spec and the schema into a single file by executing:
```bash
redocly bundle openapi.yaml -o bundled.yaml
```
The [bundled.yaml](bundled.yaml) will contain the referenced schema in the components section of the OpenAPI spec so that
tools can still use the original schema name.