I am implementing a Controller with a GET endpoint that is ought to receive the following request: /mycontroller?myDate=2019-05-01
My data class looks like this
data class MyData(
   val myDate: LocalDate
)
And my controller:
@Controller
class MyController {
  @Get("{?mydata*}")
  fun getMyEndpoint(mydata: MyData)...
}
Micronaut only binds the request in case I provide a default constructor for MyData, thus make myDate nullable or provide a default value - neither of those is what I wish to do.
Is there a way to get this working without providing the default constructor? Jackson e.g. can also handle it.
Thanks :)
 
    