Skip to content

Commit

Permalink
docs: migrate to v8.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Sep 23, 2024
1 parent 87404f9 commit d8c58b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Old: ``from cyclonedx.model import Tool``

New: ``from cyclonedx.model.tool import Tool``

Altering Metadata Tools
-----------------------
Alter Metadata Tools
--------------------

Property :attr:`cyclonedx.model.bom.BomMetaData.tools` is an instance of :class:`cyclonedx.model.tool.ToolsRepository`, now.
Therefore, the process of adding new tools was changed.
Expand All @@ -42,8 +42,8 @@ Old: ``my_bom.metadata.tools.add(my_tool)``

New: ``my_bom.metadata.tools.tools.add(my_tool)``

Altering Vulnerability Tools
----------------------------
Alter Vulnerability Tools
-------------------------

Property :attr:`cyclonedx.model.vulnerability.Vulnerability.tools` is an instance of :class:`cyclonedx.model.tool.ToolsRepository`, now.
Therefore, the process of adding new tools was changed.
Expand All @@ -52,8 +52,8 @@ Old: ``my_vulnerability.tools.add(my_tool)``

New: ``my_vulnerability.tools.tools.add(my_tool)``

Setting LicenseExpression Acknowledgement
-----------------------------------------
Set LicenseExpression Acknowledgement
-------------------------------------

:class:`cyclonedx.model.license.LicenseExpression()` no longer accepts optional arguments in a positional way, but in a key-word way.

Expand Down

0 comments on commit d8c58b3

Please sign in to comment.