diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 18:49:12 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:52:53 +0100 |
commit | 46beb4b886761ff69abe2ce45c2498a4fafe50d9 (patch) | |
tree | 2722505d859d93a309e6fcee40af7812c74d1220 /identity/version.go | |
parent | 475b7b4c490bc3729772932f2d7bbcabb8f781a7 (diff) | |
download | git-bug-46beb4b886761ff69abe2ce45c2498a4fafe50d9.tar.gz |
identity: another round of cleanups
Diffstat (limited to 'identity/version.go')
-rw-r--r-- | identity/version.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/identity/version.go b/identity/version.go index 1259ae9c..95530767 100644 --- a/identity/version.go +++ b/identity/version.go @@ -51,11 +51,11 @@ type VersionJSON struct { Time lamport.Time `json:"time"` UnixTime int64 `json:"unix_time"` - Name string `json:"name"` - Email string `json:"email"` - Login string `json:"login"` - AvatarUrl string `json:"avatar_url"` - Keys []Key `json:"pub_keys"` + Name string `json:"name,omitempty"` + Email string `json:"email,omitempty"` + Login string `json:"login,omitempty"` + AvatarUrl string `json:"avatar_url,omitempty"` + Keys []Key `json:"pub_keys,omitempty"` Nonce []byte `json:"nonce,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` } |