From a017bc6b810fcb01558736cd742f180dce342e49 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 15:45:34 +0000 Subject: [PATCH] fix: fix issue with unmarshaling in some cases --- realtime/call.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/realtime/call.go b/realtime/call.go index 8d64cc7..e261509 100644 --- a/realtime/call.go +++ b/realtime/call.go @@ -4,7 +4,6 @@ package realtime import ( "context" - "encoding/json" "errors" "fmt" "net/http" @@ -99,7 +98,7 @@ func (r CallAcceptParams) MarshalJSON() (data []byte, err error) { return shimjson.Marshal(r.RealtimeSessionCreateRequest) } func (r *CallAcceptParams) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &r.RealtimeSessionCreateRequest) + return apijson.UnmarshalRoot(data, r) } type CallReferParams struct {