go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

feature-4024: support array field for request dto

Open shyandsy opened this issue 1 year ago • 1 comments
trafficstars

fixed the array parsing issue, and made more test case for this

solution

  1. GetFormValues always return array even if there is single value for keys
  2. in the unmarshall process, if we found the correspond field is not array, then we just pick up the first element of the slice

shyandsy avatar Apr 09 '24 01:04 shyandsy

Don't fix it like this. It breaks the type matching check.

kevwan avatar Apr 09 '24 09:04 kevwan