import io.circe.generic.extras.{Configuration, ConfiguredJsonCodec}
@ConfiguredJsonCodec case class Foo(firstName: String)
object Foo {
implicit val snakeConfiguration=Configuration.default.withSnakeCaseMemberNames}
after parsing
{"first_name":"Bob"}
we get
Foo("Bob")
If we add to Foo additional empty constructor
@ConfiguredJsonCodec case class Foo(firstName: String) {
def this() = this("")
}
object Foo {implicit val
snakeConfiguration=Configuration.default.withSnakeCaseMemberNames}
we will get
could not find Lazy implicit value of type io.circe.generic.extras.decoding.ConfiguredDecoder[Foo]
Please, help me to fix that error