-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/6.0] Support JsonConverterFactory with src-gen #58652
Conversation
Tagging subscribers to this area: @eiriktsarpalis, @layomia Issue DetailsBackport of #58398 to release/6.0 /cc @steveharter Customer ImpactTestingRisk
|
cc @danmoseley |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, source/generated code changes are sound; test coverage is robust and addresses this core scenario (JsonConverterFactory + src-gen) for 6.0. cc @danmoseley
Given the churn and that it's arguably a documentable limitation, I doubt this would make the RC2 bar (starting 9/14). But I'm OK taking this now as it will increase adoption of this new feature. As discussed offline, I appreciate the comprehensive tests but since there's significant churn here I would prefer to get another pair of eyes reviewing it before merging. |
Oh, I see @layomia did that. OK, we can merge when green. |
Backport of #58398 to release/6.0
/cc @steveharter
Customer Impact
Support for
JsonConverterFactory
is currently broken in source generators. It has the potential to block customers from migrating existing reflection-based serialization DTOs to source gen.Testing
Added testing that validate the broken scenaria.
Risk
Low to moderate. Accommodating factories requires a moderate amount of refactoring in product code.