From 317ece104f891afd0c5928773e298cd6cf352f48 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Thu, 10 Dec 2015 18:04:15 +0000 Subject: Add JSON annotation to pick up underscore in user_name --- src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/uk') diff --git a/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java b/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java index bd8c961..bc20045 100644 --- a/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java +++ b/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java @@ -1,5 +1,7 @@ package uk.co.blatech.blaears.models.gitlab; +import com.fasterxml.jackson.annotation.JsonProperty; + /** * Model for a GitLab Push message, to be converted from JSON * See http://www.blatech.co.uk/help/web_hooks/web_hooks @@ -7,6 +9,7 @@ package uk.co.blatech.blaears.models.gitlab; public class Push { String objectKind; + @JsonProperty("user_name") String userName; Repository repository; -- cgit v1.2.3