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" },