-
Notifications
You must be signed in to change notification settings - Fork 31
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
Contextual with Element throws Inline classes can not be decoded directly #220
Comments
Contextual has only (very recently) been made to (mostly) work. To diagnose this I need to know the serializer for |
I didn't setup any custom serializer, i is kotlinx.datetime.Instant, version 0.6.0, using JVM target. |
@hfhbd I notice that |
Is this expected? I didn't need to register it in SerializerModule with 0.86.3 and I also don't need it with the Json format. |
@hfhbd I'll have a look, but the whole point of marking it |
Thanks!
|
I've fixed it. I forgot to handle contextual in the decoding case (it needs to determine the actual descriptor, rather than the "fake" one for the contextual serializer). I guess that it worked in 0.86.3 is more by accident than intent. |
@pdvrieze Thank you for the fast implementation! Do you publish snapshots? If so, I will try it. |
Yes, there should be a snapshot that works. |
Thanks, the snapshot (0.90.2-SNAPSHOT) does work :) |
This did work with 0.86.3:
With 0.90.1:
The text was updated successfully, but these errors were encountered: