Skip to content

Commit

Permalink
Merge pull request #262 from kkendzia/fix/remove_invalid_json_tag
Browse files Browse the repository at this point in the history
fix: remove omitempty in invalid json tag combination
  • Loading branch information
lsviben authored Jan 8, 2025
2 parents a9426f1 + 0d1914a commit f56c8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/release/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type NamespacedName struct {

// DataKeySelector defines required spec to access a key of a configmap or secret
type DataKeySelector struct {
NamespacedName `json:",inline,omitempty"`
NamespacedName `json:",inline"`
Key string `json:"key,omitempty"`
Optional bool `json:"optional,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion apis/release/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type NamespacedName struct {

// DataKeySelector defines required spec to access a key of a configmap or secret
type DataKeySelector struct {
NamespacedName `json:",inline,omitempty"`
NamespacedName `json:",inline"`
Key string `json:"key,omitempty"`
Optional bool `json:"optional,omitempty"`
}
Expand Down

0 comments on commit f56c8c1

Please sign in to comment.