Closed
Description
Given this case class:
case class Value( @JsonSetter(nulls=Nulls.FAIL) offers: Map[String, Offer] = Map.empty[String, Offer] )
and this JSON:
{ "offers": null }
There is no failure on deserialization. I have also tried setting the value globally on ObjectMapper
:
objectMapper.setDefaultSetterInfo(JsonSetter.Value.forValueNulls(Nulls.FAIL))
This doesn't work either.
Am I doing something wrong? Or is this a bug?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels