From 0820a7b83a9a4e112c0a06a8c9115b08ad8af484 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 1 Nov 2023 21:25:05 +0100 Subject: [PATCH] fix(VulnerabilityReference): Do not deserialize a lazy property This is a fixup for 8b6fe4f which introduced the `severityRating` property. Signed-off-by: Sebastian Schuberth --- .../src/main/kotlin/vulnerabilities/VulnerabilityReference.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/src/main/kotlin/vulnerabilities/VulnerabilityReference.kt b/model/src/main/kotlin/vulnerabilities/VulnerabilityReference.kt index 87c05a3642cac..e4ab291b32809 100644 --- a/model/src/main/kotlin/vulnerabilities/VulnerabilityReference.kt +++ b/model/src/main/kotlin/vulnerabilities/VulnerabilityReference.kt @@ -19,6 +19,8 @@ package org.ossreviewtoolkit.model.vulnerabilities +import com.fasterxml.jackson.annotation.JsonIgnoreProperties + import java.net.URI /** @@ -30,6 +32,7 @@ import java.net.URI * with a list of references; each reference points to the source of the information and has some detailed information * provided by this source. */ +@JsonIgnoreProperties(value = ["severity_rating"], allowGetters = true) data class VulnerabilityReference( /** * The URI pointing to details of this vulnerability. This can also be used to derive the source of this