Skip to content

Commit f2e7e53

Browse files
adding isDirectDependency field (#195)
* adding isDirectDependency field * using new cli field * adding new scaType field to the results Co-authored-by: Pedro Lopes <[email protected]>
1 parent ca4499f commit f2e7e53

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/main/java/com/checkmarx/ast/results/result/Result.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public class Result {
1414

1515
private final String type;
16+
private final String scaType;
1617
private final String label;
1718
private final String id;
1819
private final String similarityId;
@@ -50,8 +51,10 @@ public Result(@JsonProperty("type") String type,
5051
@JsonProperty("descriptionHTML") String descriptionHTML,
5152
@JsonProperty("data") Data data,
5253
@JsonProperty("comments") Comments comments,
53-
@JsonProperty("vulnerabilityDetails") VulnerabilityDetails vulnerabilityDetails) {
54+
@JsonProperty("vulnerabilityDetails") VulnerabilityDetails vulnerabilityDetails,
55+
@JsonProperty("scaType") String scaType) {
5456
this.type = type;
57+
this.scaType=scaType;
5558
this.label = label;
5659
this.id = id;
5760
this.similarityId = similarityId;

src/main/java/com/checkmarx/ast/results/result/ScaPackageData.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,21 @@ public class ScaPackageData {
1919
List<List<DependencyPath>> dependencyPaths;
2020
boolean outdated;
2121
boolean supportsQuickFix;
22+
String typeOfDependency;
2223

2324

2425
public ScaPackageData(@JsonProperty("Id") String id,
2526
@JsonProperty("fixLink") String fixLink,
2627
@JsonProperty("dependencyPaths") List<List<DependencyPath>> dependencyPaths,
2728
@JsonProperty("outdated") boolean outdated,
28-
@JsonProperty("supportsQuickFix") boolean supportsQuickFix) {
29+
@JsonProperty("supportsQuickFix") boolean supportsQuickFix,
30+
@JsonProperty("typeOfDependency") String typeOfDependency) {
2931

3032
Id = id;
3133
this.fixLink = fixLink;
3234
this.dependencyPaths = dependencyPaths;
3335
this.outdated = outdated;
3436
this.supportsQuickFix = supportsQuickFix;
37+
this.typeOfDependency = typeOfDependency;
3538
}
3639
}

0 commit comments

Comments
 (0)