[PR #5464] feat(openapi): add more scalar configurations #22922

Open
opened 2026-04-15 21:22:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5464
Author: @jslno
Created: 10/21/2025
Status: 🔄 Open

Base: mainHead: feat-openapi/improve-config


📝 Commits (6)

  • 5ef3f7b chore: pass serialized configuration directly
  • 9fdcd76 feat: add more configurations
  • 8e69d9e chore: cleanup
  • e10d8b8 chore: improve quoting and fix typo
  • 14e1c2f Merge branch 'canary' into feat-openapi/improve-config
  • 067af50 Merge branch 'canary' into feat-openapi/improve-config

📊 Changes

1 file changed (+302 additions, -20 deletions)

View changed files

📝 packages/better-auth/src/plugins/open-api/index.ts (+302 -20)

📄 Description

Reference: https://guides.scalar.com/scalar/scalar-api-references/configuration#configuration__configuration-options__properties


Summary by cubic

Adds full Scalar API Reference configuration to the OpenAPI plugin and passes it as a serialized dataset, replacing the previous theme-only setup. This enables richer UI control (dark mode, HTTP client defaults, section expansion, and more) without extra code.

  • New Features
    • Pass full config to Scalar via data-configuration using an internal serializer.
    • Expand OpenAPIOptions with full Scalar config (theme, layout, search, models, toolbar, fonts, favicon, HTTP client settings, ordering, etc.); add ScalarHttpClient/ScalarHttpClientState types and update getHTML to accept options.

Written for commit 067af507e9. Summary will update automatically on new commits.


🔄 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/5464 **Author:** [@jslno](https://github.com/jslno) **Created:** 10/21/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat-openapi/improve-config` --- ### 📝 Commits (6) - [`5ef3f7b`](https://github.com/better-auth/better-auth/commit/5ef3f7baaaa32a9a2cf59fa38eff6ca03cd646de) chore: pass serialized configuration directly - [`9fdcd76`](https://github.com/better-auth/better-auth/commit/9fdcd76415f334db4ac3ec18956e2701e7aa2801) feat: add more configurations - [`8e69d9e`](https://github.com/better-auth/better-auth/commit/8e69d9e3919546bf23744f5fce17c858289224b8) chore: cleanup - [`e10d8b8`](https://github.com/better-auth/better-auth/commit/e10d8b8e83cc0d3c4748ad8426acf26524498e9e) chore: improve quoting and fix typo - [`14e1c2f`](https://github.com/better-auth/better-auth/commit/14e1c2fc75ee204780ed1220a41ec4a6f12f40c6) Merge branch 'canary' into feat-openapi/improve-config - [`067af50`](https://github.com/better-auth/better-auth/commit/067af507e9046821e15785318bafaa636d9c6cc3) Merge branch 'canary' into feat-openapi/improve-config ### 📊 Changes **1 file changed** (+302 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/open-api/index.ts` (+302 -20) </details> ### 📄 Description Reference: https://guides.scalar.com/scalar/scalar-api-references/configuration#configuration__configuration-options__properties <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds full Scalar API Reference configuration to the OpenAPI plugin and passes it as a serialized dataset, replacing the previous theme-only setup. This enables richer UI control (dark mode, HTTP client defaults, section expansion, and more) without extra code. - **New Features** - Pass full config to Scalar via data-configuration using an internal serializer. - Expand OpenAPIOptions with full Scalar config (theme, layout, search, models, toolbar, fonts, favicon, HTTP client settings, ordering, etc.); add ScalarHttpClient/ScalarHttpClientState types and update getHTML to accept options. <sup>Written for commit 067af507e9046821e15785318bafaa636d9c6cc3. Summary will update automatically on new commits.</sup> <!-- 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-04-15 21:22:11 -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#22922