swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Swagger 2.0/Play 2.4 does not support routes file with different names #32

Closed josephearl closed 8 years ago

josephearl commented 8 years ago

In Play if you want to use a module in an another Play module, you must namespace your routes file to e.g. common.routes and your application.conf to e.g. common.application.conf.

However Swagger Play assumes the routes file is called "routes" - this results in a NullPointerException.

To fix this Swagger Play should check the play.http.router from the application conf.