diff --git a/model/src/main/kotlin/AdvisorResult.kt b/model/src/main/kotlin/AdvisorResult.kt index e807fc150eec7..a6afd6f8371a9 100644 --- a/model/src/main/kotlin/AdvisorResult.kt +++ b/model/src/main/kotlin/AdvisorResult.kt @@ -19,6 +19,8 @@ package org.ossreviewtoolkit.model +import com.fasterxml.jackson.annotation.JsonInclude + import org.ossreviewtoolkit.model.vulnerabilities.Vulnerability /** @@ -41,10 +43,12 @@ data class AdvisorResult( /** * The defects. */ + @JsonInclude(JsonInclude.Include.NON_EMPTY) val defects: List = emptyList(), /** * The vulnerabilities. */ + @JsonInclude(JsonInclude.Include.NON_EMPTY) val vulnerabilities: List = emptyList() )