To use tapir, add the following dependency to your project:
"com.softwaremill.sttp.tapir" %% "tapir-core" % "0.19.0-M5"
This will import only the core classes needed to create endpoint descriptions. To generate a server or a client, you will need to add further dependencies.
Many of tapir functionalities come as builder methods in the main package, hence it’s easiest to work with tapir if you import the main package entirely, i.e.:
If you don’t have it already, you’ll also need partial unification enabled in the compiler (alternatively, you’ll need to manually provide type arguments in some cases). In sbt, this is:
scalacOptions += "-Ypartial-unification"
and see where auto-complete gets you!