You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/01 02:04:58 UTC

[GitHub] [apisix-ingress-controller] cmssczy commented on pull request #888: fix json unmarshal error when list plguins

cmssczy commented on pull request #888:
URL: https://github.com/apache/apisix-ingress-controller/pull/888#issuecomment-1054905133


   > could you give us an example about the response? Fair to say, I didn't realize the difference.
   
   @tokers 
   The response body json format is like:
   ```json
   {
   	"serverless-pre-function": {
   		"version": 0.1,
   		"priority": 10000
   	},
   	"echo": {
   		"version": 0.1,
   		"priority": 412
   	}
   }
   ```
   It is a json struct with unknown field names but not a string slice. So I think we should use a `map` instead of `slice`.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org