Open
Description
Expected Behavior
I have the following endpoint in my controller:
@Controller
public class MyController {
@Get("/dates")
public MutableHttpResponse<?> echoQueryController(
@QueryValue(value = "date_array") @Format("yyyy-MM-dd") LocalDate[] dateArray
) {
System.out.println(dateArray.length);
return HttpResponse.status(HttpStatus.BAD_REQUEST); // this is for testing only!!!
}
}
When calling this endpoint via HTTP GET to url: /dates?date_array=2022-01-01&date_array=2022-02-02
I would expect dateArray
to be an array of two dates correspondingly.
Actual Behaviour
The dateArray
is empty array, no warnings or errors provided. The code in controller prints 0
.
Steps To Reproduce
- No special environment is required - just bare minimum micronaut 3.3.3.
- Run the server with the above controller and try to GET
/dates?date_array=2022-01-01&date_array=2022-02-02
- Check console output
Environment Information
- Mac OS 12.2.1 and also Ubuntu 18.04.6
- JDK 15
Example Application
No response
Version
3.3.3