Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #781 from ggalmazor/issue_780_fix_json_parsing_cen…
Browse files Browse the repository at this point in the history
…tral_responses

Issue #780 Parsing JSON Central responses fails when unexpected fields arrive
  • Loading branch information
ggalmazor authored Aug 20, 2019
2 parents 6d029dc + d05a93f commit 7b8bca9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@JsonIgnoreProperties({"type"})
@JsonIgnoreProperties(ignoreUnknown = true)
public class CentralAttachment {
private final String name;
private final boolean exists;

@JsonCreator

public CentralAttachment(@JsonProperty("name") String name, @JsonProperty("exists") boolean exists) {
this.name = name;
this.exists = exists;
Expand Down

0 comments on commit 7b8bca9

Please sign in to comment.