cyclonedx-cli icon indicating copy to clipboard operation
cyclonedx-cli copied to clipboard

Issue regarding BOM component for converting from CSV to JSON

Open SSarka69 opened this issue 2 years ago • 1 comments

Faced an issue regarding BOM component. In the BOM there is a column named "Type", for converting it from CSV to JSON it is encountering an error.

Command Used in command line: cyclonedx-win-x64.exe convert --input-file BOM.csv --output-file Output.json

Error Faced: Type conversion error.

Accepted TYPE for Tool: Application, Library, Framework Accepted TYPE for CycloneDx: Application, Library, Framework, Operating-System, File, Device, Firmware, Container.

Please provide a solution that if any type other than Application, Library and Framework, for example: Operating-system, File, Device or Firmware is there in the Type column of BOM CSV file. Please find the files I have provided below for reference and better understanding.

BOM.csv Error.txt CycloneDX_Website

SSarka69 avatar Dec 27 '22 13:12 SSarka69

For me it works correctly if I replace "Operating-system" by "OperationSystem" in the csv file. Compare also definition of the enum Classification: https://github.com/CycloneDX/cyclonedx-dotnet-library/blob/main/src/CycloneDX.Core/Models/Component.cs

andreas-hilti avatar Aug 19 '23 21:08 andreas-hilti