diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-06 16:51:43 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 1e0e5bf22a8d8f71090ec14b24d53cd9c748c766 (patch) | |
| tree | de31021615da2eaf27a1143bc904e17bf74cc751 | |
| parent | b030b4adcaf3cc63c02fde1433f2a14294608a02 (diff) | |
Types Server: omitempty for support contacts and locations
| -rw-r--r-- | types/server/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/types/server/server.go b/types/server/server.go index bfed638..4e54987 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -124,7 +124,7 @@ type Institute struct { // Server is the embedded server struct Server // SupportContacts are the list of support contacts - SupportContacts []string `json:"support_contacts"` + SupportContacts []string `json:"support_contacts,omitempty"` // Delisted is a boolean that indicates whether or not this server is delisted from discovery // If it is, the UI should show a warning symbol or move the server to a new category, which is up to the client Delisted bool `json:"delisted"` @@ -137,9 +137,9 @@ type SecureInternet struct { // CountryCode is the country code of the currently configured location, e.g. "nl" CountryCode string `json:"country_code"` // Locations is the list of available secure internet locations - Locations []string `json:"locations"` + Locations []string `json:"locations,omitempty"` // SupportContacts are the list of support contacts - SupportContacts []string `json:"support_contacts"` + SupportContacts []string `json:"support_contacts,omitempty"` // Delisted is a boolean that indicates whether or not this server is delisted from discovery // If it is, the UI should show a warning symbol or move the server to a new category, which is up to the client Delisted bool `json:"delisted"` |
