From cd0bc6f2f1b7275a89c4747192a5d1885f06a2e6 Mon Sep 17 00:00:00 2001 From: Daniel Chalef <131175+danielchalef@users.noreply.github.com> Date: Mon, 18 Sep 2023 08:46:32 -0700 Subject: [PATCH] omitempty email + name fields in User struct --- pkg/models/userstore.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/models/userstore.go b/pkg/models/userstore.go index 19e62280..2eb10b73 100644 --- a/pkg/models/userstore.go +++ b/pkg/models/userstore.go @@ -14,10 +14,10 @@ type User struct { UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` UserID string `json:"user_id"` - Email string `json:"email"` - FirstName string `json:"first_name"` - LastName string `json:"last_name"` - Metadata map[string]interface{} `json:"metadata"` + Email string `json:"email,omitempty"` + FirstName string `json:"first_name,omitempty"` + LastName string `json:"last_name,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` } type UserListResponse struct {