Skip to content

Commit

Permalink
bus: hide etag and mimetype if empty (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan authored Oct 3, 2023
1 parent cffc39a commit 04dd79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ type Object struct {

// ObjectMetadata contains various metadata about an object.
type ObjectMetadata struct {
ETag string `json:"eTag"`
ETag string `json:"eTag,omitempty"`
Health float64 `json:"health"`
MimeType string `json:"mimeType"`
MimeType string `json:"mimeType,omitempty"`
ModTime time.Time `json:"modTime"`
Name string `json:"name"`
Size int64 `json:"size"`
Expand Down

0 comments on commit 04dd79a

Please sign in to comment.