-
Notifications
You must be signed in to change notification settings - Fork 15
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
Spray-json None values are always converted to null. How to change this? #73
Comments
I think that providing your own |
Hey @luksow, I updated the issue description and added a sample, I don't think it's related to Spray |
Thanks for detailed report. I've found out why. It's a bug and we'll try to fix it. |
🥳 When will the new version will be released? |
@myDisconnect We will try to get it released this week. |
@myDisconnect FYI: the new release is already available on Maven Central |
Spray converts
None
values tonull
only when NullOptions trait is added but by default it doesn't add those fields to JSON.When using kebs implicitly[RootJsonFormat[xxx]], it converts
None
values tonull
. Example of such case: https://scastie.scala-lang.org/myDisconnect/tgnMaqh4QcCdQWDBWQZT5A/7 see f4 field (this is also visible in Kebs tests)Is it possible to change this behaviour in Kebs and ignore None values?
Note: This seems to be happening when a case class has more than 22 parameters
The text was updated successfully, but these errors were encountered: