Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
75 stars 25 forks source link

Upgrade to pydantic v2 #314

Closed demeringo closed 1 month ago

demeringo commented 2 months ago

Problem

Actual codebase is dependent on pydantic v1 which is now deprecated in favor of pydantic v2.

This block the upgrade of fastapi #313

Solution

Update to pydantic v2. Not sure if we need it but a tool exists to migrate the codebase.

https://docs.pydantic.dev/latest/migration/

Alternatives

Additional context or elements

demeringo commented 2 months ago

I attempted to migrate the code using the bump-pydantictool provided.

https://github.com/pydantic/bump-pydantic

It seems to work fine.

demeringo commented 1 month ago

Closed by #315