From 75fe815a0062fa103c6e1a7c307d64b6cf5862f1 Mon Sep 17 00:00:00 2001 From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:31:36 -0400 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` (#243) This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json` --- models.gen.go | 4 ++-- spec.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models.gen.go b/models.gen.go index 9ab1792..3f9c47e 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1313,7 +1313,7 @@ type MembershipWithTeam struct { Role string `json:"role"` // Team CloudQuery Team - Team *Team `json:"team,omitempty"` + Team Team `json:"team"` } // MembershipWithUser defines model for MembershipWithUser. @@ -1321,7 +1321,7 @@ type MembershipWithUser struct { Role string `json:"role"` // User CloudQuery User - User *User `json:"user,omitempty"` + User User `json:"user"` } // Plugin CloudQuery Plugin diff --git a/spec.json b/spec.json index 719f897..f74c942 100644 --- a/spec.json +++ b/spec.json @@ -8367,7 +8367,7 @@ "$ref" : "#/components/schemas/User" } }, - "required" : [ "role" ], + "required" : [ "role", "user" ], "title" : "CloudQuery User Membership" }, "SpendingLimit" : { @@ -8731,7 +8731,7 @@ "$ref" : "#/components/schemas/Team" } }, - "required" : [ "role" ], + "required" : [ "role", "team" ], "title" : "CloudQuery Team Membership" }, "TeamSubscriptionOrderID" : {