doc: deprecate short_id and add some missing fields

This commit is contained in:
Michael Eischer
2025-02-06 20:53:01 +01:00
parent 421842f41f
commit 39823c5f6c
3 changed files with 113 additions and 99 deletions

View File

@@ -100,7 +100,7 @@ func (p *jsonLsPrinter) Snapshot(sn *restic.Snapshot) error {
type lsSnapshot struct {
*restic.Snapshot
ID *restic.ID `json:"id"`
ShortID string `json:"short_id"`
ShortID string `json:"short_id"` // deprecated
MessageType string `json:"message_type"` // "snapshot"
StructType string `json:"struct_type"` // "snapshot", deprecated
}

View File

@@ -324,7 +324,7 @@ type Snapshot struct {
*restic.Snapshot
ID *restic.ID `json:"id"`
ShortID string `json:"short_id"`
ShortID string `json:"short_id"` // deprecated
}
// SnapshotGroup helps to print SnapshotGroups as JSON with their GroupReasons included.