Skip to content

Commit

Permalink
fix: falsely omitted fields in firewall schema (#404)
Browse files Browse the repository at this point in the history
Backport a3509b6 from #396.

Co-authored-by: phm07 <22707808+phm07@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and phm07 authored Apr 11, 2024
1 parent 7337010 commit 7f39bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hcloud/schema/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7f39bfa

Please sign in to comment.