From 4e78403658786ecb3ee4efa4332d9d00e3127f9e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 18 Jan 2024 10:02:30 -0500 Subject: [PATCH] fix: need to update FileReference struct so that URI and Key are omitted if empty --- metadata/file_reference.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/file_reference.go b/metadata/file_reference.go index 49707ec..bacce59 100644 --- a/metadata/file_reference.go +++ b/metadata/file_reference.go @@ -32,8 +32,8 @@ type FileReference struct { Ext ExtMap `json:"ext"` History FileHistoryMap `json:"history"` MimeType string `json:"mimeType"` - URI string `json:"uri"` - Key string `json:"key"` + URI string `json:"uri,omitempty"` + Key string `json:"key,omitempty"` } func NewFileReference(name string, created, version uint64, file *FileVersion, ext ExtMap, history FileHistoryMap, mimeType string) *FileReference {