Skip to content

MelaHub/sbt-guardrail

 
 

Repository files navigation

sbt-guardrail

An SBT 1.x+ plugin for adding clients and servers generated by guardrail to your service.

Installation

project/plugins.sbt

resolvers += Resolver.bintrayRepo("twilio", "releases")
addSbtPlugin("com.twilio" % "sbt-guardrail" % "0.34.0")

build.sbt

/* Available arguments:
    specPath: java.io.File
    pkg: String
    dto: String
    framework: String
    tracing: Boolean
*/
guardrailTasks in Compile := List(
  Client(file("petstore.yaml")),
  Client(file("github.yaml"), pkg="com.example.clients.github")
  Server(file("myserver.yaml"), pkg="com.example.server", tracing=true)
)

About

Principled code generation for Scala services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 68.7%
  • Scala 31.3%