Skip to content

Commit 0872076

Browse files
authored
fix: Make SBOM component licenses optional
This field might not exist in the tool SBOM result and it is better modeled as an Option.
1 parent f91ed36 commit 0872076

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • codacy-plugins-api/src/main/scala/com/codacy/plugins/api/results

codacy-plugins-api/src/main/scala/com/codacy/plugins/api/results/Result.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ object Result {
9797
version: Option[String],
9898
purl: Option[String],
9999
properties: List[Property],
100-
licenses: List[LicenseWrapper])
100+
licenses: Option[List[LicenseWrapper]])
101101

102102
object Component {
103103
type Type = Type.Value

0 commit comments

Comments
 (0)