go-zero
go-zero copied to clipboard
feature-4024: support array field for request dto
trafficstars
fixed the array parsing issue, and made more test case for this
solution
- GetFormValues always return array even if there is single value for keys
- in the unmarshall process, if we found the correspond field is not array, then we just pick up the first element of the slice
Don't fix it like this. It breaks the type matching check.