From 04e28db56204c94aecdcb130290a6ab00a2ec1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNitun?= Date: Tue, 17 Sep 2024 12:57:00 +0530 Subject: [PATCH 1/2] SYN-4427: Add omitempty field for WaitForNavTimeout --- syntheticsclientv2/common_models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntheticsclientv2/common_models.go b/syntheticsclientv2/common_models.go index 9490c58..1b2ab14 100644 --- a/syntheticsclientv2/common_models.go +++ b/syntheticsclientv2/common_models.go @@ -77,7 +77,7 @@ type StepsV2 struct { URL string `json:"url,omitempty"` Action string `json:"action,omitempty"` WaitForNav bool `json:"waitForNav"` - WaitForNavTimeout int `json:"waitForNavTimeout"` + WaitForNavTimeout int `json:"waitForNavTimeout,omitempty"` MaxWaitTime int `json:"maxWaitTime"` SelectorType string `json:"selectorType,omitempty"` Selector string `json:"selector,omitempty"` From 3f06d95a51a6bfefc8aefd3ae7aeb4a9fa701aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNitun?= Date: Tue, 17 Sep 2024 18:24:19 +0530 Subject: [PATCH 2/2] SYN-4427: Add omitempty field for MaxWaitTime --- syntheticsclientv2/common_models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntheticsclientv2/common_models.go b/syntheticsclientv2/common_models.go index 1b2ab14..12532fc 100644 --- a/syntheticsclientv2/common_models.go +++ b/syntheticsclientv2/common_models.go @@ -78,7 +78,7 @@ type StepsV2 struct { Action string `json:"action,omitempty"` WaitForNav bool `json:"waitForNav"` WaitForNavTimeout int `json:"waitForNavTimeout,omitempty"` - MaxWaitTime int `json:"maxWaitTime"` + MaxWaitTime int `json:"maxWaitTime,omitempty"` SelectorType string `json:"selectorType,omitempty"` Selector string `json:"selector,omitempty"` OptionSelectorType string `json:"optionSelectorType,omitempty"`