-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] Deserialization does not work for XmlArraySerializationType.FLAT
where XML Name is customised
#89
Comments
Signed-off-by: Paul Horton <paul.horton@owasp.org>
Upon investigation, this issue is caused by a difference in approach to handling custom field names and the Example below are with and the default formatter Note: This only affects XML (de-)serialization. The expectation is for the serialized version to use the custom name Example 1
❌ Serialization produces:
Example 2
❌ Serialization produces: Example 3
❌ Custom name is not used during serialization - output is |
Expectation is that Example 1 should work here, with Examples 2 and 3 being curious attempts only. |
stumbled upon this (or a similar) issue, when working with the lib downstream. |
Discovered whilst working CycloneDX/cyclonedx-python-lib#576.
Steps to reproduce:
produces XML (as expected):
<omniborId>gitoid:blob:sha1:261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64</omniborId>
however this fails deserialization:
ValueError: omnibor_id is not a known Property for cyclonedx.model.component.Component
The text was updated successfully, but these errors were encountered: