FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Expose pydantic's Field(validation_alias=...) parameter by rbubley · Pull Request #774 · fastapi/sqlmodel · GitHub

Repository navigation

Expose pydantic's Field(validation_alias=...) parameter - #774

Closed
rbubley wants to merge 3 commits into
fastapi:mainfrom
rbubley:patch-1
Closed

rbubley wants to merge 3 commits into
fastapi:mainfrom
rbubley:patch-1

Conversation

rbubley commented Jan 8, 2024

Copy link
Copy Markdown

This eases an issue with Multiple Models (table=True model inheriting from table=False model), where input JSON uses aliases.

rbubley marked this pull request as draft January 8, 2024 16:31
rbubley marked this pull request as ready for review January 8, 2024 17:16

DurandA commented Jan 8, 2024

Copy link
Copy Markdown

Does this also fix broken field alias since SQLModel 0.0.14? Thanks.

rbubley commented Jan 9, 2024

Copy link
Copy Markdown
Author

Does this also fix broken field alias since SQLModel 0.0.14? Thanks.

Almost. In your example in #725 you would need secret_name: str = Field(validation_alias="secretName"), and it then works.

svlandeg self-assigned this Sep 17, 2025

Copy link
Copy Markdown
Member

Hi @rbubley, thanks for the PR and apologies for the late follow-up!

I think this should be fully covered by the PR #1577 which is a bit more extensive/generic. As such, I think we can close this one. But thanks again!

svlandeg closed this Oct 21, 2025
svlandeg removed their assignment Oct 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL