Xsdata

Latest version: v24.5

Safety actively analyzes 638452 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

21.2

- Added class name context for user naming schemes
[348](https://github.com/tefra/xsdata/issues/348)
- Added mixed pascal naming scheme [348](https://github.com/tefra/xsdata/issues/348)
- Added access to element/attribute name generators
[381](https://github.com/tefra/xsdata/issues/381)
- Added XmlHexBinary/XmlBase64Binary builtin data types
[387](https://github.com/tefra/xsdata/issues/387)
- Added support for xs:anyType root elements
[399](https://github.com/tefra/xsdata/issues/399)
- Updated JSON binding modules to use the fields local name
[389](https://github.com/tefra/xsdata/issues/389)
- Updated enum classes generation
- Promote all inner enums to root [383](https://github.com/tefra/xsdata/issues/383)
- Fixed issues with producing invalid members
[385](https://github.com/tefra/xsdata/issues/385)
- Added support for list/tuple member values
- Updated parsers accuracy for Union types
- Updated dependency resolution accuracy
- Update base classes generation strategies
- Updated builtin data types with helper constructors/methods
- Fixed inner class names conflicts [375](https://github.com/tefra/xsdata/issues/375)
- Fixed issue not generating fields derived from xs:alternative elements
[393](https://github.com/tefra/xsdata/issues/393)
- Fixed duplicate root class name regression from v20.12
- Fixed issue adding unused lib imports
- Fixed issue adding unused name properties to choice elements

This is a sleeper release ✨✨✨ so many code generation improvements and finally the
JSON binding is aligned with XML.

21.1

- Fixed XmlWriter converting attribute keys to QName.
[346](https://github.com/tefra/xsdata/issues/346)
- Set empty complexType base to anySimpleType
[349](https://github.com/tefra/xsdata/issues/349)
- Improve duplicate attr names detection
[351](https://github.com/tefra/xsdata/issues/351)
- Add SerializerConfig::xml_declaration option
[357](https://github.com/tefra/xsdata/issues/357)
- Generate default value/factory for compound fields
[359](https://github.com/tefra/xsdata/issues/359)
- Fixed default value for token fields
[360](https://github.com/tefra/xsdata/issues/360)
- Add doc metadata for compound fields
[362](https://github.com/tefra/xsdata/issues/362)
- JsonParser: handle class and primitive unions
[369](https://github.com/tefra/xsdata/issues/369)
- Update python mappings [366](https://github.com/tefra/xsdata/issues/366)
- Map xs:hexBinary and xs:base64Binary to bytes
- Map xs:date/time types to builtin types XmlDate/Time
- Map xs:duration to builtin type XmlDuration
- Map xs:g[Year[Month[Day]]] to builtin type XmlPeriod
- Map xs:Notation to QName
- Add converter adapters for datetime.date/time
- Add fields metadata key 'format' for time/date/binary types
- Fixed issues with default literal values
- Fixed issue with random field types order

20.12

- Added SerializerConfig with new options.
[268](https://github.com/tefra/xsdata/issues/268),
[320](https://github.com/tefra/xsdata/issues/320)
- Added docstring styles: rst, google, numpy, accessible.
[318](https://github.com/tefra/xsdata/issues/318),
[340](https://github.com/tefra/xsdata/issues/340)
- Added `max line length` generator configuration.
[342](https://github.com/tefra/xsdata/issues/342)
- Added dynamic type locator for parsers.
[332](https://github.com/tefra/xsdata/issues/332)
- Fixed multiple issues with json binding.
`98[7%](https://github.com/tefra/xsdata-w3c-tests/actions) successful roundtrips

20.11.1

- Catch all type errors on xsi cache build
[316](https://github.com/tefra/xsdata/issues/316)

20.11

- Added sub command to download remote schemas and definitions.
[279](https://github.com/tefra/xsdata/issues/279)
- Added new optional xml type `Elements` to maintain ordering for repeatable choices.
[296](https://github.com/tefra/xsdata/issues/296)
- Added xsi:type lookup procedure for xs:anyType derived elements.
[306](https://github.com/tefra/xsdata/issues/306)
- Updated simple type flattening detection.
[286](https://github.com/tefra/xsdata/issues/286)
- Updated generator to allow namespace structure on schemas without target namespace.
- Updated generator to avoid writing min/max occurs metadata for implied values.
[297](https://github.com/tefra/xsdata/issues/297)
- Update generator to use literal dictionary initialization.
- Updated parser security, disable lxml network and entities resolve.
- Fixed field types detection for elements with xs:alternative children.
[284](https://github.com/tefra/xsdata/issues/284)
- Fixed file generation to enforce default charset UTF-8.
[302](https://github.com/tefra/xsdata/issues/302)
- Fixed jinja2 undefined namespace var collision.
[298](https://github.com/tefra/xsdata/issues/298)
- Fixed import class name collision. [300](https://github.com/tefra/xsdata/issues/300)
- Fixed restriction inheritance on xs:group elements.
[301](https://github.com/tefra/xsdata/issues/301)

20.10

- Fixed generator adding multiple default value fields.
[249](https://github.com/tefra/xsdata/issues/249)
- Fixed generator not applying nested container restrictions.
[263](https://github.com/tefra/xsdata/issues/253)
- Fixed generator to avoid case insensitive class name conflicts.
[269](https://github.com/tefra/xsdata/issues/269)
- Fixed generator rendering unused simple types.
- Fixed generator unsorted libraries imports.
- Fixed JsonParser trying to parse init=False fields.
[253](https://github.com/tefra/xsdata/issues/253)
- Fixed NodeParser binding tail content more than once with mixed vars.
[256](https://github.com/tefra/xsdata/issues/256)
- Added XmlWriter interface to decouple serialize from lxml.
[247](https://github.com/tefra/xsdata/issues/247)
- Added native python xml content writer XmlEventWriter. ✨✨✨
- Added lxml based content writer LxmlEventWriter.
- Added generator config with options to control naming cases and aliases.
[265](https://github.com/tefra/xsdata/issues/265)
- Updated field xml type auto-detection to be more flexible.
[246](https://github.com/tefra/xsdata/issues/246)
- Updated EnumConverter to resort to canonical form matching as last resort.
[273](https://github.com/tefra/xsdata/issues/273)
- Updated support for derived elements.
[267](https://github.com/tefra/xsdata/issues/267)

This is my favorite release so far, maybe because xsdata reached one year of development
✨✨✨ or maybe because some of the last original components finally got the rewrite
they deserved.

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.