Copilot commented on code in PR #1054:
URL: https://github.com/apache/dubbo-go-pixiu/pull/1054#discussion_r4434457817


##########
pkg/filter/http/remote/dubbo_handler.go:
##########
@@ -109,13 +111,18 @@ func (h *DubboHandler) newState(req *http.Request, api 
router.API) (*outboundBui
        }
 
        ir := api.IntegrationRequest
+       generic, err := clientdubbo.NormalizeGenericMode(ir.Generic)
+       if err != nil {
+               return nil, err
+       }

Review Comment:
   For object-valued mappings in `gson` and `protobuf-json`, the body has 
already been decoded as `float64` before the mode is resolved, so later 
re-encoding turns `{"values":{"id":9007199254740993}}` into 
`{"id":9007199254740992}`. Resolve the mode before decoding and preserve 
numeric tokens for JSON-text requests without changing map-mode decoding; add a 
large-integer regression test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to