From d21dfeb42916fc2b40a62116e680685db1d7ecff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Pokorn=C3=BD?= Date: Thu, 3 Apr 2025 16:38:23 +0200 Subject: [PATCH] Omit empty optional fields --- syntheticsclientv2/common_models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntheticsclientv2/common_models.go b/syntheticsclientv2/common_models.go index 9d02219..85d0dda 100644 --- a/syntheticsclientv2/common_models.go +++ b/syntheticsclientv2/common_models.go @@ -55,14 +55,14 @@ type Authentication struct { type Cookiesv2 struct { Key string `json:"key"` Value string `json:"value"` - Domain string `json:"domain"` - Path string `json:"path"` + Domain string `json:"domain,omitempty"` + Path string `json:"path,omitempty"` } type BrowserHeaders struct { Name string `json:"name"` Value string `json:"value"` - Domain string `json:"domain"` + Domain string `json:"domain,omitempty"` } type HostOverrides struct {