From 9d08531c1fdbfd053d2ba58000934678493521b1 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Tue, 19 Sep 2023 12:12:29 +0200 Subject: [PATCH] fix(osv): Align `Reference.Type` with spec version 1.6.0 The `Osv` backend returns JSON data compliant with spec version 1.6.0, while ORT's handling hasn't been updated to that (latest) version. For example, the root cause of [2] is that `Reference.Type` is lacking the value `EVIDENCE`. Align only the values of `Reference.Type` with version 1.6.0 in order to fix [2] quickly. In a future change, remaining alignments, if any, should be made. [1] https://github.com/ossf/osv-schema/blob/v1.6.0/validation/schema.json [2] https://github.com/oss-review-toolkit/ort/issues/7531 Signed-off-by: Frank Viernau --- clients/osv/src/main/kotlin/Model.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/osv/src/main/kotlin/Model.kt b/clients/osv/src/main/kotlin/Model.kt index 24a726759f832..b40b1ae289735 100644 --- a/clients/osv/src/main/kotlin/Model.kt +++ b/clients/osv/src/main/kotlin/Model.kt @@ -164,7 +164,12 @@ data class Reference( enum class Type { ADVISORY, ARTICLE, + DETECTION, + DISCUSSION, + EVIDENCE, FIX, + GIT, + INTRODUCED, PACKAGE, REPORT, WEB