Skip to content

[release/6.0-rc1] Support reference type custom converters in source gen #57954

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

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 23, 2021

Backport of #57592 to release/6.0-rc1

This PR replaces #57772 which only targeted release/6.0.

Fixes #56864

/cc @steveharter

Customer Impact

Broken scenario: custom converters based on reference types result in a compile error when the custom converter is applied to a property via [JsonConverter]; no feasible workaround other than to remove the [JsonConverter] attribute.

Testing

New tests added to verify struct-based and reference-type-based custom converters.

Risk

Low - changes are local to source-gen support of custom converters.

@ghost
Copy link

ghost commented Aug 23, 2021

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

Issue Details

Backport of #57592 to release/6.0-rc1

/cc @steveharter

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added the Servicing-consider Issue for next servicing release review label Aug 24, 2021
@SteveMCarroll SteveMCarroll added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 24, 2021
@steveharter steveharter requested a review from danmoseley August 25, 2021 01:13
@mmitche
Copy link
Member

mmitche commented Aug 25, 2021

Merge when ready

@ericstj ericstj merged commit 4f0eb12 into release/6.0-rc1 Aug 25, 2021
@akoeplinger akoeplinger deleted the backport/pr-57592-to-release/6.0-rc1 branch August 28, 2021 22:04
@ghost ghost locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants