component_card.jinja2 assumes all Component property values are stored as json
Description
I ran hopctl bundle
with some components that had custom properties on them. report generation failed.
What did you expect to happen?
I expected the report to generate successfully.
What happened instead?
The report generation failed with JSONDecodeError: Expecting value: line 1 column 1 (char 0)
.
hopctl version
:
Output of Hoppr Framework Version : 1.8.2
Python Version : 3.10.7
Additional details (purl types in sboms, example manifest, and transfers.yml):
component_card.jinja2 calls json_loads(prop.value)
. This fails for the properties that only contain strings for a value. The code should be updated to handle both json encoded values inside of properties and regular strings inside of properties.