You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is recommended that Scala users enable `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES`. This feature means that when you
80
-
deserialize JSON and bind to a Scala/Java class and a required field is missing (or null), then the deserialization call will fail
81
-
with a `com.fasterxml.jackson.databind.exc.MismatchedInputException`. By default, the deserialization call will succeed and a `null` value
82
-
will be set for the field.
79
+
Since jackson-module-scala 2.19.0, if you deserializing a collection and the input is null, this will deserialize as an empty collection.
80
+
81
+
Up to jackson-module-scala 2.19.0, it was recommended that Scala users enable `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES` because
82
+
otherwise, an input of null would lead to the deserialized instance having a null value for the collection field.
83
+
84
+
This feature means that when you deserialize JSON and bind to a Scala/Java class and a required field is missing (or null), then the deserialization call will fail
85
+
with a `com.fasterxml.jackson.databind.exc.MismatchedInputException`.
0 commit comments