swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Recursive route paths are parsed incorrectly. #112

Open rodionLev opened 7 years ago

rodionLev commented 7 years ago

versions: playframework 2.5.9 swagger-play2 1.5.3

Please check following sample.

File ‘admin.module.routes’ imports routes: ... -> /admin admin.Routes ... File ‘admin.routes’ contains path: ... GET /attributes admin.controllers.AttributesController.list() ... This path will be parsed in different ways by different plugin versions:

/admin/attributes - in version 1.5.2 /adminattributes - in version 1.5.3 (slash is missed) Second path is incorrect and can’t be reached in application.