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

Additional bucket response attributes #1593

Merged

Conversation

manuteleco
Copy link
Contributor

Include these attributes in the JSON response for buckets:

  • projectNumber
  • metageneration
  • etag
  • locationType

Some client libraries expect them to be present, and fail to deserialize the response otherwise.

We don't care too much about their values at this stage, so we just picked valid and reasonable constants.

Include these attributes in the JSON response for buckets:

* `projectNumber`
* `metageneration`
* `etag`
* `locationType`

Some [client libraries][1] expect them to be present, and fail to
deserialize the response otherwise.

We don't care too much about their values at this stage, so we just
picked valid and reasonable constants.

[1]: https://crates.io/crates/google-cloud-storage
Copy link
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Same as #1594 on hard-coded values. Thanks for contributing!

@fsouza fsouza merged commit a282dad into fsouza:main May 7, 2024
27 checks passed
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.

None yet

2 participants