From 1e0e5bf22a8d8f71090ec14b24d53cd9c748c766 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 6 Feb 2024 16:51:43 +0100 Subject: Types Server: omitempty for support contacts and locations --- types/server/server.go | 6 +++--- 1 file 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"` -- cgit v1.2.3