From 24adbb03ee6e6324bde6ffcc0b203e5f3da57fbb Mon Sep 17 00:00:00 2001 From: Vlad Temian Date: Tue, 28 Nov 2017 16:53:25 +0200 Subject: [PATCH] Add fingerprint to ssh key endpoints. (#82) --- gitea/user_key.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gitea/user_key.go b/gitea/user_key.go index 419c0a5..4488c03 100644 --- a/gitea/user_key.go +++ b/gitea/user_key.go @@ -13,10 +13,11 @@ import ( // PublicKey publickey is a user key to push code to repository type PublicKey struct { - ID int64 `json:"id"` - Key string `json:"key"` - URL string `json:"url,omitempty"` - Title string `json:"title,omitempty"` + ID int64 `json:"id"` + Key string `json:"key"` + URL string `json:"url,omitempty"` + Title string `json:"title,omitempty"` + Fingerprint string `json:"fingerprint,omitempty"` // swagger:strfmt date-time Created time.Time `json:"created_at,omitempty"` }