We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Component.bom_ref
bom_ref
1 parent 9b6ce4b commit 5c954d1Copy full SHA for 5c954d1
cyclonedx/model/component.py
@@ -766,7 +766,7 @@ def mime_type(self, mime_type: Optional[str]) -> None:
766
self._mime_type = mime_type
767
768
@property
769
- def bom_ref(self) -> Optional[str]:
+ def bom_ref(self) -> str:
770
"""
771
An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref MUST be
772
unique within the BOM.
@@ -779,7 +779,7 @@ def bom_ref(self) -> Optional[str]:
779
return self._bom_ref
780
781
@bom_ref.setter
782
- def bom_ref(self, bom_ref: Optional[str]) -> None:
+ def bom_ref(self, bom_ref: str) -> None:
783
self._bom_ref = bom_ref
784
785
0 commit comments