Add GroupMinimum to the SetupKey response

This commit is contained in:
braginini
2022-09-12 14:30:46 +02:00
parent be7d829858
commit 03d0f62ccd
5 changed files with 38 additions and 10 deletions

View File

@@ -138,7 +138,7 @@ components:
description: Setup key groups to auto-assign to peers registered with this key
type: array
items:
type: string
$ref: '#/components/schemas/GroupMinimum'
updated_at:
description: Setup key last update date
type: string

View File

@@ -300,7 +300,7 @@ type RulePatchOperationPath string
// SetupKey defines model for SetupKey.
type SetupKey struct {
// Setup key groups to auto-assign to peers registered with this key
AutoGroups []string `json:"auto_groups"`
AutoGroups []GroupMinimum `json:"auto_groups"`
// Setup Key expiration date
Expires time.Time `json:"expires"`