Omit ALL optional fields..

This commit is contained in:
Kalle Carlbark 2022-02-14 15:39:18 +01:00
parent 63c2a86871
commit d9a9af4eae
No known key found for this signature in database

View file

@ -20,9 +20,9 @@ type NewVirtualizationInterface struct {
Description string `json:"description,omitempty"` Description string `json:"description,omitempty"`
MACAddress string `json:"mac_address,omitempty"` MACAddress string `json:"mac_address,omitempty"`
Tags *[]struct { Tags *[]struct {
Name string `json:"name"` Name string `json:"name,omitempty"`
Slug string `json:"slug"` Slug string `json:"slug,omitempty"`
Color string `json:"color"` Color string `json:"color,omitempty"`
} `json:"tags,omitempty"` } `json:"tags,omitempty"`
TaggedVLANs *[]int `json:"tagged_vlans,omitempty"` TaggedVLANs *[]int `json:"tagged_vlans,omitempty"`
Bridge int `json:"bridge,omitempty"` Bridge int `json:"bridge,omitempty"`