Skip to content
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

Fixed type discriminator value for custom serializer that uses encodeJsonElement #2628

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

shanshin
Copy link
Contributor

@shanshin shanshin commented Apr 15, 2024

Fixes #2451

@sandwwraith sandwwraith self-assigned this Apr 18, 2024
Copy link
Member

@sandwwraith sandwwraith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Did you check that if doesn't fix all related issues?

override val descriptor: SerialDescriptor =
buildClassSerialDescriptor("VImpl") {
element("a", String.serializer().descriptor)
element("b", Int.serializer().descriptor)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no b in VImpl though

@shanshin
Copy link
Contributor Author

LGTM. Did you check that if doesn't fix all related issues?

Unfortunately, no, other issues concern sealed classes

@shanshin shanshin merged commit d4a2686 into dev Apr 18, 2024
3 of 4 checks passed
@shanshin shanshin deleted the polymorphic-tree-serializer branch April 18, 2024 19:18
@shanshin shanshin assigned shanshin and unassigned sandwwraith Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants