From 24141360176ea2d4b309a5cea0079f3c6ee0e9fd Mon Sep 17 00:00:00 2001 From: cq-bot Date: Mon, 2 Sep 2024 09:59:03 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 18 ------------------ spec.json | 3 --- 2 files changed, 21 deletions(-) diff --git a/models.gen.go b/models.gen.go index 28c7c7f..90c9329 100644 --- a/models.gen.go +++ b/models.gen.go @@ -2849,9 +2849,6 @@ type VerifyUserEmailRequest struct { // ReturnTo Return to this URL after verification ReturnTo *interface{} `json:"return_to,omitempty"` - // State Additional state to pass - State *interface{} `json:"state,omitempty"` - // Subdomain Subdomain to use in the URL Subdomain *interface{} `json:"subdomain,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` @@ -4888,14 +4885,6 @@ func (a *VerifyUserEmailRequest) UnmarshalJSON(b []byte) error { delete(object, "return_to") } - if raw, found := object["state"]; found { - err = json.Unmarshal(raw, &a.State) - if err != nil { - return fmt.Errorf("error reading 'state': %w", err) - } - delete(object, "state") - } - if raw, found := object["subdomain"]; found { err = json.Unmarshal(raw, &a.Subdomain) if err != nil { @@ -4935,13 +4924,6 @@ func (a VerifyUserEmailRequest) MarshalJSON() ([]byte, error) { } } - if a.State != nil { - object["state"], err = json.Marshal(a.State) - if err != nil { - return nil, fmt.Errorf("error marshaling 'state': %w", err) - } - } - if a.Subdomain != nil { object["subdomain"], err = json.Marshal(a.Subdomain) if err != nil { diff --git a/spec.json b/spec.json index 757c0e1..0124b6e 100644 --- a/spec.json +++ b/spec.json @@ -10609,9 +10609,6 @@ "description" : "Return to this URL after verification", "format" : "url" }, - "state" : { - "description" : "Additional state to pass" - }, "subdomain" : { "description" : "Subdomain to use in the URL" }