From cb68d0f124c0aecfa183a81f17aa58544a85bbee Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 8 Sep 2026 10:09:32 +0000 Subject: [PATCH] Generate observability --- services/observability/oas_commit | 2 +- .../v1api/model_create_cert_check_400_response.go | 9 ++------- .../model_create_elasticsearch_check_400_response.go | 9 ++------- .../v1api/model_create_http_check_400_response.go | 9 ++------- .../v1api/model_create_mongodb_check_400_response.go | 9 ++------- .../v1api/model_create_mysql_check_400_response.go | 9 ++------- .../v1api/model_create_network_check_400_response.go | 9 ++------- .../v1api/model_create_ping_check_400_response.go | 9 ++------- .../v1api/model_create_postgresql_check_400_response.go | 9 ++------- .../v1api/model_create_rabbitmq_check_400_response.go | 9 ++------- .../v1api/model_create_redis_check_400_response.go | 9 ++------- 11 files changed, 21 insertions(+), 71 deletions(-) diff --git a/services/observability/oas_commit b/services/observability/oas_commit index e05d493f3..84fb2776f 100644 --- a/services/observability/oas_commit +++ b/services/observability/oas_commit @@ -1 +1 @@ -da4701b7dbe20e984aef89711bb9ba716e19fcba +3fc1363ce4ead752c576a30ee9cf0e1b5836ae35 diff --git a/services/observability/v1api/model_create_cert_check_400_response.go b/services/observability/v1api/model_create_cert_check_400_response.go index a66e1e019..eaae5c417 100644 --- a/services/observability/v1api/model_create_cert_check_400_response.go +++ b/services/observability/v1api/model_create_cert_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateCertCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") } } diff --git a/services/observability/v1api/model_create_elasticsearch_check_400_response.go b/services/observability/v1api/model_create_elasticsearch_check_400_response.go index 1d9854975..5ffc76d3e 100644 --- a/services/observability/v1api/model_create_elasticsearch_check_400_response.go +++ b/services/observability/v1api/model_create_elasticsearch_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateElasticsearchCheck400Response) UnmarshalJSON(data []byte) error } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") } } diff --git a/services/observability/v1api/model_create_http_check_400_response.go b/services/observability/v1api/model_create_http_check_400_response.go index e693cfd30..d38f7247b 100644 --- a/services/observability/v1api/model_create_http_check_400_response.go +++ b/services/observability/v1api/model_create_http_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateHttpCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") } } diff --git a/services/observability/v1api/model_create_mongodb_check_400_response.go b/services/observability/v1api/model_create_mongodb_check_400_response.go index adfcf2614..b93b64f4a 100644 --- a/services/observability/v1api/model_create_mongodb_check_400_response.go +++ b/services/observability/v1api/model_create_mongodb_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateMongodbCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") } } diff --git a/services/observability/v1api/model_create_mysql_check_400_response.go b/services/observability/v1api/model_create_mysql_check_400_response.go index b56dc6cd9..b4300bb67 100644 --- a/services/observability/v1api/model_create_mysql_check_400_response.go +++ b/services/observability/v1api/model_create_mysql_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateMysqlCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") } } diff --git a/services/observability/v1api/model_create_network_check_400_response.go b/services/observability/v1api/model_create_network_check_400_response.go index 58a4af95e..1cb47f295 100644 --- a/services/observability/v1api/model_create_network_check_400_response.go +++ b/services/observability/v1api/model_create_network_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateNetworkCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") } } diff --git a/services/observability/v1api/model_create_ping_check_400_response.go b/services/observability/v1api/model_create_ping_check_400_response.go index ec803c809..f7c5fcfe6 100644 --- a/services/observability/v1api/model_create_ping_check_400_response.go +++ b/services/observability/v1api/model_create_ping_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreatePingCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") } } diff --git a/services/observability/v1api/model_create_postgresql_check_400_response.go b/services/observability/v1api/model_create_postgresql_check_400_response.go index 38a33da32..bae2e2230 100644 --- a/services/observability/v1api/model_create_postgresql_check_400_response.go +++ b/services/observability/v1api/model_create_postgresql_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreatePostgresqlCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") } } diff --git a/services/observability/v1api/model_create_rabbitmq_check_400_response.go b/services/observability/v1api/model_create_rabbitmq_check_400_response.go index c1d94eb2a..15a137cc0 100644 --- a/services/observability/v1api/model_create_rabbitmq_check_400_response.go +++ b/services/observability/v1api/model_create_rabbitmq_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateRabbitmqCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") } } diff --git a/services/observability/v1api/model_create_redis_check_400_response.go b/services/observability/v1api/model_create_redis_check_400_response.go index 30104e427..68339831c 100644 --- a/services/observability/v1api/model_create_redis_check_400_response.go +++ b/services/observability/v1api/model_create_redis_check_400_response.go @@ -77,14 +77,9 @@ func (dst *CreateRedisCheck400Response) UnmarshalJSON(data []byte) error { } else { // no match if err != nil { return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") - } - if err != nil { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response): %v", err) - } else { - return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") } + + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") } }