-
Notifications
You must be signed in to change notification settings - Fork 27
Dev #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dapper91
commented
Aug 20, 2023
- library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
- generic models are no longer inherited from BaseGenericXmlModel but from BaseXmlModel.
- custom root type declaration has been changed. It must inherit RootXmlModel from now on.
- encoding customization api has been changed. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/misc.html#encoding
- element attributes can be bound to TypedDict. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/data-binding/mappings.html#typed-dict
- tagged unions support added. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/data-binding/unions.html#discriminated-unions
- computed entities support added. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/misc.html#computed-entities
library upgraded to pydantic v2.
- json-or-python schema type support added.
- dependencies version upper bound is loosen
- pydantic validation context support added.
- contribute article added
- tagged unions support added.
- uuid type support added
- XmlModelMeta accepts ModelMetaclass directly.
- decimal type support added. - unparameterized root models serializer generation bug fixed.
- doc fixes
- serialization example fixed. - serialization/validation tests added.
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #97 +/- ##
==========================================
- Coverage 93.11% 92.09% -1.03%
==========================================
Files 23 23
Lines 1090 1240 +150
==========================================
+ Hits 1015 1142 +127
- Misses 75 98 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
|