Swagger: Rename API Key AddCommand (#78491)

As a global definition, `AddAPIKeyCommand` is clearer
This commit is contained in:
Julien Duchesne
2023-11-21 11:25:21 -05:00
committed by GitHub
parent 5b9097e7ff
commit 5acb981680
4 changed files with 8 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ type APIKey struct {
func (k APIKey) TableName() string { return "api_key" }
// swagger:model
// swagger:model AddAPIKeyCommand
type AddCommand struct {
Name string `json:"name" binding:"Required"`
Role org.RoleType `json:"role" binding:"Required"`