package de.ayesolutions.gogs.client.model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Christian Aye - c.aye@aye-solutions.de
 */
public class User {

    private Long id;

    private String username;

    private String password;

    @JsonProperty(value = "full_name")
    private String fullName;

    private String email;

    @JsonProperty(value = "avatar_url")
    private String avatarUrl;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
}

@@ -37,16 +37,78 @@
 model;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0A
 import c
@@ -212,16 +212,60 @@
 .de%0A */%0A
+@JsonIgnoreProperties(ignoreUnknown = true)%0A
 public c

Update User.java