Replies: 1 comment
-
@computed_field is not needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
When I open the /computed_field link, I expect to see the following response:
But instead of what I expected, I see this:
Field "y" = 0
If I remove
response_model=TMResponses
from the route, I get the following response:Field "driver" disappears!
How to make it right response_model?
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.22
Python Version
Python 3.12.5
Additional Context
pydantic version: 2.9.1
FastAPI version 0.114.0
Beta Was this translation helpful? Give feedback.
All reactions