From 5e5e697b98479a4fe5309b29c0f7bb8c858d2bdd Mon Sep 17 00:00:00 2001 From: cq-bot Date: Mon, 23 Oct 2023 14:20:30 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 3 --- spec.json | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/models.gen.go b/models.gen.go index e7a5706..207acb7 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1099,9 +1099,6 @@ type ListTeamAPIKeysParams struct { type CreateTeamAPIKeyJSONBody struct { ExpiresAt time.Time `json:"expires_at"` Name string `json:"name"` - - // Scope Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins - Scope *APIKeyScope `json:"scope,omitempty"` } // ListTeamInvitationsParams defines parameters for ListTeamInvitations. diff --git a/spec.json b/spec.json index ffc88c5..5e5a01a 100644 --- a/spec.json +++ b/spec.json @@ -3232,7 +3232,7 @@ } }, "post": { - "description": "Create new team API Key. This is useful in CI", + "description": "Create new team API Key.", "operationId": "CreateTeamAPIKey", "tags": [ "teams" @@ -3249,20 +3249,17 @@ "type": "object", "required": [ "expires_at", - "role", "name" ], "properties": { "name": { "type": "string", + "minLength": 1, "maxLength": 255 }, "expires_at": { "type": "string", "format": "date-time" - }, - "scope": { - "$ref": "#/components/schemas/APIKeyScope" } } }