swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Not supported for imported routes syntax in routes file. #81

Open hsupunw opened 8 years ago

hsupunw commented 8 years ago

In my conf/routes file I have an imported routes syntax like this.

-> / gulp.Routes

When I add this syntax and start the server. There is a swagger error thrown saying

"play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors:

1) Error injecting constructor, java.lang.IllegalArgumentException: URI is not hierarchical at play.modules.swagger.SwaggerPluginImpl.(SwaggerPlugin.scala:33) while locating play.modules.swagger.SwaggerPluginImpl at play.modules.swagger.SwaggerModule.bindings(SwaggerModule.scala:11): " etc.

I think the problem arise because swagger cannot parse the syntax for imported routes. Any one knows what is happening?