Avro4s: The argument types of an anonymous function must be fully known. (SLS 8.5)

138 Views Asked by At

I am trying to map the fields of a case class using the avro4s FieldMapper.

implicit val short: FieldMapper = {
  case "fieldName1" => "fieldName2"
}

But I'm receiving the following error:

Error:(20, 39) missing parameter type for expanded function
The argument types of an anonymous function must be fully known. (SLS 8.5)
Expected type was: com.sksamuel.avro4s.FieldMapper
    implicit val short: FieldMapper = {

I found similar questions related to this error:

However I could not derive a solution for my particular problem.

Any help is appreciated!

0

There are 0 best solutions below