-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to deserailize Seq with AS_EMPTY null handling #462
Comments
Jackson version 2.10.4 |
jackson-module-scala 2.11 supports case class param default values - would it be possible to try |
I get the same error with the default parameter |
@cowtowncoder would you be able to provide some pointers on how to support a NullValueProvider. I tried extending the scala module Deserializer to implement the NullValueProvider but that didn't help. That code is in #465 |
|
@pjfanning Not sure what specifically is failing, but to get "as-empty" handling, deserializer for type needs to first implement Another place of interest might be Apologies for vague explanation: implementation is bit messy. But I think making |
@cowtowncoder thanks, I think I got it working @nick-benoit14 could you try the latest 2.12.0-SNAPSHOT? |
@cowtowncoder what is the v3.0.0 equivalent of |
@pjfanning It is via
and there is also option to "rebuild" from existing mapper, using
|
@cowtowncoder I copied over the new tests that work in 2.12 branch to the master branch but changed to use the changeDefaultNullHandling method you suggested. The tests fail. The getEmptyValue methods that I added don't appear to be called - but it could be another issue, there is still a lot of stuff broken in master version of jackson-module-scala. |
@pjfanning Sorry to hear that. Not sure what could be causing it unfortunately. |
Configuring jackson to treat null collections as empty appears to work for java.util collections, but fails for scala collections like
Seq
The text was updated successfully, but these errors were encountered: