More omitempty

This commit is contained in:
2025-04-18 11:19:41 +02:00
parent 42434bf718
commit e72621290e

View File

@@ -21,8 +21,8 @@ type FirewallDestination struct {
} }
type FirewallSource struct { type FirewallSource struct {
ClientMacs []string `json:"client_macs"` ClientMacs []string `json:"client_macs,omitempty"`
IPs []string `json:"ips"` IPs []string `json:"ips,omitempty"`
MatchMac bool `json:"match_mac"` MatchMac bool `json:"match_mac"`
MatchOppositeIPs bool `json:"match_opposite_ips"` MatchOppositeIPs bool `json:"match_opposite_ips"`
MatchOppositeNetworks bool `json:"match_opposite_networks"` MatchOppositeNetworks bool `json:"match_opposite_networks"`