library upgraded to pydantic version 2.
Breaking changes:
- custom root type declaration has been changed. It must inherit
RootXmlModel
from now on. See for more details. - generic models are no longer inherited from
BaseGenericXmlModel
but fromBaseXmlModel
. See. - encoding customization api has been changed. See.
New features:
- element attributes can be bound to TypedDict
- similar to pydantic computed fields it is possible to declare computed entities.