From 6279f2694f697805fc9718a6f331a8e3715abc1b Mon Sep 17 00:00:00 2001 From: MegaportPhilipBrowne Date: Tue, 5 Nov 2024 10:01:10 -0500 Subject: [PATCH] fix: make optional fields omitempty --- vxc_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vxc_types.go b/vxc_types.go index 5a041a1..4fd84fc 100644 --- a/vxc_types.go +++ b/vxc_types.go @@ -403,12 +403,12 @@ type PartnerOrderContents struct { // PartnerOrderAzurePeeringConfig represents the configuration of an Azure peering partner. type PartnerOrderAzurePeeringConfig struct { Type string `json:"type"` - PeerASN string `json:"peer_asn"` - PrimarySubnet string `json:"primary_subnet"` - SecondarySubnet string `json:"secondary_subnet"` + PeerASN string `json:"peer_asn,omitempty"` + PrimarySubnet string `json:"primary_subnet,omitempty"` + SecondarySubnet string `json:"secondary_subnet,omitempty"` Prefixes string `json:"prefixes,omitempty"` SharedKey string `json:"shared_key,omitempty"` - VLAN int `json:"vlan"` + VLAN int `json:"vlan,omitempty"` } // CSPConnection represents the configuration of a CSP connection.