diff --git a/internal/gerrit/change.go b/internal/gerrit/change.go
index acbc235..6cc3b6c 100644
--- a/internal/gerrit/change.go
+++ b/internal/gerrit/change.go
@@ -283,8 +283,8 @@
// lengthy AccountInfo data each time.
type approvalInfo struct {
Value int `json:"value,omitempty"`
- PermittedVotingRange VotingRangeInfo `json:"permitted_voting_range,omitempty"`
- Date TimeStamp `json:"date,omitempty"`
+ PermittedVotingRange VotingRangeInfo `json:"permitted_voting_range"`
+ Date TimeStamp `json:"date"`
Tag string `json:"tag,omitempty"`
PostSubmit bool `json:"post_submit,omitempty"`
}
diff --git a/internal/gerrit/types.go b/internal/gerrit/types.go
index e7daa5a..8f3952b 100644
--- a/internal/gerrit/types.go
+++ b/internal/gerrit/types.go
@@ -55,7 +55,7 @@
Updated TimeStamp `json:"updated"`
// The timestamp of when the change was submitted.
- Submitted TimeStamp `json:"submitted,omitempty"`
+ Submitted TimeStamp `json:"submitted"`
// The user who submitted the change.
Submitter *AccountInfo `json:"submitter,omitempty"`
@@ -354,9 +354,9 @@
// label. If present, the user is permitted to vote on the
// label regarding the range values. If absent, the user is
// not permitted to vote on that label.
- PermittedVotingRange VotingRangeInfo `json:"permitted_voting_range,omitempty"`
+ PermittedVotingRange VotingRangeInfo `json:"permitted_voting_range"`
// The time and date describing when the approval was made.
- Date TimeStamp `json:"date,omitempty"`
+ Date TimeStamp `json:"date"`
// Value of the tag field from ReviewInput set while posting
// the review. Votes/comments that contain tag with
// 'autogenerated:' prefix can be filtered out in the web UI.