Skip to content

Commit

Permalink
fix(SBOMER-291): ignore unknown properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vibe13 committed Dec 20, 2024
1 parent 9149088 commit c75c64d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@
import lombok.Data;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ErrataCDNRepo {
private long id;
private String type;
private Attributes attributes;
private Relationships relationships;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Attributes {
private String name;
@JsonProperty("release_type")
Expand All @@ -43,6 +46,7 @@ public static class Attributes {
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Relationships {
private Arch arch;
private List<Variant> variants;
Expand Down

0 comments on commit c75c64d

Please sign in to comment.