We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to add a component description, but it does not end up in the generated XML file.
from cyclonedx.model.component import Component from cyclonedx.model.bom import Bom from cyclonedx.output import BaseOutput, get_instance, OutputFormat, SchemaVersion from cyclonedx.parser import BaseParser class TrivialParser(BaseParser): def __init__(self): c = Component(name='foo', version='1.0.0', description='My description', author='My Author') self._components.append(c) parser = TrivialParser() bom = Bom.from_parser(parser) inst = get_instance( bom=bom, output_format=OutputFormat['XML'], schema_version=SchemaVersion['V{}'.format( str(1.4).replace('.', '_') )] ) inst.output_to_file('bom.xml')
The output does not contain the description content.
I would expect the XML output to contain the description text, as specified in the schema (https://cyclonedx.org/docs/1.4/xml/#type_component)
Is this just an usage error or missing functionality?
The text was updated successfully, but these errors were encountered:
Hi @schlenk - thanks for the report.
Can you share the version of cyclonedx-python-lib you are using?
cyclonedx-python-lib
Sorry, something went wrong.
Sure, installed via pip on Python 3.9.7 on Windows.
cyclonedx-python-lib 1.3.0
Thanks @schlenk - you are correct - you've found a bug.
We'll get this fixed in the upcoming 2.0.0 release shortly.
2.0.0
Thanks again for the report!
bom.components
feat: completed work on #155
02d2ba8
fix: resolved #169 (part of #155) feat: as part of solving #155, #147 has been implemented Signed-off-by: Paul Horton <[email protected]>
a926b34
madpah
Successfully merging a pull request may close this issue.
I tried to add a component description, but it does not end up in the generated XML file.
The output does not contain the description content.
I would expect the XML output to contain the description text, as specified in the schema
(https://cyclonedx.org/docs/1.4/xml/#type_component)
Is this just an usage error or missing functionality?
The text was updated successfully, but these errors were encountered: