last_used can be nil

This commit is contained in:
Pascal Fischer
2023-03-29 17:46:09 +02:00
parent 0ca3d27a80
commit 3bab745142
4 changed files with 8 additions and 4 deletions
-1
View File
@@ -316,7 +316,6 @@ components:
- expiration_date
- created_by
- created_at
- last_used
PersonalAccessTokenGenerated:
type: object
properties:
+1 -1
View File
@@ -394,7 +394,7 @@ type PersonalAccessToken struct {
Id string `json:"id"`
// LastUsed Date the token was last used
LastUsed time.Time `json:"last_used"`
LastUsed *time.Time `json:"last_used,omitempty"`
// Name Name of the token
Name string `json:"name"`