You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Go SDK registration panics on anonymous structs. #21789
Using register.Function (and presumable any other registration function) on an anonymous struct causes a panic immediately. This happens because anonymous types are unregisterable, but the problem is that with generic registration, types are registered from these function signatures, which means any functions with anonymous parameters can't be registered at all, and therefore any types that only appear in the function signature are in effect unregisterable.
The preference here would be for unregisterable parameters to simply be skipped, and for registration to fail gracefully. That is, register everything that can be registered and skip everything that can't (ideally with warnings explaining what isn't being registered).
Activity
Thanatos9404 commentedon Oct 18, 2026
.take-issue
[Go SDK] Fix generic registration of anonymous struct types
[Go SDK] Fix generic registration of anonymous struct types
[Go SDK] Fix generic registration of anonymous struct types (#40649)