From fc0190d925a5f43942c51c5e519b8fce3b025610 Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Mon, 8 Nov 2021 08:12:06 -0800 Subject: [PATCH] Fix JSON struct tag for FileMeta (#172) This looks like it was typoed. --- data/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/types.go b/data/types.go index 700fa156..3083c119 100644 --- a/data/types.go +++ b/data/types.go @@ -149,8 +149,8 @@ func (r *Role) AddKeyIDs(ids []string) bool { type Files map[string]FileMeta type FileMeta struct { - Length int64 `json:"length",omitempty` - Hashes Hashes `json:"hashes",omitempty` + Length int64 `json:"length,omitempty"` + Hashes Hashes `json:"hashes,omitempty"` Custom *json.RawMessage `json:"custom,omitempty"` }