From b37eddbe8b017689a79286f7845223bb2a07e4f5 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Thu, 9 May 2019 16:48:28 +0200 Subject: [PATCH] gateway: remove omitempty json struct tag from UserResponse --- internal/services/gateway/api/user.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/services/gateway/api/user.go b/internal/services/gateway/api/user.go index a050d97..1148ea8 100644 --- a/internal/services/gateway/api/user.go +++ b/internal/services/gateway/api/user.go @@ -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 {