Skip to content

feat: output openapi.json in static build#71

Open
jeremy-code wants to merge 1 commit into
npm:mainfrom
jeremy-code:export-openapi-json
Open

feat: output openapi.json in static build#71
jeremy-code wants to merge 1 commit into
npm:mainfrom
jeremy-code:export-openapi-json

Conversation

@jeremy-code

Copy link
Copy Markdown
  • Output openapi.json in static build with @redocly/cli bundle
  • Update docs download button to link to /openapi.json instead of blob URL

What / Why

Consumers of the npm Registry API may need programmatic access to the openapi.json schema via a URL instead of a download button. It will also allow consumers to receive updates whenever the schema changes.

Currently, the download button links to a blob URL instead of hosting the openapi.json schema directly.

Describe the request in detail. What it does and why it's being changed.

The openapi.json is generated in html/ in the build script with npx @redocly/cli bundle openapi.yaml --output html/openapi.json.

I added --theme.openapi to the build-docs command, so that it links to the hosted static file instead of a blob URL.

- Output openapi.json in static build with @redocly/cli bundle
- Update docs download button to link to /openapi.json instead of blob URL
@jeremy-code
jeremy-code requested a review from a team as a code owner July 23, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant