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"`
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"`