Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: make size and etag fields optional #326

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

eandre
Copy link
Contributor

@eandre eandre commented Dec 2, 2024

These fields are marked as omitempty in the Google Cloud Storage's
Go SDK. As a result, when an object with size == 0 is encoded using
the Go SDK's *storage.Object representation it cannot be parsed by
this crate.

Fix this by defaulting the size and etag fields to
zero/the empty string, respectively.

These fields are marked as `omitempty` in the Google Cloud Storage's
Go SDK. As a result, when an object with size == 0 is encoded using
the Go SDK's *storage.Object representation it cannot be parsed by
this crate.

Fix this by defaulting the size and etag fields to
zero/the empty string, respectively.
@yoshidan yoshidan added the safe to test safe to test label Dec 6, 2024
@yoshidan yoshidan merged commit d142e0c into yoshidan:main Dec 9, 2024
8 of 9 checks passed
@yoshidan
Copy link
Owner

yoshidan commented Dec 9, 2024

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants