Route rule with optional package name for controllers (Play2.7)
sfelix77 opened this issue · 1 comments
sfelix77 commented
In the file SwaggerPlugin.scala (line 139), the rule doesn't match the good name because the package name is optional. I try to fix that with the following line :
val routesRules = routes.map(route => s"${route.call.packageName.map(_+".").getOrElse("")}${route.call.controller}$$.${route.call.method}" -> route).toMap
ApiOperation doesn't work without a fix
notflorian commented