Questions tagged [http4s-circe]
18 questions
0
votes
1 answer
Circe asJson not encoding properties from abstract base class
Suppose I have the following abstract base class:
package Models
import reactivemongo.bson.BSONObjectID
abstract class RecordObject {
val _id: String = BSONObjectID.generate().stringify
}
Which is extended by the following concrete case…

foxtrotuniform6969
- 3,527
- 7
- 28
- 54
0
votes
1 answer
value decode is not a member of org.http4s.AuthedRequest
I am using http4s version 0.18, with Circe and I am getting the error value decode is not a member of org.http4s.AuthedRequest when I converting the json body to a case class within an AuthedService with the following code:
// case class…

Valy Dia
- 2,781
- 2
- 12
- 32
0
votes
2 answers
Await.result on HttpService
I've a scala project with http4s 0.15.16a and slick 3.2.1 with these steps:
Receive a ID by rest call
passing ID to MySlickDAO that responds with a Future
Call Await.result(res, Duration.Inf) on Future returned by MySlickDAO
Create the json
The…

gekomad
- 525
- 9
- 17