-
Notifications
You must be signed in to change notification settings - Fork 179
Way to create swagger.json automatically #222
Comments
How is this project even working for you? Arent you on play 2.7 or newer? Thanks |
Yes, I am on play 2.7. Every time to create swagger documentation I call the endpoint. What I would like to achieve it to be created automatically, e.g. when I build or run the app. |
I'm one step behind you, when I do as it says and add this:
it looks for a jar on mavencentral that isn't here:
|
This is the one for me: |
That is labeled to support up to scala 2.12, but I'm on 2.13... |
I think I had that issue as well when I tried to switch the scala version to 2.13. Eventually I used scala 2.12.19 and following swagger dependency: |
Ah ok you downgraded the scala version. I'm a bit scared to do that just for this module to be honest. |
I want to do it at build time, I believe this would have to be some kind of SBT or Maven plugin. If you want to do it at startup, without calling the endpoint |
I published a plugin for this: https://github.com/dwickern/sbt-swagger-play |
Hello,
I am interested in a way to create a swagger.json automatically during the application start or build phase.
Currently, I manually do a call to GET /swagger.json endpoint which returns the generated JSON file.
Is there any way I can automate this procedure?
Thanks
The text was updated successfully, but these errors were encountered: