Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding array or list parameters by @RequestParam #16

Closed
alalag1 opened this issue Dec 16, 2020 · 0 comments · Fixed by #19
Closed

Binding array or list parameters by @RequestParam #16

alalag1 opened this issue Dec 16, 2020 · 0 comments · Fixed by #19
Labels
enhancement enhance the existing features
Milestone

Comments

@alalag1
Copy link
Member

alalag1 commented Dec 16, 2020

Expected behavior

@GetMapping("/foo")
public void test(@RequestParam String[] bar) {
}

the bar could be bound as String[] {"a", "b", "c"} in request whoes uri is /foo?bar=a&bar=b&bar=c

Actual behavior

the bar is bound as String[] {"a"}

Env

  • Restlight version: 0.1.0-SNAPSHOT
  • JVM version: 1.8
  • OS: windows
@alalag1 alalag1 added the enhancement enhance the existing features label Dec 16, 2020
@alalag1 alalag1 added this to the v0.0.1 milestone Dec 16, 2020
@alalag1 alalag1 linked a pull request Dec 17, 2020 that will close this issue
alalag1 added a commit that referenced this issue Dec 18, 2020
@alalag1 alalag1 linked a pull request May 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance the existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant