You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to use Scalatra 2.3.1+ with Swagger according to what's currently in the docs, I get the following error:
[info] Compiling 3 Scala sources to /Users/dave/workspace/foss/scalatra-website-examples/2.3/swagger-example/target/scala-2.11/classes...
[error] /Users/dave/workspace/foss/scalatra-website-examples/2.3/swagger-example/src/main/scala/org/scalatra/example/swagger/FlowersController.scala:14: class FlowersController needs to be abstract, since method render in trait JsonMethods of type (value: org.json4s.JValue)(implicit formats: org.json4s.Formats)scala.text.Document is not defined
[error] class FlowersController(implicit val swagger: Swagger) extends ScalatraServlet with NativeJsonSupport with SwaggerSupport {
[error] ^
[error] /Users/dave/workspace/foss/scalatra-website-examples/2.3/swagger-example/src/main/scala/org/scalatra/example/swagger/FlowersSwagger.scala:7: class ResourcesApp needs to be abstract, since method render in trait JsonMethods of type (value: org.json4s.JValue)(implicit formats: org.json4s.Formats)scala.text.Document is not defined
[error] class ResourcesApp(implicit val swagger: Swagger) extends ScalatraServlet with NativeSwaggerBase
[error] ^
[error] two errors found
@rossabaker@casualjim@seratch any idea what fixes these? I'd like to document the fix, currently all our Swagger docs will fail for anyone who generates a project and tries to follow the docs.
The text was updated successfully, but these errors were encountered:
Hi guys,
When I attempt to use Scalatra 2.3.1+ with Swagger according to what's currently in the docs, I get the following error:
@rossabaker @casualjim @seratch any idea what fixes these? I'd like to document the fix, currently all our Swagger docs will fail for anyone who generates a project and tries to follow the docs.
The text was updated successfully, but these errors were encountered: