From 0dbbc4b045003b99f6a83b97a6334660c8c44f92 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Fri, 13 Dec 2024 11:52:17 -0400 Subject: [PATCH] ADD metadata to omit empty vals --- internal/domain/history.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/domain/history.go b/internal/domain/history.go index 1e34b25..ab35de9 100644 --- a/internal/domain/history.go +++ b/internal/domain/history.go @@ -10,8 +10,8 @@ type History struct { } type Institution struct { - ID int64 `json:"id"` - Name string `json:"name"` - ShortName string `json:"short_name"` - Created int64 `json:"created"` + ID int64 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + ShortName string `json:"short_name,omitempty"` + Created int64 `json:"created,omitempty"` }