From 3a991266a1d28f189bb3b087ebf4a19cb25a49ea Mon Sep 17 00:00:00 2001 From: Vegard Engen Date: Fri, 18 Apr 2025 11:35:19 +0200 Subject: [PATCH] More omitempty --- unifi/firewall_policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unifi/firewall_policy.go b/unifi/firewall_policy.go index 6fc11b5..c4b9000 100644 --- a/unifi/firewall_policy.go +++ b/unifi/firewall_policy.go @@ -28,7 +28,7 @@ type FirewallSource struct { MatchOppositeNetworks bool `json:"match_opposite_networks"` MatchOppositePorts bool `json:"match_opposite_ports"` MatchingTarget string `json:"matching_target"` - MatchingTargetType string `json:"matching_target_type"` + MatchingTargetType string `json:"matching_target_type,omitempty"` NetworkIDs []string `json:"network_ids,omitempty"` Port string `json:"port"` PortMatchingType string `json:"port_matching_type"`