We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8f7db commit 3498bc1Copy full SHA for 3498bc1
src/test/scala/com/fasterxml/jackson/module/scala/deser/OptionDeserializerTest.scala
@@ -75,6 +75,10 @@ class OptionDeserializerTest extends DeserializerTest {
75
deserialize("{}", classOf[UnavailableField]) should be(UnavailableField(None))
76
}
77
78
+ it should "synthesize None for optional fields that are null" in {
79
+ deserialize("""{"foo":null}""", classOf[UnavailableField]) should be(UnavailableField(None))
80
+ }
81
+
82
it should "propagate type information" in {
83
val json: String = """{"base":{"$type":"impl"}}"""
84
deserialize(json, classOf[BaseHolder]) should be(BaseHolder(Some(Impl())))
0 commit comments