I would not try to have a case class and a Singleton of the same name in the same source. The case class creates it's own compation object wich conflicts with your Singleton. My solution would be without companion object, just the class TestSalatDtoDescription (whatever that is)


your issue here is that Salat does not currently support nested classes.

Doesn't work:

object TestSalatDto {
  case class Description(
  brief: String,
  full: String)

Works fine:

case class Description( /* etc etc */)
case class TestSalatDto(description: Description, /* etc etc*/)

Related Query

More Query from same tag