apache/apisix

bug: grpc-transcode cant transcode empty array list to [] , but it did to {}

已关闭

#11,440 创建于 2024年7月26日

 (13 条评论) (0 个反应) (1 位负责人)Lua (2,860 个派生)batch import
buggood first issue

仓库指标

星标
 (16,597 个星标)
PR 合并指标
 (平均合并 6天 8小时) (30 天内合并 109 个 PR)

描述

Current Behavior

when back to front server, grpc transcode plugin cant transcode empty list (array) to [] , but to {} . use grpc example demo : image

when list has content , it did well . image

Expected Behavior

response empty list expect to get [] . not {}

Error Logs

No response

Steps to Reproduce

  1. apisix 3.9 latest
  2. grpc server golang
  3. postman

Environment

  1. apisix 3.9 latest
  2. grpc server golang
  3. postman

贡献者指南