mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 14:15:49 +03:00
[PR #1592] [MERGED] Don't omit versioning.enabled in bucket response #1637
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1637
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/1592
Author: @manuteleco
Created: 5/4/2024
Status: ✅ Merged
Merged: 5/4/2024
Merged by: @fsouza
Base:
main← Head:dont_omit_false_values_in_versioning_enabled📝 Commits (1)
99eba7aDon't omitversioning.enabledin bucket response📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
fakestorage/response.go(+1 -1)📄 Description
In Go's
jsonpackage,falsequalifies as empty value for the purposes of marshalling (seeMarshaldocs).In the bucket JSON response, the
versioning.enabledattribute should still be present even when it isfalse. If omitted, some client libraries fail to deserialize the response.This commit changes the marshalling of
versioningfrom:to:
I didn't bother writing a test for this, as it felt overkill, but let me know if you disagree.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.