-
Notifications
You must be signed in to change notification settings - Fork 3
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
Serializing "unknown types" on JS release throws exception #473
Comments
Thanks a lot for the repro! 🙏 Noteworthy: this works, and is tested, on the JS target platform. I suspect the problem is related specifically to released sources, which get minified. Unknown polymorphism on the JS platform relies on accessing internals of
When the tests run with non-minified sources, however, this This code was written quite a long time ago. We should check whether updates to |
Also had to update kotlinx serialization typescript wrapper due to new method call which was added in `UnknownPolymorphicSerializer` and caused the exported names to change. Closes #473
Using the typescript declarations, encoding a
StudyProtocolSnapshot
which has an unknown type throws:IllegalStateException: Could not find a matching field for "polymorphicDiscriminator" on the JavaScript runtime.
Repro steps:
#472
The text was updated successfully, but these errors were encountered: