From d5832ec55b58c2353aa953087a6fe375c98df213 Mon Sep 17 00:00:00 2001 From: CrazyBolillo Date: Fri, 13 Sep 2024 00:07:05 -0600 Subject: [PATCH] ref: remove omitempty tags These tags were removed since the models they resided in are mostly for unmarshalling instead of marshalling so they have no effect. --- internal/model/endpoint.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/model/endpoint.go b/internal/model/endpoint.go index 1508e65..5e3cf05 100644 --- a/internal/model/endpoint.go +++ b/internal/model/endpoint.go @@ -16,22 +16,22 @@ type NewEndpoint struct { ID string `json:"id"` AccountCode string `json:"accountCode"` Password string `json:"password"` - Transport string `json:"transport,omitempty"` + Transport string `json:"transport"` Context string `json:"context"` Codecs []string `json:"codecs"` - MaxContacts int32 `json:"maxContacts,omitempty"` - Extension string `json:"extension,omitempty"` + MaxContacts int32 `json:"maxContacts"` + Extension string `json:"extension"` DisplayName string `json:"displayName"` } type PatchedEndpoint struct { - Password *string `json:"password,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - Transport *string `json:"transport,omitempty"` - Context *string `json:"context,omitempty"` - Codecs []string `json:"codecs,omitempty"` - MaxContacts *int32 `json:"maxContacts,omitempty"` - Extension *string `json:"extension,omitempty"` + Password *string `json:"password,"` + DisplayName *string `json:"displayName,"` + Transport *string `json:"transport,"` + Context *string `json:"context,"` + Codecs []string `json:"codecs,"` + MaxContacts *int32 `json:"maxContacts,"` + Extension *string `json:"extension,"` } type EndpointPageEntry struct {