diff --git a/repo/format/content_format.go b/repo/format/content_format.go index cb0845fd9..a49e21fc2 100644 --- a/repo/format/content_format.go +++ b/repo/format/content_format.go @@ -63,10 +63,10 @@ func (f *ContentFormat) SupportsPasswordChange() bool { // MutableParameters represents parameters of the content manager that can be mutated after the repository // is created. type MutableParameters struct { - Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3" - MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object - IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..) - EpochParameters epoch.Parameters `json:"epochParameters,omitempty"` // epoch manager parameters + Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3" + MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object + IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..) + EpochParameters epoch.Parameters `json:"epochParameters"` // epoch manager parameters } // Validate validates the parameters. diff --git a/repo/format/upgrade_lock_intent.go b/repo/format/upgrade_lock_intent.go index 8b9e9fd9f..a65191ab9 100644 --- a/repo/format/upgrade_lock_intent.go +++ b/repo/format/upgrade_lock_intent.go @@ -13,7 +13,7 @@ // repository. type UpgradeLockIntent struct { OwnerID string `json:"ownerID,omitempty"` - CreationTime time.Time `json:"creationTime,omitempty"` + CreationTime time.Time `json:"creationTime"` AdvanceNoticeDuration time.Duration `json:"advanceNoticeDuration,omitempty"` IODrainTimeout time.Duration `json:"ioDrainTimeout,omitempty"` StatusPollInterval time.Duration `json:"statusPollInterval,omitempty"` diff --git a/repo/object/indirect.go b/repo/object/indirect.go index 252e6c181..48e499ab7 100644 --- a/repo/object/indirect.go +++ b/repo/object/indirect.go @@ -4,7 +4,7 @@ type IndirectObjectEntry struct { Start int64 `json:"s,omitempty"` Length int64 `json:"l,omitempty"` - Object ID `json:"o,omitempty"` + Object ID `json:"o"` } func (i *IndirectObjectEntry) endOffset() int64 { diff --git a/snapshot/manifest.go b/snapshot/manifest.go index 7352314fc..87228ecd4 100644 --- a/snapshot/manifest.go +++ b/snapshot/manifest.go @@ -126,7 +126,7 @@ type DirEntry struct { ModTime fs.UTCTimestamp `json:"mtime,omitempty"` UserID uint32 `json:"uid,omitempty"` GroupID uint32 `json:"gid,omitempty"` - ObjectID object.ID `json:"obj,omitempty"` + ObjectID object.ID `json:"obj"` DirSummary *fs.DirectorySummary `json:"summ,omitempty"` } @@ -187,8 +187,8 @@ func (m *Manifest) Clone() *Manifest { type StorageStats struct { // amount of new unique data in this snapshot that wasn't there before. // note that this depends on ordering of snapshots. - NewData StorageUsageDetails `json:"newData,omitempty"` - RunningTotal StorageUsageDetails `json:"runningTotal,omitempty"` + NewData StorageUsageDetails `json:"newData"` + RunningTotal StorageUsageDetails `json:"runningTotal"` } // StorageUsageDetails provides details about snapshot storage usage.