Skip to content

Commit 4cd24c2

Browse files
committed
add omitempty to the value
1 parent 1487843 commit 4cd24c2

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

apis/v1/gateway_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ type GatewaySpecAddress struct {
734734
// +optional
735735
// +kubebuilder:validation:MinLength=1
736736
// +kubebuilder:validation:MaxLength=253
737-
Value string `json:"value"`
737+
Value string `json:"value,omitempty"`
738738
}
739739

740740
// GatewayStatusAddress describes a network address that is bound to a Gateway.

applyconfiguration/internal/internal.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)