pydantic
Compatibility Shim for Pydantic.
In order to support both Pydantic v1 and Pydantic v2, we need to make sure we import the module correctly:
- For
pydantic~=2.0
there is a workingv1
module. - For
pydantic==1.10.15
there is a brokenv1
module (with nofields
). - For
pydantic<1.10.14
there is nov1
module.