From 372c8f737c8be6959ea737ef0b8838d47935b88d Mon Sep 17 00:00:00 2001 From: "cloudquery-ci[bot]" <271027272+cloudquery-ci[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 16:31:03 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- client.gen.go | 8 ++++++++ spec.json | 3 +++ 2 files changed, 11 insertions(+) diff --git a/client.gen.go b/client.gen.go index adddef3..499972d 100644 --- a/client.gen.go +++ b/client.gen.go @@ -11768,6 +11768,7 @@ type RequestPlatformTenantMagicLinkResponse struct { JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON429 *TooManyRequests JSON500 *InternalError } @@ -18748,6 +18749,13 @@ func ParseRequestPlatformTenantMagicLinkResponse(rsp *http.Response) (*RequestPl } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { diff --git a/spec.json b/spec.json index 0102261..b55e97e 100644 --- a/spec.json +++ b/spec.json @@ -4344,6 +4344,9 @@ "404" : { "$ref" : "#/components/responses/NotFound" }, + "422" : { + "$ref" : "#/components/responses/UnprocessableEntity" + }, "429" : { "$ref" : "#/components/responses/TooManyRequests" },