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
Cannot serialize OpenApi
instance
#16
Comments
The whole serialization should get hidden behind the API and KotlinX Serialization should not be exposed. |
Because of this failure the current example doesn't work. Do you have any idea how to fix this @nomisRev? I think it is related to a kotlinx serialization bug, but I couldn't find it now. And I totally agree with you point about hiding this from public api. |
It seems to be picking up What is the use-case for converting Would we be able to close this issue if we make KotlinX Serialization internal and only expose |
Actually |
Do you have a snippet that reproduces this with I tried to take a quick look to try and figure out what's going wrong. Seems that something is going wrong when resolving the generic serializer in KotlinX Serialization. So not sure what is wrong yet, perhaps we have to explicitly register some of the polymorphic serializers. |
@lenguyenthanh if you have any meaningful tests (even failing ones) or code, a PR is always welcome for it :) |
@nomisRev yeah, it seems there is a bug in Kotlinx Serialization like you said earlier: I have some failed tests for it, will create a PR soon. |
More specifically this test failed:
With stacktrace:
It failed when serializing
Referenced
type. But the stand alone test forReferenced
works fine:The text was updated successfully, but these errors were encountered: