Upgrading Akka HTTP to 10.2.0, I am getting compilation errors using default parameters. The following code using non-defaulted parameters compiles just fine:
import akka.http.scaladsl.server.Directive
import akka.http.scaladsl.server.Directives._
val page = 'page.as[Int] // <- NameReceptacle[Int]
val perPage = 'per_page.as[Int] // <- NameReceptacle[Int]
parameters(page, perPage) // <- Directive[(Int, Int)]
but adding default behavior fails with Cannot resolve overloaded method 'parameters'
val page = 'page.as[Int] ? 1 // <- NameDefaultReceptacle[Int]
val perPage = 'per_page.as[Int] ? 20 // <- NameDefaultReceptacle[Int]
parameters(page, perPage) // <- Cannot resolve overloaded method 'parameters'
Have I missed something in docs?