CycloneDX / CycloneDX/cyclonedx-python-lib
[FEAT] Define hierarchical and flat merge methods
- Langage dominant
- Python
- Étoiles
- 116
- Forks
- 67
- Merge moyen
- 8 j 2 h
- PR mergées (30 j)
- 2
Description
The C# Library and the CLI tool expose to the user the methods for merging different SBOMs using either hierarchical or flat strategies. This is completely absent in the python library and forces to user to write them leading to differences in implementations. Would it make sense to expose this function/method? The C# library HierarchicalMerge function takes in a list of boms and the merge component, so i guess it would be something like
```python
def hierachical_merge(boms, metadata_component):
# merge stuff
return merged_bom
```
while the flat merge
```python
def flat_merge(boms):
return merged_bom
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by comparing the C# library's HierarchicalMerge behavior with the CLI's hierarchical and flat merge methods, then determine the corresponding public API for the Python library. The issue proposes hierachical_merge(boms, metadata_component) and flat_merge(boms); done means both strategies are exposed with behavior consistent with the existing implementations and documented for users.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, python
- Domaine
- api, backend-api-design
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100