diff options
author | Joe Robinson <joe@lc8n.com> | 2015-12-10 18:04:15 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2015-12-10 18:04:15 +0000 |
commit | 317ece104f891afd0c5928773e298cd6cf352f48 (patch) | |
tree | 764f5a39d759f83e2163d37a84036812f554aa14 /src/main/java/uk | |
parent | 596983ae286c88031010a43f7bbca3984d1a40a7 (diff) |
Add JSON annotation to pick up underscore in user_name
Diffstat (limited to 'src/main/java/uk')
-rw-r--r-- | src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java | 3 |
1 files changed, 3 insertions, 0 deletions
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; |