-
Notifications
You must be signed in to change notification settings - Fork 4
Migrate to Pydantic v2 #491
Copy link
Copy link
Open
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileexpands-search-apiIssues relating to the ExPaNDS Search API section of this repoIssues relating to the ExPaNDS Search API section of this repopythonPull requests that update Python codePull requests that update Python code
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileexpands-search-apiIssues relating to the ExPaNDS Search API section of this repoIssues relating to the ExPaNDS Search API section of this repopythonPull requests that update Python codePull requests that update Python code
Description:
Pydantic is used to store the API's config and to implement the data model for the PaNOSC Search API. 1.8.2 is being used currently so needs to be migrated to version 2, where there are quite a few breaking changes. There is a migration guide (https://docs.pydantic.dev/latest/migration/) and a tool (https://github.com/pydantic/bump-pydantic) to help automate some of the changes. The migration tool was used on OperationsGateway API and helped to speed up the task.