Skip to content

Commit 497283f

Browse files
committed
Suppress fields in response.
1 parent d11bd55 commit 497283f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/lfs/shared.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ type BatchResponse struct {
4545
// ObjectResponse is object metadata as seen by clients of the LFS server.
4646
type ObjectResponse struct {
4747
Pointer
48-
Actions map[string]*Link `json:"actions"`
48+
Actions map[string]*Link `json:"actions,omitempty"`
4949
Error *ObjectError `json:"error,omitempty"`
5050
}
5151

5252
// Link provides a structure used to build a hypermedia representation of an HTTP link.
5353
type Link struct {
5454
Href string `json:"href"`
5555
Header map[string]string `json:"header,omitempty"`
56-
ExpiresAt time.Time `json:"expires_at,omitempty"`
56+
ExpiresAt *time.Time `json:"expires_at,omitempty"`
5757
}
5858

5959
// ObjectError defines the JSON structure returned to the client in case of an error

0 commit comments

Comments
 (0)