File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed
src/main/java/com/checkmarx/ast/results/result Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class Data {
3030 int line ;
3131 List <Node > nodes ;
3232 List <PackageData > packageData ;
33- ScaPackageCollection scanPackageCollection ;
33+ ScaPackageData scaPackageData ;
3434
3535 public Data (@ JsonProperty ("queryId" ) String queryId ,
3636 @ JsonProperty ("queryName" ) String queryName ,
@@ -47,7 +47,7 @@ public Data(@JsonProperty("queryId") String queryId,
4747 @ JsonProperty ("line" ) int line ,
4848 @ JsonProperty ("nodes" ) List <Node > nodes ,
4949 @ JsonProperty ("packageData" ) List <PackageData > packageData ,
50- @ JsonProperty ("scanPackageCollection " ) ScaPackageCollection scanPackageCollection ) {
50+ @ JsonProperty ("scaPackageData " ) ScaPackageData scaPackageData ) {
5151 this .queryId = queryId ;
5252 this .queryName = queryName ;
5353 this .group = group ;
@@ -63,6 +63,6 @@ public Data(@JsonProperty("queryId") String queryId,
6363 this .line = line ;
6464 this .nodes = nodes ;
6565 this .packageData = packageData ;
66- this .scanPackageCollection = scanPackageCollection ;
66+ this .scaPackageData = scaPackageData ;
6767 }
6868}
Original file line number Diff line number Diff line change 66import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
77import lombok .Value ;
88
9+ import java .util .List ;
10+
911@ Value
1012@ JsonDeserialize ()
1113@ JsonInclude (JsonInclude .Include .NON_NULL )
@@ -15,19 +17,22 @@ public class DependencyPath {
1517 String Id ;
1618 String name ;
1719 String version ;
20+ List <String > locations ;
1821 boolean isResolved ;
1922 boolean isDevelopment ;
2023
2124
2225 public DependencyPath (@ JsonProperty ("Id" ) String id ,
2326 @ JsonProperty ("name" ) String name ,
2427 @ JsonProperty ("version" ) String version ,
28+ @ JsonProperty ("locations" ) List <String > locations ,
2529 @ JsonProperty ("isResolved" ) boolean isResolved ,
2630 @ JsonProperty ("isDevelopment" ) boolean isDevelopment ) {
2731
2832 Id = id ;
2933 this .name = name ;
3034 this .version = version ;
35+ this .locations = locations ;
3136 this .isResolved = isResolved ;
3237 this .isDevelopment = isDevelopment ;
3338 }
Original file line number Diff line number Diff line change 1212@ JsonDeserialize ()
1313@ JsonInclude (JsonInclude .Include .NON_NULL )
1414@ JsonIgnoreProperties (ignoreUnknown = true )
15- public class ScaPackageCollection {
15+ public class ScaPackageData {
1616
1717 String Id ;
18- List < String > locations ;
19- List <DependencyPath > dependencyPathArray ;
18+ String fixLink ;
19+ List <List < DependencyPath >> dependencyPaths ;
2020 boolean outdated ;
2121
2222
23- public ScaPackageCollection (@ JsonProperty ("Id" ) String id ,
24- @ JsonProperty ("locations " ) List < String > locations ,
25- @ JsonProperty ("dependencyPathArray " ) List <DependencyPath > dependencyPathArray ,
26- @ JsonProperty ("outdated" ) boolean outdated ) {
23+ public ScaPackageData (@ JsonProperty ("Id" ) String id ,
24+ @ JsonProperty ("fixLink " ) String fixLink ,
25+ @ JsonProperty ("dependencyPaths " ) List <List < DependencyPath >> dependencyPaths ,
26+ @ JsonProperty ("outdated" ) boolean outdated ) {
2727
2828 Id = id ;
29- this .locations = locations ;
30- this .dependencyPathArray = dependencyPathArray ;
29+ this .fixLink = fixLink ;
30+ this .dependencyPaths = dependencyPaths ;
3131 this .outdated = outdated ;
3232 }
3333}
You can’t perform that action at this time.
0 commit comments