gateway: remove omitempty json struct tag from UserResponse

This commit is contained in:
Simone Gotti 2019-05-09 16:48:28 +02:00
parent 620bae68df
commit b37eddbe8b

View File

@ -153,10 +153,10 @@ func (h *UserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
type UserResponse struct {
ID string `json:"id,omitempty"`
UserName string `json:"username,omitempty"`
Tokens []string `json:"tokens,omitempty"`
LinkedAccounts []*LinkedAccountResponse `json:"linked_accounts,omitempty"`
ID string `json:"id"`
UserName string `json:"username"`
Tokens []string `json:"tokens"`
LinkedAccounts []*LinkedAccountResponse `json:"linked_accounts"`
}
type LinkedAccountResponse struct {