Skip to content

Commit d18b072

Browse files
authored
Merge pull request #8 from secureCodeBox/feature/created-at
Add Created Field to Finding Data Model and Update Dependencies
2 parents 4264ac2 + 0a2a6cc commit d18b072

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Diff for: build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ dependencies {
1616
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
1717
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
1818

19-
compile group: 'org.springframework', name: 'spring-web', version: '5.2.12.RELEASE'
19+
implementation group: 'org.springframework', name: 'spring-web', version: '5.3.9'
2020

21-
compile 'com.fasterxml.jackson.core:jackson-core:2.12.0'
22-
compile 'com.fasterxml.jackson.core:jackson-annotations:2.12.0'
23-
compile 'com.fasterxml.jackson.core:jackson-databind:2.12.0'
21+
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
22+
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4'
23+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4'
24+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.4'
2425
}
2526

2627
publishing {

Diff for: src/main/java/io/securecodebox/persistence/defectdojo/models/Finding.java

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import io.securecodebox.persistence.defectdojo.exceptions.DefectDojoPersistenceException;
2424
import lombok.*;
2525

26+
import java.time.LocalDateTime;
2627
import java.util.LinkedList;
2728
import java.util.List;
2829
import java.util.Map;
@@ -92,6 +93,9 @@ public class Finding extends DefectDojoModel {
9293
@Builder.Default
9394
List<Long> endpoints = new LinkedList<>();
9495

96+
@JsonProperty("created")
97+
LocalDateTime createdAt;
98+
9599
@JsonProperty("numerical_severity")
96100
public String getNumericalSeverity() {
97101
switch (this.severity) {

0 commit comments

Comments
 (0)