From 7f39bfa7da9eaf4ea7e5d7baae9354d1d4d1b3d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:13:27 +0200 Subject: [PATCH] fix: falsely omitted fields in firewall schema (#404) Backport a3509b6b0f2762b5d1e27f2374d3fb5fb53206e2 from #396. Co-authored-by: phm07 <22707808+phm07@users.noreply.github.com> --- hcloud/schema/firewall.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hcloud/schema/firewall.go b/hcloud/schema/firewall.go index b085bbb1..e4e2fed5 100644 --- a/hcloud/schema/firewall.go +++ b/hcloud/schema/firewall.go @@ -15,11 +15,11 @@ type Firewall struct { // FirewallRule defines the schema of a Firewall rule. type FirewallRule struct { Direction string `json:"direction"` - SourceIPs []string `json:"source_ips,omitempty"` - DestinationIPs []string `json:"destination_ips,omitempty"` + SourceIPs []string `json:"source_ips"` + DestinationIPs []string `json:"destination_ips"` Protocol string `json:"protocol"` - Port *string `json:"port,omitempty"` - Description *string `json:"description,omitempty"` + Port *string `json:"port"` + Description *string `json:"description"` } // FirewallListResponse defines the schema of the response when listing Firewalls.