This project is based on sbt-swagger-codegen by UniCredit S.p.A., but provides more complete Swagger 2.0 specification support.
Like the official swagger-codegen this project aims to generate Scala source code from Swagger 2.0 specification compliant API descriptions.
Moreover, you can do it directly within an sbt
project.
This code generator is designed specifically for Swagger 2.0 specification. Moreover, it relies on Play! Framework for Json marshalling/unmarshalling, server- and client-side code.
Plugin version | Play 2.3.x | Play 2.4.x | Play 2.5.x | Play 2.6.x | Play 2.7.x |
---|---|---|---|---|---|
0.1.x | ✔ | ✔ | ✔ | ✔ | ✘ |
0.2.x | ✘ | ✔ | ✔ | ✔ | ✔ * |
*) Experimental support.
Enable it inside your project\plugins.sbt
like this:
addSbtPlugin("com.github.romastyi" % "sbt-play-boilerplate" % "latest version in badge")
Enable it in your build.sbt
like this:
enablePlugins(PlayBoilerplatePlugin)
For a super fast hands-on tutorial refer to the related examples and check out sbt-play-boilerplate-examples.
Original sbt-swagger-codegen project authors:
- Andrea Peruffo: https://github.com/andreaTP
- Francesco Montecuccoli Degli Erri https://github.com/fralken
- Marco Firrincieli: https://github.com/mfirry
This project:
- Puchka Roman: https://github.com/romastyi