rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

Updated pydantic to v2, updated fastapi to v0.103, other small fixes #32

Closed MrTrick closed 1 year ago

MrTrick commented 1 year ago

Pydantic V2 changed several things, I followed their migration guide and otherwise just updated the dependencies to latest FastAPI and Pydantic.

rafsaf commented 1 year ago

Hello!

Thank you so much, this is good improvement, yes I'm aware of pydantic 2, migrated in some other projects and in work, just was involved in some other projects for a while.

Overall it looks good, but I will make some "end to end" testing now to be sure it still works, in an hour or so.

MrTrick commented 1 year ago

Nice, I didn't know about @computed_field. That's much cleaner.