Skip to content

docs: add section on default OpenAPI schema file endpoints#4641

Open
tysoncung wants to merge 1 commit intolitestar-org:mainfrom
tysoncung:fix/3941-docs-openapi-default-files
Open

docs: add section on default OpenAPI schema file endpoints#4641
tysoncung wants to merge 1 commit intolitestar-org:mainfrom
tysoncung:fix/3941-docs-openapi-default-files

Conversation

@tysoncung
Copy link
Copy Markdown

@tysoncung tysoncung commented Mar 23, 2026

Problem

The documentation for OpenAPI didn't explicitly document the availability of the default schema file endpoints (openapi.json, openapi.yaml, openapi.yml). Users had to discover these paths by reading the source code or stumbling upon brief mentions in other sections.

Solution

Added a new "Default OpenAPI Schema Files" section to the OpenAPI UI Plugins documentation that clearly documents:

  • /schema/openapi.json — always available (auto-registered even without explicit config)
  • /schema/openapi.yaml and /schema/openapi.yml — available with YamlRenderPlugin
  • Note about PyYAML dependency requirement
  • Example URLs for common use
  • How these paths change when the root path is customized
  • Mention of external tools (Scalar API Client, Postman) that can consume these endpoints

Files Changed

  • docs/usage/openapi/ui_plugins.rst: Added new documentation section before the "Configuring the OpenAPI Root Path" section

Closes #3941


📚 Documentation preview 📚: https://litestar-org.github.io/litestar-docs-preview/4641

…org#3941)

Document the default OpenAPI schema file endpoints (openapi.json,
openapi.yaml, openapi.yml) that are served under the OpenAPI root
path. This was previously only mentioned in passing, causing users
to not realize these endpoints exist for importing into tools like
Scalar API Client, Postman, etc.
@tysoncung tysoncung requested review from a team as code owners March 23, 2026 14:53
@github-actions github-actions bot added area/docs This PR involves changes to the documentation size: small type/docs pr/external Triage Required 🏥 This requires triage labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs This PR involves changes to the documentation pr/external size: small Triage Required 🏥 This requires triage type/docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Add information on the default OpenAPI files available

1 participant