From d9a9af4eae3c7c97336ac49aaedd6d547110e592 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Mon, 14 Feb 2022 15:39:18 +0100 Subject: [PATCH] Omit ALL optional fields.. --- virtualization_interfaces.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virtualization_interfaces.go b/virtualization_interfaces.go index 641f559..4e81cd3 100644 --- a/virtualization_interfaces.go +++ b/virtualization_interfaces.go @@ -20,9 +20,9 @@ type NewVirtualizationInterface struct { Description string `json:"description,omitempty"` MACAddress string `json:"mac_address,omitempty"` Tags *[]struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color string `json:"color"` + Name string `json:"name,omitempty"` + Slug string `json:"slug,omitempty"` + Color string `json:"color,omitempty"` } `json:"tags,omitempty"` TaggedVLANs *[]int `json:"tagged_vlans,omitempty"` Bridge int `json:"bridge,omitempty"`