Configure Jackson to throw an exception when a field is missing
As of Jackson 2.6, there is a way, but it does not work on class attribute annotations, only constructor annotations: /* DOES *NOT* THROW IF bar MISSING */ public class Foo { @JsonProperty(value = “bar”, required = true) public int bar; } /* DOES THROW IF bar MISSING */ public class Foo { public int … Read more