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

fix(compat): forward by_alias and by_name parameters in model_validate and sqlmodel_validate by amir-rezaei · Pull Request #2057 · fastapi/sqlmodel · GitHub

Repository navigation

fix(compat): forward by_alias and by_name parameters in model_validate and sqlmodel_validate - #2057

Closed
amir-rezaei wants to merge 1 commit into
fastapi:mainfrom
amir-rezaei:fix/forward-by-alias-and-by-name-in-model-validate
Closed

amir-rezaei wants to merge 1 commit into
fastapi:mainfrom
amir-rezaei:fix/forward-by-alias-and-by-name-in-model-validate

Conversation

Copy link
Copy Markdown

Description

This PR forwards by_alias and by_name parameters in SQLModel.model_validate() and sqlmodel_validate() in sqlmodel/_compat.py and sqlmodel/main.py.

Details

  • Fixes compatibility with Pydantic v2 validate_python when validating models with alias settings.

Copy link
Copy Markdown
Member

This is a duplicate of #1977

YuriiMotov closed this Jul 28, 2026
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL