fhir.resources
fhir.resources copied to clipboard
Pydantic 2.0 Migration Plan
- fhir.resources version:
fhir-resources==7.0.1
- Python version:
Python 3.11.3
- Operating System: `macOS Monterey 12.5.11
Description
Pydantic 2.0 was released on Friday. New version has a lot of underlying changes + some API changes -- see migration guide.
Is there a plan for fhir.resources to support the new version of Pydantic? Please let me know if you need a hand migrating. I use this library all the time and would love to contribute
What I Did
Created a fresh virtual environment with the following requirements file:
pydantic>=2
fhir.resources
Tried to run the Quickstart example in the README and got the following error:
from pydantic.class_validators import ROOT_VALIDATOR_CONFIG_KEY, root_validator
ImportError: cannot import name 'ROOT_VALIDATOR_CONFIG_KEY' from 'pydantic.class_validators'