Using fauna-scala 3.0.0
case class Type(value: String, count: Int)
object Type {
implicit val codec: RecordCodec[Type] = Codec.Record[Type]
}
yields
[error] /home/agourlay/Workspace/allez-fauna/server/src/main/scala/agourlay/allez/api/Models.scala:54:55: type mismatch;
[error] found : String("count")
[error] required: Int
[error] implicit val codec: RecordCodec[Type] = Codec.Record[Type]
[error] ^
[error] one error found
whereas the following compiles
case class Type(v: String, count: Int)
object Type {
implicit val codec: RecordCodec[Type] = Codec.Record[Type]
}
Using
fauna-scala3.0.0yields
whereas the following compiles