Skip to content

Commit 956f988

Browse files
committed
use @JsonProperty annotation to specify actual key the GitLab API is using
1 parent f1a7e2d commit 956f988

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/gitlab4j/api/webhook/MergeRequestEvent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.gitlab4j.api.models.Reviewer;
77
import org.gitlab4j.api.utils.JacksonJson;
88

9+
import com.fasterxml.jackson.annotation.JsonProperty;
10+
911
public class MergeRequestEvent extends AbstractEvent {
1012
private static final long serialVersionUID = 1L;
1113

@@ -15,7 +17,10 @@ public class MergeRequestEvent extends AbstractEvent {
1517
private EventUser user;
1618
private EventProject project;
1719
private EventRepository repository;
20+
21+
@JsonProperty(value = "object_attributes")
1822
private ObjectAttributes objectAttributes;
23+
1924
private List<EventLabel> labels;
2025
private MergeRequestChanges changes;
2126
private List<Assignee> assignees;

0 commit comments

Comments
 (0)