NASA-IMPACT / veda-backend

Backend services for VEDA
Other
13 stars 5 forks source link

Upgrade to Pydantic v2 #400

Open smohiudd opened 4 months ago

smohiudd commented 4 months ago

Description

The STAC and Ingest APIs are both using packages that have Pydantic V1 as a dependency:

Ingest API:

The Ingest API is using a forked/pinned version of stac-pydantic which is still using pydantic v1. The changes from that fork should now be available in a new version of stac-pydantic so we should now upgrade to stac-pydantic >=v3.0.x. (which uses pydantic v2).

STAC API

The STAC Api is using stac-fastapi v2.4 which uses Pydantic v1. stac-fastapi >=3.0 uses Pydantic v2

Acceptance Criteria

smohiudd commented 3 months ago

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