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

Fix regression in dictionary key serialization when registering custom primitive converters. #57138

Merged
5 commits merged into from
Aug 11, 2021

Conversation

eiriktsarpalis
Copy link
Member

Reverts a breaking change intentionally introduced in #50074: when users register a custom converter for a primitive type in the reflection-based serializer, the key serialization logic for that type will fall back to the default converter, assuming it has been rooted by the current application.

Fixes #53241.

@ghost
Copy link

ghost commented Aug 10, 2021

Tagging subscribers to this area: @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

Reverts a breaking change intentionally introduced in #50074: when users register a custom converter for a primitive type in the reflection-based serializer, the key serialization logic for that type will fall back to the default converter, assuming it has been rooted by the current application.

Fixes #53241.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 6.0.0 milestone Aug 10, 2021
Copy link
Contributor

@layomia layomia left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost
Copy link

ghost commented Aug 10, 2021

Hello @eiriktsarpalis!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit c0662e8 into dotnet:main Aug 11, 2021
@eiriktsarpalis eiriktsarpalis deleted the fix-customkeyconverter-regression branch August 11, 2021 08:45
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants