Merge pull request #5240 from MichaelEischer/better-json-docs

Improve JSON output type documentation
This commit is contained in:
Michael Eischer
2025-02-16 18:28:29 +01:00
committed by GitHub
3 changed files with 517 additions and 480 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.

File diff suppressed because it is too large Load Diff