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.
self.get_bom().components
Set
1 parent b8d526e commit 5eb5669Copy full SHA for 5eb5669
cyclonedx/output/json.py
@@ -71,12 +71,11 @@ def generate(self, force_regeneration: bool = False) -> None:
71
'ref': str(cast(Component, self.get_bom().metadata.component).bom_ref),
72
'dependsOn': [*map(str, cast(Component, self.get_bom().metadata.component).dependencies)]
73
})
74
- if self.get_bom().components:
75
- for component in self.get_bom().components:
76
- dependencies.append({
77
- 'ref': str(component.bom_ref),
78
- 'dependsOn': [*map(str, component.dependencies)]
79
- })
+ for component in self.get_bom().components:
+ dependencies.append({
+ 'ref': str(component.bom_ref),
+ 'dependsOn': [*map(str, component.dependencies)]
+ })
80
if dependencies:
81
extras["dependencies"] = dependencies
82
0 commit comments