id is missing in most openapi schemas #702

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

Originally created by @astahmer on GitHub (Feb 18, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Image

Current vs. Expected behavior

I noticed that the openapi generator uses the getAuthTables methods so I initially wanted to add id in each entity fields (and I guess also in plugins) but after seeing this https://github.com/better-auth/better-auth/pull/552 it's probably better to hardcode it (as it seems to be done in the rest of the app; from my understanding after finding this issue)

What version of Better Auth are you using?

1.1.19

Provide environment information

unrelevant

Which area(s) are affected? (Select all that apply)

Documentation, Backend

Auth config (if applicable)

unrelevant

Additional context

No response

Originally created by @astahmer on GitHub (Feb 18, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce <img width="309" alt="Image" src="https://github.com/user-attachments/assets/332ff6f7-8043-40b1-9e3d-0ce6e02129a9" /> ### Current vs. Expected behavior I noticed that the openapi generator uses the `getAuthTables` methods so I initially wanted to add `id` in each entity fields (and I guess also in plugins) but after seeing this https://github.com/better-auth/better-auth/pull/552 it's probably better to hardcode it (as it seems to be done in the rest of the app; from my understanding after finding this issue) ### What version of Better Auth are you using? 1.1.19 ### Provide environment information ```bash unrelevant ``` ### Which area(s) are affected? (Select all that apply) Documentation, Backend ### Auth config (if applicable) ```typescript unrelevant ``` ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 08:00:52 -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#702