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
commit 5190933561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 { type lsSnapshot struct {
*restic.Snapshot *restic.Snapshot
ID *restic.ID `json:"id"` ID *restic.ID `json:"id"`
ShortID string `json:"short_id"` ShortID string `json:"short_id"` // deprecated
MessageType string `json:"message_type"` // "snapshot" MessageType string `json:"message_type"` // "snapshot"
StructType string `json:"struct_type"` // "snapshot", deprecated StructType string `json:"struct_type"` // "snapshot", deprecated
} }

View File

@ -324,7 +324,7 @@ type Snapshot struct {
*restic.Snapshot *restic.Snapshot
ID *restic.ID `json:"id"` 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. // SnapshotGroup helps to print SnapshotGroups as JSON with their GroupReasons included.

File diff suppressed because it is too large Load Diff