You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I’m integrating the SPDX JSON-LD serializer into my SBOM generation pipeline, and I need to include CVSS v3 scores (type Double) on my CvssV3VulnAssessmentRelationship objects. The builder exposes a setScore(Double) method, but when the serializer encounters a Double it doesn’t know how to turn it into a JSON node, and throws an InvalidSPDXAnalysisException.
Current Behavior
objectToJsonNode(...) handles String, Integer, Boolean, etc., but has no branch for Double.
Any Double-typed field causes an exception.
Expected Behavior
When an Object is a Double, it should be serialized as a DoubleNode.
Background
I’m integrating the SPDX JSON-LD serializer into my SBOM generation pipeline, and I need to include CVSS v3 scores (type
Double
) on myCvssV3VulnAssessmentRelationship
objects. The builder exposes a setScore(Double) method, but when the serializer encounters aDouble
it doesn’t know how to turn it into a JSON node, and throws anInvalidSPDXAnalysisException
.Current Behavior
objectToJsonNode(...)
handlesString, Integer, Boolean
, etc., but has no branch forDouble
.Double
-typed field causes an exception.Expected Behavior
Double
, it should be serialized as aDoubleNode
.Proposed Change
The text was updated successfully, but these errors were encountered: