I’m trying to define a route with an optional list as query parameter
GET /places controllers.Application.query(filter: Option[Seq[Int]])
but getting this error
conf/routes - PlayException: Compilation error [`)' expected but `]' found]
I know Play 2 handles Options well, and I want it to pass Seq to my custom QueryStringBindable, how to achieve this?
It seems like Play 2.0.2 routing parser doesn’t support nesting type parameters. I’ve found workaround, I’ve defined alias for
Seq[Int]:and used it instead of original type:
Now it works as expected.