This is a sbt plugin to generate a Swagger YAML/JSON file based on annotations.
-
./project/plugins.sbt
addSbtPlugin(com.github.y-yu" % "sbt-swagger-meta" % "0.2.0")
- if you want to use a SNAPSHOT version, you write following.
addSbtPlugin(com.github.y-yu" % "sbt-swagger-meta" % "0.2.1-SNAPSHOT")
- if you want to use a SNAPSHOT version, you write following.
-
build.sbt
enablePlugins(SbtSwaggerMeta)
See also ./example
and ./src/sbt-test
directories.