Skip to content

Commit

Permalink
ref: remove omitempty tags
Browse files Browse the repository at this point in the history
These tags were removed since the models they resided in are mostly for
unmarshalling instead of marshalling so they have no effect.
  • Loading branch information
crazybolillo committed Sep 13, 2024
1 parent bf1fa3e commit d5832ec
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions internal/model/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d5832ec

Please sign in to comment.