diff --git a/src/main/java/uk/gov/hmcts/reform/civil/documentmanagement/model/Document.java b/src/main/java/uk/gov/hmcts/reform/civil/documentmanagement/model/Document.java index f0480feb..07ad09d4 100644 --- a/src/main/java/uk/gov/hmcts/reform/civil/documentmanagement/model/Document.java +++ b/src/main/java/uk/gov/hmcts/reform/civil/documentmanagement/model/Document.java @@ -1,12 +1,16 @@ package uk.gov.hmcts.reform.civil.documentmanagement.model; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; @Data @Builder(toBuilder = true) +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) public class Document { String documentUrl;