Closed herulume closed 1 year ago
@herulume thanks for reporting this 🙌 What was the version of arrow and arrow-integrations that were used? I struggle to replicate the problem in latest. Would you mind trying this with 0.13.3-alpha.22
? Sorry about the alpha version. Arrow team is currently in the process to release this library. I'll poke the team again just to be sure.
Here is the branch with the identical test, which seemingly has the expected behaviour https://github.com/arrow-kt/arrow-integrations/pull/106/files
We've just released 0.14.0
which is of the same code as 0.13.3-alpha.22
. @herulume can we try against that and see if the problem persists?
Hey! Thank you for such a fast answer. It is indeed solved now 🙏
Describe the bug
Option<T>
de-serializes to it's internal representation (whenT
is present and when it's not) .To Reproduce
Run this adapted example
Expected behavior
T
is present, de-serialize to it's value.T
isn't present, not show the field (according to the configuration)Screenshots
Environment (please complete the following information):
Additional context This problem appear with an Option of a value class but I was able to reproduce it with an
Option<String>
as per the example.