[PR #6293] [MERGED] fix(open-api): clean up incorrect null type in OpenAPI #6574

Closed
opened 2026-03-13 13:03:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6293
Author: @bytaesu
Created: 11/25/2025
Status: Merged
Merged: 11/26/2025
Merged by: @Bekacru

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


📝 Commits (1)

  • 2e2f24c 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 invalid OpenAPI schemas by replacing "type: null" with the correct types and nullable flags. This resolves schema validation issues and prevents broken client codegen.

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

Written for commit 2e2f24cea0. 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/6293 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 11/26/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-11-25/fix/incorrect-openapi-spec` --- ### 📝 Commits (1) - [`2e2f24c`](https://github.com/better-auth/better-auth/commit/2e2f24cea04a87f9bfe977f551454506ebb78d03) 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 invalid OpenAPI schemas by replacing "type: null" with the correct types and nullable flags. This resolves schema validation issues and prevents broken client codegen. - **Bug Fixes** - sign-in email: response.url is now type string, nullable: true. - organization.rejectInvitation: response.member is now type object, nullable: true. <sup>Written for commit 2e2f24cea04a87f9bfe977f551454506ebb78d03. 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-03-13 13:03:49 -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#6574