Skip to content

Commit

Permalink
fix: correct trailing comma in JSON report (#6245)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Dec 7, 2023
2 parents 48cfd22 + cc4ece7 commit e973c9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/resources/templates/jsonReport.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@
"references": [
#foreach($ref in $vuln.getReferences())
#if($foreach.count > 1),#end {
"source": "$enc.json($ref.source)",
#if ($ref.url)"url": "$enc.json($ref.url)",#end
#if ($ref.name)"name": "$enc.json($ref.name)"#end
"source": "$enc.json($ref.source)"
#if ($ref.url),"url": "$enc.json($ref.url)"#end
#if ($ref.name),"name": "$enc.json($ref.name)"#end
}#end
],
"vulnerableSoftware": [
Expand Down Expand Up @@ -329,9 +329,9 @@
"references": [
#foreach($ref in $vuln.getReferences())
#if($foreach.count > 1),#end {
"source": "$enc.json($ref.source)",
#if ($ref.url)"url": "$enc.json($ref.url)",#end
#if ($ref.name)"name": "$enc.json($ref.name)"#end
"source": "$enc.json($ref.source)"
#if ($ref.url),"url": "$enc.json($ref.url)"#end
#if ($ref.name),"name": "$enc.json($ref.name)"#end
}#end
],
"vulnerableSoftware": [
Expand Down

0 comments on commit e973c9a

Please sign in to comment.