Skip to content

docs: add warning that table=True disables Pydantic validation#1879

Closed
shubhamyx wants to merge 1 commit intofastapi:mainfrom
shubhamyx:docs/warn-table-true-disables-validation
Closed

docs: add warning that table=True disables Pydantic validation#1879
shubhamyx wants to merge 1 commit intofastapi:mainfrom
shubhamyx:docs/warn-table-true-disables-validation

Conversation

@shubhamyx
Copy link
Copy Markdown

Closes #453

What this PR does

Adds a warning admonition in the Multiple Models with FastAPI tutorial
to inform users that SQLModel models with table=True do not perform
Pydantic data validation. This was reported as confusing and undocumented.

@github-actions github-actions Bot added the docs Improvements or additions to documentation label Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@shubhamyx shubhamyx closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why does a SQLModel class with table=True not validate data ?

2 participants