这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pjcdawkins
Copy link
Contributor

This also removes unnecessary YAML tags from the digest

This also removes unnecessary YAML tags from the digest
@pjcdawkins pjcdawkins requested a review from Copilot September 27, 2025 10:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the JSON serialization format for file data structures by converting field names to lowercase and removing YAML serialization tags from the digest structure.

  • Updates FileData struct to include JSON tags with lowercase field names
  • Removes unnecessary YAML serialization tags from the Digest struct
  • Adds omitempty tags for optional boolean and size fields

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/digest/files.go Adds JSON tags with lowercase names and omitempty options to FileData struct fields
pkg/digest/digest.go Removes YAML tags from Digest struct, keeping only JSON serialization

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.

2 participants