Skip to content

Commit 3fe68ab

Browse files
committed
fix(opossum-reporter): Fix type error in package type field
Not sure, why this hasn't surfaced before, because there was a type mismatch. I want to use the toString() method instead of serializing the enum. Enum serialization is inconsistent with toString() behavior out of the box. Custom serializer does not seem to be a maintainable option here. Signed-off-by: alexzurbonsen <[email protected]>
1 parent abcdc42 commit 3fe68ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/reporters/opossum/src/main/kotlin/OpossumReporter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class OpossumReporter(
560560
excludeFromNotice: Boolean = false
561561
): OpossumSignal = OpossumSignal(
562562
source = OpossumSignalSource(name = source),
563-
packageType = id?.getPurlType(),
563+
packageType = id?.getPurlType().toString(),
564564
packageNamespace = id?.namespace,
565565
packageName = id?.name,
566566
packageVersion = id?.version,

0 commit comments

Comments
 (0)