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

Root built-in converters in JsonSerializerOptions.GetConverter(Type) #51897

Merged
merged 5 commits into from
Apr 30, 2021

Conversation

layomia
Copy link
Contributor

@layomia layomia commented Apr 26, 2021

The JSON source generator does not generate calls to this method, so we don't need to make a breaking change. In this PR, we restore backwards-compat by rooting built-in converters. We can provide a new size-friendly API if the scenario comes up.

@layomia layomia added this to the 6.0.0 milestone Apr 26, 2021
@layomia layomia self-assigned this Apr 26, 2021
@layomia layomia requested a review from jozkee as a code owner April 26, 2021 22:54
@ghost
Copy link

ghost commented Apr 26, 2021

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

Issue Details

The JSON source generator does not generate calls to this method, so we don't need to make a breaking change. In this PR, we restore backwards-compat by rooting built-in converters. We can provide a new size-friendly API if the scenario comes up.

Author: layomia
Assignees: layomia
Labels:

area-System.Text.Json

Milestone: 6.0.0

@layomia layomia force-pushed the GetConverter branch 2 times, most recently from a059c30 to fa79d9f Compare April 28, 2021 19:27
@ghost
Copy link

ghost commented Apr 28, 2021

Hello @layomia!

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.

@layomia
Copy link
Contributor Author

layomia commented Apr 29, 2021

@eerhardt, @steveharter, @eiriktsarpalis - PTAL commit 8afd77e which marks JsonSerializerOptions.GetConverter(Type) as "requires unreferenced code" which is needed following #51886.

@layomia layomia requested review from steveharter and eerhardt April 29, 2021 18:44
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@ghost ghost locked as resolved and limited conversation to collaborators May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants