Skip to content

Commit 3092dc2

Browse files
committed
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] #7531 Signed-off-by: Frank Viernau <[email protected]>
1 parent 31ec26a commit 3092dc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clients/osv/src/main/kotlin/Model.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,12 @@ data class Reference(
164164
enum class Type {
165165
ADVISORY,
166166
ARTICLE,
167+
DETECTION,
168+
DISCUSSION,
169+
EVIDENCE,
167170
FIX,
171+
GIT,
172+
INTRODUCED,
168173
PACKAGE,
169174
REPORT,
170175
WEB

0 commit comments

Comments
 (0)