diff --git a/dependency-check-core/src/main/resources/templates/JsonReport.vsl b/dependency-check-core/src/main/resources/templates/JsonReport.vsl index d83feba51..4fbf0b79a 100644 --- a/dependency-check-core/src/main/resources/templates/JsonReport.vsl +++ b/dependency-check-core/src/main/resources/templates/JsonReport.vsl @@ -1,4 +1,5 @@ { + "reportSchema": "1.0", "analysis": { "scanInfo": { "engineVersion": "$version", @@ -13,6 +14,9 @@ }, "projectInfo": { "name": "$enc.json($applicationName)", + #if($groupID)"groupID":"$enc.json($groupID)",#end + #if($artifactID)"artifactID":"$enc.json($artifactID)",#end + #if($version)"version":"$enc.json($version)",#end "reportDate": "$scanDateXML", "credits": "This report contains data retrieved from the National Vulnerability Database: http://nvd.nist.gov" }, @@ -46,9 +50,7 @@ #end ] #end - ,"evidenceCollected": { - "vendorEvidence": [ #foreach($evidence in $dependency.getVendorEvidence()) #if($foreach.count > 1),#end{ @@ -82,7 +84,6 @@ } #end ] - }, "identifiers": [ #foreach($id in $dependency.getIdentifiers())#if($foreach.count > 1),#end{ @@ -107,7 +108,6 @@ } #end ] - #if($dependency.getVulnerabilities().size()>0 || $dependency.getSuppressedVulnerabilities().size()>0) ,"vulnerabilities": [ #foreach($vuln in $dependency.getVulnerabilities()) @@ -195,4 +195,4 @@ #end ] } -} \ No newline at end of file +}