[PR #6519] [CLOSED] fix: marked id field required in auth configuration #6724

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6519
Author: @shays-og
Created: 12/4/2025
Status: Closed

Base: canaryHead: fix/openapi-required-id-field


📝 Commits (2)

  • 7b333c3 fix: marked id field required in auth configuration
  • bf4bb3a Merge branch 'canary' into fix/openapi-required-id-field

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/open-api/generator.ts (+1 -1)

📄 Description

This pull request is for issue #6446. In core defination in auth configuration, id field was not marked as required which is now corrected. Now the generated types will be id: string


Summary by cubic

Marked the id field as required in the OpenAPI generator for auth models. This ensures generated types include id: string and match the auth configuration spec.

Written for commit bf4bb3a615. 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/6519 **Author:** [@shays-og](https://github.com/shays-og) **Created:** 12/4/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/openapi-required-id-field` --- ### 📝 Commits (2) - [`7b333c3`](https://github.com/better-auth/better-auth/commit/7b333c352e4abb44204d3e7845d1589884b7d242) fix: marked id field required in auth configuration - [`bf4bb3a`](https://github.com/better-auth/better-auth/commit/bf4bb3a61532137aaafaf0800a157301d89df52b) Merge branch 'canary' into fix/openapi-required-id-field ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/open-api/generator.ts` (+1 -1) </details> ### 📄 Description This pull request is for issue #6446. In core defination in auth configuration, id field was not marked as required which is now corrected. Now the generated types will be `id: string` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Marked the id field as required in the OpenAPI generator for auth models. This ensures generated types include id: string and match the auth configuration spec. <sup>Written for commit bf4bb3a61532137aaafaf0800a157301d89df52b. 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:09:32 -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#6724