-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
current behavior
- XML deserialization passes any element to the object creation - causing feat: load XML with
##otherelements and##anyattributes CycloneDX/cyclonedx-python-lib#850 - Probably the same with any attribute
- Probably the same with any JSON property
desired behavior
- deserialization passes only those things, that are mapped to a property in the python object.
possible implementation
@py_serializable.serializable_classgets a parameter, that controls whether to "drop" anything that is "unknonw" property of the class- parameter is optional, defaults to
False
- parameter is optional, defaults to
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request