-
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
Add support for serializing properties in interface hierarchies #78788
Add support for serializing properties in interface hierarchies #78788
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsFix #41749.
|
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs
Outdated
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.
modulo the analyzer failure, LGTM.
The changes seem to have triggered false positive warnings being emitted by the trimmer. After a lot of experimentation, I was able to isolate the issue to the one |
Wasm test failures are unrelated:
|
Just since I'm curious / fast checking haven't found it: where / how are duplicate property named handled? |
Same as how they are handled in regular class hierarchies: we throw an exception: runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.cs Line 826 in 58f59db
|
Ah sure, Attributes made it possible before, too! Thank you very much. |
Fix #41749.
cc @captainsafia