Skip to content

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

Merged
ericstj merged 1 commit into
release/6.0-rc1from
backport/pr-57592-to-release/6.0-rc1
Aug 25, 2021
Merged

[release/6.0-rc1] Support reference type custom converters in source gen#57954
ericstj merged 1 commit into
release/6.0-rc1from
backport/pr-57592-to-release/6.0-rc1

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Aug 23, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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:-

@eiriktsarpaliseiriktsarpalis added the Servicing-consider Issue for next servicing release review label Aug 24, 2021
@SteveMCarrollSteveMCarroll added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 24, 2021
@mmitche

Copy link
Copy Markdown
Member

Merge when ready

@ericstj
ericstj merged commit 4f0eb12 into release/6.0-rc1Aug 25, 2021
@akoeplinger
akoeplinger deleted the backport/pr-57592-to-release/6.0-rc1 branch August 28, 2021 22:04
@ghostghost locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.JsonServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@mmitche@eiriktsarpalis@steveharter@ericstj@SteveMCarroll