@@ -22,8 +22,8 @@ to keep track of used libraries during the build process.
22
22
bom = Bom()
23
23
bom.metadata.tools.components.add(cdx_lib_component())
24
24
25
- Import model ` Tool `
26
- -------------------
25
+ Import model Tool
26
+ -----------------
27
27
28
28
Class `cyclonedx.model.Tool ` was moved to :class: `cyclonedx.model.tool.Tool `.
29
29
Therefore, the imports need to be altered:
@@ -35,7 +35,7 @@ New: ``from cyclonedx.model.tool import Tool``
35
35
Altering Metadata Tools
36
36
-----------------------
37
37
38
- :prop : `cyclonedx.mode .bom.BomMetaData.tool ` is an instance of :class: `cyclonedx.model.tool.ToolsRepository `, now.
38
+ Property :attr : `cyclonedx.model .bom.BomMetaData.tools ` is an instance of :class: `cyclonedx.model.tool.ToolsRepository `, now.
39
39
Therefore, the process of adding new tools was changed.
40
40
41
41
Old: ``my_bom.metadata.tools.add(my_tool) ``
@@ -45,13 +45,16 @@ New: ``my_bom.metadata.tools.tools.add(my_tool)``
45
45
Altering Metadata Tools
46
46
-----------------------
47
47
48
- :prop : `cyclonedx.mode .vulnerability.Vulnerability.tools ` is an instance of :class: `cyclonedx.model.tool.ToolsRepository `, now.
48
+ Property :attr : `cyclonedx.model .vulnerability.Vulnerability.tools ` is an instance of :class: `cyclonedx.model.tool.ToolsRepository `, now.
49
49
Therefore, the process of adding new tools was changed.
50
50
51
51
Old: ``my_vulnerability.tools.add(my_tool) ``
52
52
53
53
New: ``my_vulnerability.tools.tools.add(my_tool) ``
54
54
55
+ Setting LicenseExpression Acknowledgement
56
+ -----------------------------------------
57
+
55
58
:class: `cyclonedx.model.license.LicenseExpression() ` no longer accepts optional arguments in a positional way, but in a key-word way.
56
59
57
60
Old: ``LicenseExpression(my_exp, my_acknowledgement) ``
0 commit comments