Skip to content

deepsense-ai/scalatra-swagger-codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.