[PR #1593] [MERGED] Additional bucket response attributes #1638

Closed
opened 2026-03-03 12:35:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/1593
Author: @manuteleco
Created: 5/5/2024
Status: Merged
Merged: 5/7/2024
Merged by: @fsouza

Base: mainHead: additional_bucket_response_attributes


📝 Commits (1)

  • b12da28 Additional bucket response attributes

📊 Changes

2 files changed (+20 additions, -0 deletions)

View changed files

📝 fakestorage/bucket_test.go (+12 -0)
📝 fakestorage/response.go (+8 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/1593 **Author:** [@manuteleco](https://github.com/manuteleco) **Created:** 5/5/2024 **Status:** ✅ Merged **Merged:** 5/7/2024 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `additional_bucket_response_attributes` --- ### 📝 Commits (1) - [`b12da28`](https://github.com/fsouza/fake-gcs-server/commit/b12da28d64b4847cbbce3f1285dfd35ff46d116e) Additional bucket response attributes ### 📊 Changes **2 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/bucket_test.go` (+12 -0) 📝 `fakestorage/response.go` (+8 -0) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:35:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#1638
No description provided.