Skip to content

Commit eee80ae

Browse files
committed
Use omitempty in reference, not in struct
1 parent 76ffb5b commit eee80ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sumologic/sumologic_gcp_source.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ type GCPThirdPartyRef struct {
1818

1919
type GCPResource struct {
2020
ServiceType string `json:"serviceType"`
21-
Authentication *GCPAuthentication `json:"authentication"`
22-
Path *GCPPath `json:"path"`
21+
Authentication *GCPAuthentication `json:"authentication,omitempty"`
22+
Path *GCPPath `json:"path,omitempty"`
2323
}
2424

2525
type GCPAuthentication struct {
26-
Type string `json:"type,omitempty"`
26+
Type string `json:"type"`
2727
}
2828

2929
type GCPPath struct {
30-
Type string `json:"type,omitempty"`
30+
Type string `json:"type"`
3131
}
3232

3333
func (s *Client) CreateGCPSource(gcpSource GCPSource, collectorID int) (int, error) {

0 commit comments

Comments
 (0)