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 2020/12/03 05:03:25 UTC

[GitHub] [apisix] liuxiran commented on issue #2924: [Proposal] Support both empty array and field-omitted for fields like remote_addrs

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


   May I ask  in what scenario we're going to distinguish between [] and nil?  @spacewander 
   
   From the FE point of view, which is closer to the meaning of data expression than to semantics at the code level,  both the field empty and nil all indicate that the field is not configured, so we would suggest that treate the two types of data equally.
   
   Data transformation between user data and underlying data is inevitable, It's best that these two data are the same, if there is a disagreement, we may need an agreement to deal with it.
   
   


----------------------------------------------------------------
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:
users@infra.apache.org