[PR #6292] [CLOSED] fix: clean up incorrect null type in OpenAPI #14820

Closed
opened 2026-04-13 09:39:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6292
Author: @bytaesu
Created: 11/25/2025
Status: Closed

Base: canaryHead: 2025-11-25/fix/invalid-openapi-spec


📝 Commits (1)

  • 4db1da6 fix: clean up incorrect null type in OpenAPI

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -1)
📝 packages/better-auth/src/plugins/organization/routes/crud-invites.ts (+2 -1)

📄 Description

Closes https://github.com/better-auth/better-auth/issues/6250


Summary by cubic

Fixed incorrect OpenAPI schema types by replacing “null” with proper types and marking them as nullable. This resolves spec validation issues and prevents broken SDK/codegen.

  • Bug Fixes
    • sign-in email: url is now type "string" with nullable: true.
    • organization rejectInvitation: member is now type "object" with nullable: true.

Written for commit 4db1da6d64. 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/6292 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/25/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `2025-11-25/fix/invalid-openapi-spec` --- ### 📝 Commits (1) - [`4db1da6`](https://github.com/better-auth/better-auth/commit/4db1da6d643ee68b53a9fe6173b8b9b586c422f6) fix: clean up incorrect null type in OpenAPI ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/organization/routes/crud-invites.ts` (+2 -1) </details> ### 📄 Description Closes https://github.com/better-auth/better-auth/issues/6250 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed incorrect OpenAPI schema types by replacing “null” with proper types and marking them as nullable. This resolves spec validation issues and prevents broken SDK/codegen. - **Bug Fixes** - sign-in email: url is now type "string" with nullable: true. - organization rejectInvitation: member is now type "object" with nullable: true. <sup>Written for commit 4db1da6d643ee68b53a9fe6173b8b9b586c422f6. 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-13 09:39:12 -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#14820