We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e95a90 commit 4cd95f1Copy full SHA for 4cd95f1
cyclonedx_py/_internal/utils/cdx.py
@@ -104,6 +104,9 @@ def licenses_fixup(component: 'Component') -> None:
104
Per CycloneDX spec, there must be EITHER one license expression OR multiple license id/name.
105
If there is an expression, it is used and everything else is moved to evidences, so it is not lost.
106
"""
107
+ # hack for preventing expressions AND named licenses.
108
+ # see https://github.com/CycloneDX/cyclonedx-python/issues/826
109
+ # see https://github.com/CycloneDX/specification/issues/454
110
licenses = list(component.licenses)
111
lexp = find_LicenseExpression(licenses)
112
if lexp is None:
0 commit comments