From 987dcd0fa7a7565b8ee62a6748d405e6c29cd330 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Thu, 4 Jul 2024 11:06:00 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 4 ++-- spec.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/models.gen.go b/models.gen.go index ce0563d..892a628 100644 --- a/models.gen.go +++ b/models.gen.go @@ -391,7 +391,7 @@ type AddonCreate struct { // DisplayName The addon's display name DisplayName string `json:"display_name"` Homepage *string `json:"homepage,omitempty"` - Logo string `json:"logo"` + Logo *string `json:"logo,omitempty"` // Name The unique name for the addon. Name AddonName `json:"name"` @@ -1321,7 +1321,7 @@ type PluginCreate struct { Kind PluginKind `json:"kind"` // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. - Logo string `json:"logo"` + Logo *string `json:"logo,omitempty"` // Name The unique name for the plugin. Name PluginName `json:"name"` diff --git a/spec.json b/spec.json index 524a448..93cc3e8 100644 --- a/spec.json +++ b/spec.json @@ -6561,7 +6561,7 @@ "type" : "integer" } }, - "required" : [ "category", "display_name", "kind", "logo", "name", "public", "short_description", "team_name" ] + "required" : [ "category", "display_name", "kind", "name", "public", "short_description", "team_name" ] }, "PluginReleaseStageUpdate" : { "description" : "Official plugins can go through three release stages: Coming Soon, Preview, and GA.\nThe Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready.\nBoth Preview and GA plugins follow semantic versioning. The main differences between the two stages are:\nPreview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage.", @@ -6604,7 +6604,7 @@ "logo" : { "description" : "URL to the plugin's logo. This will be shown in the CloudQuery Hub.", "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f9e8", - "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", + "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", "type" : "string" }, "public" : { @@ -7302,7 +7302,7 @@ "type" : "boolean" } }, - "required" : [ "addon_format", "addon_type", "category", "display_name", "logo", "name", "public", "short_description", "team_name", "tier" ], + "required" : [ "addon_format", "addon_type", "category", "display_name", "name", "public", "short_description", "team_name", "tier" ], "title" : "CloudQuery Addon" }, "AddonUpdate" : { @@ -7348,7 +7348,7 @@ }, "logo" : { "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", + "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", "type" : "string" }, "public" : {