You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error that Bom.from_json throws is ValueError: Unexpected key bom-ref/bom-ref in data being serialized to cyclonedx.model.contact.OrganizationalEntity
Adding bom_ref to OrganizationalEntity should resolve the issue. The attribute should be attached to the bom-ref key, similar to the class cyclonedx.model.contact.PostalAddress.
Environment
I ran into the error using python 3.10.12 and also in 3.13.2. I used version 9.1.0 of the package cyclonedx-python-lib. Hashes:
Example
The error that
Bom.from_json
throws isValueError: Unexpected key bom-ref/bom-ref in data being serialized to cyclonedx.model.contact.OrganizationalEntity
Cause
I believe
OrganizationEntity
is missing the attributebom_ref
. It seems that the schema includes it, so the example specification above is correct: https://cyclonedx.org/docs/1.6/xml/#type_organizationalEntityFix
Adding
bom_ref
toOrganizationalEntity
should resolve the issue. The attribute should be attached to thebom-ref
key, similar to the classcyclonedx.model.contact.PostalAddress
.Environment
I ran into the error using python
3.10.12
and also in3.13.2
. I used version 9.1.0 of the packagecyclonedx-python-lib
. Hashes:The text was updated successfully, but these errors were encountered: