-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 support for non-public default constructors using JsonIncludeAttribute #90612
Fix support for non-public default constructors using JsonIncludeAttribute #90612
Conversation
/backport to release/8.0-rc1 |
Started backporting to release/8.0-rc1: https://github.com/dotnet/runtime/actions/runs/5869872173 |
...Text.Json/src/System/Text/Json/Serialization/Metadata/DefaultJsonTypeInfoResolver.Helpers.cs
Show resolved
Hide resolved
...System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionEmitMemberAccessor.cs
Show resolved
Hide resolved
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsPR #88452 added support for non-public constructors using Fix #90577 Should be backported to release/8.0-rc1
|
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!
@eiriktsarpalis Title looks misleading. It should be "Fix support for non-public default constructors using |
Yes that's a typo, it is in fact addressing the issue with JsonConstructorAttribute. PR has been merged now, so not much can be done. 🤷 |
PR #88452 added support for non-public constructors using
JsonIncludeAttribute
, however it didn't account for default constructors, which use a different path when being populated in the reflection serializer.Fix #90577
Should be backported to release/8.0-rc1