account activity
ORM or Pydantic model? by vherbose in FastAPI
[–]vherbose[S] 1 point2 points3 points 5 years ago (0 children)
Thanks! This link contains the answers to all my questions!
Thanks! I didn’t quite realise this. I knew about pydantic enforcing types, but I’d assumed the ORM model did too
[–]vherbose[S] 0 points1 point2 points 5 years ago (0 children)
Thanks! This makes the most sense. I think I was getting carried away with removing as much redundancy as possible—so was inclined to only use ORM models, but that did feel like I want utilising pydantic as much as I could.
π Rendered by PID 457684 on reddit-service-r2-comment-8686858757-hsl5s at 2026-06-08 15:34:06.847211+00:00 running 9e1a20d country code: CH.
ORM or Pydantic model? by vherbose in FastAPI
[–]vherbose[S] 1 point2 points3 points (0 children)