Skip to content

Commit

Permalink
fix: correct trailing comma in JSON report
Browse files Browse the repository at this point in the history
resolves #6243
  • Loading branch information
jeremylong committed Dec 6, 2023
1 parent 48cfd22 commit cc4ece7
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 cc4ece7

Please sign in to comment.