Closed michaelpetri closed 1 year ago
Thanks for reporting the issue! I'll have a look at it and will surely update the dependency.
Just to give you a heads up, updating the deps is unfortunately not so easy because some tests fail with kotlinx.serialization 1.4.1.
kotlinx.serialization 1.4.1 has a bug that does not allow us to use it. Therefore we'll only update to 1.4.0.
I've added the missing test cases to the code base and fixed the problem. The current main should be able to handle open classes in lists/maps. Fixed with 57946b59011df2ea16233dec572f53047b37f523. I'll prepare a release.
Thanks for the fast response and fix. :muscle:
Hey,
i'm currently trying to deserialize a list of a polymorphic open class, but this fails with
Kind OPEN is currently not supported.
, which seems like some limitation? But i wonder why, since it's also possible to generate a schema for it, which you also cover within your tests.A solution is to make the
BaseEvent
sealed, which will probably work for me but prevents me to build a package which can be used by my other packages.So my question, do i miss something or is it just a limitation for some reason?
Here an example code:
Thanks :v:
PS: The code in this repo is locked to kotlinx.serialization 1.4.0-RC, do you think it makes sense to update to latest version in order to give people more up2date examples? I could open a PR if you like.