Closed linde9821 closed 4 years ago
@linde9821 thanks for reporting the issue. Can you please test with 5.0.0-beta2
or the latest master to see if the issue still occurs?
hi thx for the reply. It seems to work 👍 e.g. the imports are generated
import de.hwrBerlin.lehre.effort.newsapi.generated.api._
import play.api.inject.{Binding, Module => PlayModule}
import play.api.{Configuration, Environment}
and the dependencies are there
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
I guess the issue can be closed. Thx for the support
But i suggest updating some dependencies. For instance "org.webjars" % "swagger-ui" % "3.1.5",
is used but "org.webjars" % "swagger-ui" % "3.32.5" is available. (There are more :D)
But i suggest updating some dependencies. For instance "org.webjars" % "swagger-ui" % "3.1.5", is used but "org.webjars" % "swagger-ui" % "3.32.5" is available. (There are more :D)
Nice suggestion. I wonder if you've time to file a PR updating those dependencies to the newer versions. https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/scala-play-server/build.sbt.mustache is a good starting point.
Would be glad to do so. But i dont have Permission to create a new branch and therefore a PR.
Bug Report Checklist
Description
I want to create a simple "news api" in scala-play where the server stub is generated with the openapi scala-play-server generator. The problem is that several issues occure when trying to compile the server. Here is a part of the stack trace:
The full stack trace can be found here
It seems like many imports are missing or not correct.
Iam running windows 10 with the AdoptOpenJDK version "11.0.8" and sbt with version 1.3.13
openapi-generator version
1.0.18-4.3.1
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Should occure when executing the given command in Generation Details for the provided OpenAPI file.