Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Request params Optional<List<String> and List<String> are inconsistent [SPR-15676] #20235
When using List<String> as the request parameter, both key=val1,val2 and key=val1&key=val2 end up mapping to key = [val1, val2]
When using Optional<List<String>> as the request parameter
This makes RequestParam(..., required = false) List<String> behave differently from RequestParam(...) Optional<List<String>>, which seems unfortunate.
Backported to: 4.3.12
1 votes, 3 watchers