juzhiyuan commented on issue #2924:
URL: https://github.com/apache/apisix/issues/2924#issuecomment-739139188


   Agree with @spacewander that APISIX, as a direct operator of etcd, should 
not do ambiguous things. Nil is different from empty arrays.
   
   Although Manager API also operates on APISIX, it is not APISIX, it's a 
bridge for frontend.
   
   Take remote_addrs as an example, just pass an empty array AND respond to an 
empty array is fine. The frontend wants to ensure that this field is ALWAYS an 
array no matter sending requests or getting response from API, not null or 
undefined, or the frontend has to do such hacks for every array like field.
   


----------------------------------------------------------------
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.

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


Reply via email to