Releases: dapper91/pydantic-xml
Releases · dapper91/pydantic-xml
release 2.2.1
- model level
skip_empty
parameter added. - wrapped element extra entities checking bugs fixed.
release 2.2.0
- pydantic extra='forbid' parameter is being applied to xml elements too. See #106.
release 2.1.0
- raw element typed fields support added. See #14.
- pydantic field exclude flag bug fixed (works only for serialization now).
release 2.0.0
library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
Breaking changes:
- generic models are no longer inherited from
BaseGenericXmlModel
but fromBaseXmlModel
. - custom root type declaration has been changed. It must inherit
RootXmlModel
from now on. - encoding customization api has been changed. See for more information.
New features:
- element attributes can be bound to
TypedDict
. See for more information. - tagged unions support added. See for more information.
- computed entities support added. See for more information.
release 2.0.0b3
- decimal type support added.
- unparameterized root models serializer generation bug fixed. Affected by pydantic/pydantic#7119.
release 2.0.0b2
- XmlModelMeta accepts ModelMetaclass directly. See #90.
release 2.0.0b1
- uuid type support added.
- tagged unions support added.
release 2.0.0a2
- pydantic validation context support added.
- dependencies upper bound version is loosen. See #83.
release 2.0.0a1
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.
release 1.0.0
- library api stabilized.
- custom root type serialization format changed.