Skip to content

Commit 27fdf3e

Browse files
fix omitempty on objects (headers, hostOverrides)
1 parent c34a697 commit 27fdf3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syntheticsclientv2/common_models.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type Networkconnection struct {
3030
type Advancedsettings struct {
3131
Authentication *Authentication `json:"authentication"`
3232
Cookiesv2 []Cookiesv2 `json:"cookies"`
33-
BrowserHeaders []BrowserHeaders `json:"headers,omitempty"`
34-
HostOverrides []HostOverrides `json:"hostOverrides,omitempty"`
33+
BrowserHeaders []BrowserHeaders `json:"headers"`
34+
HostOverrides []HostOverrides `json:"hostOverrides"`
3535
UserAgent *string `json:"userAgent"`
3636
CollectInteractiveMetrics bool `json:"collectInteractiveMetrics"`
3737
Verifycertificates bool `json:"verifyCertificates"`
@@ -284,7 +284,7 @@ type HttpCheckV2Response struct {
284284
Authentication *Authentication `json:"authentication"`
285285
UserAgent *string `json:"userAgent"`
286286
Verifycertificates bool `json:"verifyCertificates"`
287-
HttpHeaders []HttpHeaders `json:"headers,omitempty"`
287+
HttpHeaders []HttpHeaders `json:"headers"`
288288
} `json:"test"`
289289
}
290290

@@ -302,7 +302,7 @@ type HttpCheckV2Input struct {
302302
Authentication *Authentication `json:"authentication"`
303303
UserAgent *string `json:"userAgent"`
304304
Verifycertificates bool `json:"verifyCertificates"`
305-
HttpHeaders []HttpHeaders `json:"headers,omitempty"`
305+
HttpHeaders []HttpHeaders `json:"headers"`
306306
} `json:"test"`
307307
}
308308

0 commit comments

Comments
 (0)