POST /item/:itemId/editComplete @controllers.ItemsController.editComplete(itemId:Long)
case class EditViewModel(isSelected: Boolean, description: String, title: Option[String])
implicit val editViewModelFormat = Json.format[EditViewModel]
def editComplete(itemId: Long) = Authenticated(parse.json[EditViewModel]) { implicit request =>
[error] .../conf/routes:98: type mismatch;
[error] found : play.api.mvc.Action[_48335.type(in value $anonfun)#EditViewModel] where type _48335.type(in value $anonfun) <: controllers.ItemsController with Singleton
[error] required: play.api.mvc.Action[_48335.type(in lazy value controllers_ItemsController_editComplete62_invoker)#EditViewModel]
[error] POST /item/:itemId/editComplete @controllers.ItemsController.editComplete(itemId:Long)
[warn] .../conf/routes:98: inferred existential type play.core.Router.HandlerInvoker[play.api.mvc.Action[_48335.EditViewModel]] forSome { val _48335: controllers.ItemsController }, which cannot be expressed by wildcards, should be enabled
[warn] by making the implicit value scala.language.existentials visible.
[warn] This can be achieved by adding the import clause 'import scala.language.existentials'
[warn] or by setting the compiler option -language:existentials.
[warn] See the Scala docs for value scala.language.existentials for a discussion
[warn] why the feature should be explicitly enabled.
[warn] POST /item/:itemId/editComplete @controllers.ItemsController.editComplete(itemId:Long)
[warn] one warning found