-
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/7.0] Fix regression in JsonIgnoreAttribute
handling of unsupported property types
#76869
[release/7.0] Fix regression in JsonIgnoreAttribute
handling of unsupported property types
#76869
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsBackport of #76828 to release/7.0 Customer ImpactWe received a couple of customer reports that TestingAdded regression testing for the identified scenarios. RiskLow. Makes a minor change in product code so that a lazy loading mechanism already employed in source generated metadata is also applied to reflection derived metadata.
|
JsonIgnoreAttribute
handling of unsupported property types
...es/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionJsonTypeInfoOfT.cs
Show resolved
Hide resolved
...es/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionJsonTypeInfoOfT.cs
Show resolved
Hide resolved
...es/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionJsonTypeInfoOfT.cs
Show resolved
Hide resolved
...es/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionJsonTypeInfoOfT.cs
Show resolved
Hide resolved
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.
Thanks for getting this resolved. It was approved by tactics for inclusion in GA.
Backport of #76828 to release/7.0
Customer Impact
We received a couple of customer reports that
JsonIgnoreAttribute
handling when applied to unsupported property types has regressed in .NET 7. Even though there are workarounds for the issue, these are generally unintuitive to users and require code modifications, which might inhibit migration of existing applications to .NET 7.Testing
Added regression testing for the identified scenarios.
Risk
Low. Makes a minor change in product code so that a lazy loading mechanism already employed in source generated metadata is also applied to reflection derived metadata.