[PR #4355] [MERGED] feat(openapi): support Scalar Theme #5328

Closed
opened 2026-03-13 12:18:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4355
Author: @bytaesu
Created: 9/2/2025
Status: Merged
Merged: 9/2/2025
Merged by: @himself65

Base: canaryHead: feat/support-scalar-theme


📝 Commits (2)

  • 8531210 feat: support theme for OpenAPI plugin
  • f904462 docs: add theme option to OpenAPI plugin

📊 Changes

2 files changed (+29 additions, -4 deletions)

View changed files

📝 docs/content/docs/plugins/open-api.mdx (+3 -1)
📝 packages/better-auth/src/plugins/open-api/index.ts (+26 -3)

📄 Description


This PR adds an option to configure Scalar themes in the OpenAPI plugin. It follows the official type definitions to ensure type safety, as documented in Scalar Themes.

No side effects were found, and the documentation has been updated accordingly.


https://github.com/user-attachments/assets/4daa0358-4644-4d14-8640-9f9ab4f84550


Summary by cubic

Adds theme support to the OpenAPI plugin so you can choose a Scalar theme for the reference UI. Default stays "default"; no behavior changes unless configured.

  • New Features
    • Added theme?: ScalarTheme to OpenAPIOptions, using official Scalar theme types.
    • Renders the reference UI with the selected theme.
    • Updated docs to include the new theme option.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4355 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 9/2/2025 **Status:** ✅ Merged **Merged:** 9/2/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/support-scalar-theme` --- ### 📝 Commits (2) - [`8531210`](https://github.com/better-auth/better-auth/commit/8531210503fc3e5d8a96a5320c01110f7c92bafd) feat: support theme for OpenAPI plugin - [`f904462`](https://github.com/better-auth/better-auth/commit/f9044621f546d8e2f0008d0ddc69b05b38216a7d) docs: add theme option to OpenAPI plugin ### 📊 Changes **2 files changed** (+29 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/open-api.mdx` (+3 -1) 📝 `packages/better-auth/src/plugins/open-api/index.ts` (+26 -3) </details> ### 📄 Description --- This PR adds an option to configure Scalar themes in the OpenAPI plugin. It follows the official type definitions to ensure type safety, as documented in [Scalar Themes](https://guides.scalar.com/scalar/scalar-api-references/themes). No side effects were found, and the documentation has been updated accordingly. --- https://github.com/user-attachments/assets/4daa0358-4644-4d14-8640-9f9ab4f84550 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds theme support to the OpenAPI plugin so you can choose a Scalar theme for the reference UI. Default stays "default"; no behavior changes unless configured. - **New Features** - Added theme?: ScalarTheme to OpenAPIOptions, using official Scalar theme types. - Renders the reference UI with the selected theme. - Updated docs to include the new theme option. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:18:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5328