Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 512 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 512 Bytes

scalatra-swagger-codegen

Forked scalatra swagger codegen. Patched for our needs and remade into SBT plugin.

In order to use it in your project add following lines to you plugins.sbt file:

addSbtPlugin("ai.deepsense" %% "scalatra-swagger-codegen" % "1.23")

and in your module sbt file:

enablePlugins(ScalatraSwaggerCodegenPlugin)
 
swaggerSpecPath := "path/to/swagger.json"
generatedCodePackage := "your.package.name"

It will generate relevant source code in your managed sources directory.