Say I have a case case such as:
case class Stuff(name:String,stuffs:List[String] = List.empty)
How can I prevent jackson from deserialization the json
{
"name":"Alex"
}
With
Stuff("Alex",null)
I would prefer it to be constructed with
Stuff("Alex")
Is there a way to configure Jackson to work in this way? or do I have to define other constructors. e.g. with missing stuffs