Skip to content

Commit

Permalink
Merge pull request #4379 from nscuro/backport-pr-4350
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro authored Nov 14, 2024
2 parents 1a17fb2 + 7dedca4 commit 9b74e77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/dependencytrack/model/Vulnerability.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import org.dependencytrack.parser.common.resolver.CweResolver;
import org.dependencytrack.persistence.CollectionIntegerConverter;
import org.dependencytrack.resources.v1.serializers.CweDeserializer;
Expand Down Expand Up @@ -225,6 +227,7 @@ public static Source resolve(String id) {
@Convert(CollectionIntegerConverter.class)
@JsonSerialize(using = CweSerializer.class)
@JsonDeserialize(using = CweDeserializer.class)
@ArraySchema(schema = @Schema(implementation = Cwe.class))
private List<Integer> cwes;

@Persistent
Expand Down

0 comments on commit 9b74e77

Please sign in to comment.