Skip to content

Commit f56c8c1

Browse files
authored
Merge pull request #262 from kkendzia/fix/remove_invalid_json_tag
fix: remove omitempty in invalid json tag combination
2 parents a9426f1 + 0d1914a commit f56c8c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apis/release/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type NamespacedName struct {
4040

4141
// DataKeySelector defines required spec to access a key of a configmap or secret
4242
type DataKeySelector struct {
43-
NamespacedName `json:",inline,omitempty"`
43+
NamespacedName `json:",inline"`
4444
Key string `json:"key,omitempty"`
4545
Optional bool `json:"optional,omitempty"`
4646
}

apis/release/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type NamespacedName struct {
4747

4848
// DataKeySelector defines required spec to access a key of a configmap or secret
4949
type DataKeySelector struct {
50-
NamespacedName `json:",inline,omitempty"`
50+
NamespacedName `json:",inline"`
5151
Key string `json:"key,omitempty"`
5252
Optional bool `json:"optional,omitempty"`
5353
}

0 commit comments

Comments
 (0)