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 custom JsonConverterFactories not working with nested type/property declarations. #62595

Merged

Conversation

eiriktsarpalis
Copy link
Member

Fixes a bug in System.Text.Json source generation where the GetConverterFromFactory helper method would not be emitted in cases where it is only required by transitive type or property declarations.

Fix #62079.
Fix #61860.

Candidate for 6.0 servicing.

@ghost
Copy link

ghost commented Dec 9, 2021

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes a bug in System.Text.Json source generation where the GetConverterFromFactory helper method would not be emitted in cases where it is only required by transitive type or property declarations.

Fix #62079.
Fix #61860.

Candidate for 6.0 servicing.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json

Milestone: 7.0.0

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

@eiriktsarpalis eiriktsarpalis merged commit 6f40e48 into dotnet:main Dec 10, 2021
@eiriktsarpalis eiriktsarpalis deleted the fix-sourcegen-jsonconverterfactory branch December 10, 2021 18:17
@eiriktsarpalis
Copy link
Member Author

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1564659644

@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants