There are some minor breaking changes to akka-http adapter API.
With this release AkkaHttpAdapter
doesn't lock you up with circe
, but lets you choose a json backend between circe
and play-json
.
The simplest way to keep previous behavior is to:
- mixin
AkkaHttpCirceAdapter
trait to your endpoint definition wrapper - add
"de.heikoseeberger" %% "akka-http-circe" % "1.31.0"
dependency to yourbuild.sbt
, because now it's optional forcaliban-akka-http
. Luckily, compiler will detect if it's missing. - Use
adapter
instead ofAkkaHttpAdapter
to create routes.
You can see an example of this simple migration here.
A more composable and recommended way to create caliban adapter would be this (this time it's play-json):