Skip to content

fix(report): consistent field names across package report types#185

Merged
rocketman-code merged 1 commit intomainfrom
fix/issue-149
Mar 9, 2026
Merged

fix(report): consistent field names across package report types#185
rocketman-code merged 1 commit intomainfrom
fix/issue-149

Conversation

@rocketman-code
Copy link
Owner

Summary

  • Rename DiffPackageEntry.size -> total_size_bytes to match PackageEntry and PackageListEntry
  • Rename internal DiffPackage.size -> total_size_bytes for consistency
  • Add JSON field name test to prevent future drift

Test plan

  • New test validates JSON serialization uses total_size_bytes
  • cargo test --workspace passes (310 tests)
  • cargo clippy clean

Fixes #149

Aligns DiffPackageEntry field names with PackageEntry and
PackageListEntry conventions. All package-type report structs now
use total_size_bytes for the same semantic data.

Fixes #149
@rocketman-code rocketman-code merged commit 59deee7 into main Mar 9, 2026
8 checks passed
@rocketman-code rocketman-code deleted the fix/issue-149 branch March 9, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(report): PackageListEntry JSON field names inconsistent with PackageEntry

1 participant