Closed kzantow closed 1 month ago
🟢 @kzantow nice find on this one instance!
Given that below searchedBy
is interface{}
are there any other structs that are used here that are missing json
tags?
I searched around for searchedby
and package
and this was the only one I could find that needed a tag. Most of the searchedby
entries are map[string]any
like here and here. And this fixes all the uppercase entries in the image referenced in the ticket, e.g.:
"package": {
"name": "busybox",
"version": "1.36.1-r5"
}
A missing JSON tag resulted in an uppercased
Package
key being output incorectly; this PR corrects the issue.Fixes #1877