Skip to content

Commit

Permalink
Fix Labelselector causes a validation error (#171)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling authored May 28, 2021
1 parent c597203 commit 7cb8abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hcloud/hcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package hcloud

// Version is the library's version following Semantic Versioning.
const Version = "1.26.0"
const Version = "1.26.1"
4 changes: 2 additions & 2 deletions hcloud/schema/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ type FirewallCreateRequest struct {
// FirewallResource defines the schema of a resource to apply the new Firewall on.
type FirewallResource struct {
Type string `json:"type"`
Server *FirewallResourceServer `json:"server"`
LabelSelector *FirewallResourceLabelSelector `json:"label_selector"`
Server *FirewallResourceServer `json:"server,omitempty"`
LabelSelector *FirewallResourceLabelSelector `json:"label_selector,omitempty"`
}

// FirewallResourceLabelSelector defines the schema of a LabelSelector to apply a Firewall on.
Expand Down

0 comments on commit 7cb8abc

Please sign in to comment.