From 0a65a2998581dc07062e4ebef03709cb7f1da480 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Fri, 23 Aug 2024 12:40:02 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 7 +++++-- spec.json | 7 ++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/models.gen.go b/models.gen.go index 6de30a2..625e023 100644 --- a/models.gen.go +++ b/models.gen.go @@ -2786,8 +2786,11 @@ type User struct { ID openapi_types.UUID `json:"id"` // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Name *UserName `json:"name,omitempty"` + + // ProfileImageURL Profile image URL of user + ProfileImageURL *string `json:"profile_image_url,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // UserID ID of the User diff --git a/spec.json b/spec.json index f861376..960aa46 100644 --- a/spec.json +++ b/spec.json @@ -3597,7 +3597,7 @@ "description" : "Session cookie", "explode" : false, "schema" : { - "example" : "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=Strict; Path=/; Max-Age=3600", + "example" : "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600", "type" : "string" }, "style" : "simple" @@ -7966,6 +7966,11 @@ "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" + }, + "profile_image_url" : { + "description" : "Profile image URL of user", + "type" : "string", + "x-go-name" : "ProfileImageURL" } }, "required" : [ "email", "id" ],