Commit 6b6405a
Will Palmeri
treat Option as CollectionLike in ScalaObjectMapper
This will ensure that the custom OptionDeserializer is always used when deserializing Options.
Right now when `List[Option[_]]` is deserialized, the Option class is treated as a "simple" type in the constructed `JavaType` and thus a generic JSON Deserializer is used rather than `OptionDeserializer`.
Note that the new test will NOT pass until a jackson-databind dependency with FasterXML/jackson-databind#407 is used1 parent 9a4dc0b commit 6b6405a
File tree
2 files changed
+10
-2
lines changed- src
- main/scala/com/fasterxml/jackson/module/scala/experimental
- test/scala/com/fasterxml/jackson/module/scala/experimental
2 files changed
+10
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
| |||
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| 217 | + | |
211 | 218 | | |
212 | 219 | | |
0 commit comments