From fe2e21cb97c598bba5bb6401f1806c97b911c2b4 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Tue, 24 Sep 2024 11:05:51 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 5 ++--- spec.json | 9 +++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/models.gen.go b/models.gen.go index 5c64b44..9ab1792 100644 --- a/models.gen.go +++ b/models.gen.go @@ -65,7 +65,6 @@ const ( // Defines values for ContentType. const ( - ContentTypeImagegif ContentType = "image/gif" ContentTypeImagejpeg ContentType = "image/jpeg" ContentTypeImagepng ContentType = "image/png" ContentTypeImagewebp ContentType = "image/webp" @@ -2626,7 +2625,7 @@ type TeamImageCreate struct { Checksum string `json:"checksum"` // ContentType The HTTP Content-Type of the image or asset - ContentType *ContentType `json:"content_type,omitempty"` + ContentType ContentType `json:"content_type"` // Name Name of image Name string `json:"name"` @@ -2723,7 +2722,7 @@ type UpdateTeamRequest struct { // UploadImageRequest defines model for UploadImage_request. type UploadImageRequest struct { // ContentType The HTTP Content-Type of the image or asset - ContentType *ContentType `json:"content_type,omitempty"` + ContentType ContentType `json:"content_type"` } // UploadPluginUIAssets201Response defines model for UploadPluginUIAssets_201_response. diff --git a/spec.json b/spec.json index a8d26a9..719f897 100644 --- a/spec.json +++ b/spec.json @@ -121,7 +121,7 @@ } } }, - "required" : false + "required" : true }, "responses" : { "200" : { @@ -6855,7 +6855,7 @@ }, "ContentType" : { "description" : "The HTTP Content-Type of the image or asset", - "enum" : [ "image/jpeg", "image/png", "image/gif", "image/webp" ], + "enum" : [ "image/jpeg", "image/png", "image/webp" ], "example" : "image/png", "type" : "string" }, @@ -8192,7 +8192,7 @@ "$ref" : "#/components/schemas/ContentType" } }, - "required" : [ "checksum", "name" ], + "required" : [ "checksum", "content_type", "name" ], "title" : "Create Team Image Request" }, "TeamImage" : { @@ -10141,7 +10141,8 @@ "content_type" : { "$ref" : "#/components/schemas/ContentType" } - } + }, + "required" : [ "content_type" ] }, "ListPluginNotificationRequests_200_response" : { "properties" : {