mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #642] [MERGED] fix(asc): encode empty relationship list as [] #676
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#676
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/rudrankriyam/App-Store-Connect-CLI/pull/642
Author: @rudrankriyam
Created: 2/18/2026
Status: ✅ Merged
Merged: 2/18/2026
Merged by: @rudrankriyam
Base:
main← Head:fix/relationship-request-empty-array📝 Commits (1)
adbcc59fix(asc): encode empty relationship list as []📊 Changes
3 files changed (+51 additions, -1 deletions)
View changed files
📝
internal/asc/client_http_issue_616_game_center_detail_group_relationships_test.go(+14 -0)📝
internal/asc/types/resources.go(+13 -0)📝
internal/asc/types/resources_test.go(+24 -1)📄 Description
What
dataas an array ([]) instead ofnull.RelationshipRequestmarshaling.Why
Go encodes nil slices as
null, but JSON:API relationship lists usedata: []to represent an empty set. Sendingdata: nullcan make relationship replace requests behave unexpectedly (especially when attempting to clear a relationship).Test Plan
make formatmake lintASC_BYPASS_KEYCHAIN=1 make test🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.