-
Notifications
You must be signed in to change notification settings - Fork 636
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
KSerialClassDesc should include the KClass being serialized #134
Comments
@ansman This is because in javascript there is no class object. If you look at the implementation then you see that it uses a multiplatform function that uses |
Ah, I thought But this means that |
So what would be the downside of including |
@ansman Except that there currently is no way on javascript to get a serializer for a named type. |
I don't really understand. If you simply replace |
@ansman The code at some point needs to have an actual class object that it can retrieve a serializer for. Javascript has no way to store annotations yet (shouldn't be hard to emulate though) |
KClass won't be included in descriptor because reflection API is very limited in multiplatform setup and there will be almost no benefit in it. Instead, suggested approach is to use extended features of |
Currently the
KSerialClassDesc
only includes thename
of the class which makes it hard to load custom serializers for some libraries.The text was updated successfully, but these errors were encountered: