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
1 changed files with 4 additions and 4 deletions

View File

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