-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Remove JsonConverter.RuntimeType #65224
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
Remove JsonConverter.RuntimeType #65224
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsBackports infrastructural changes introduced in the polymorphic serialization prototype branch.
|
...m.Text.Json/src/System/Text/Json/Serialization/Converters/Collection/IDictionaryConverter.cs
Show resolved
Hide resolved
...m.Text.Json/src/System/Text/Json/Serialization/Converters/Collection/IEnumerableConverter.cs
Show resolved
Hide resolved
...ext.Json/src/System/Text/Json/Serialization/Converters/Collection/IEnumerableOfTConverter.cs
Show resolved
Hide resolved
...ries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfoInternalOfT.cs
Show resolved
Hide resolved
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.cs
Show resolved
Hide resolved
...ialization/Converters/Object/ObjectWithParameterizedConstructorConverter.Large.Reflection.cs
Show resolved
Hide resolved
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverter.cs
Show resolved
Hide resolved
.../System/Text/Json/Serialization/Converters/Collection/StackOrQueueConverterWithReflection.cs
Show resolved
Hide resolved
...ext.Json/src/System/Text/Json/Serialization/Converters/Collection/JsonDictionaryConverter.cs
Show resolved
Hide resolved
...xt/Json/Serialization/Converters/Collection/ImmutableEnumerableOfTConverterWithReflection.cs
Show resolved
Hide resolved
overall looks good, I think you should remove unnecessary RequiresUnreferencedCode (RUC) from the code, treat rest of the comments as enahncements and no need to block on them |
Backports changes introduced in the polymorphic deserialization prototype. JsonConverter.RuntimeType is an implementation detail stemming from interface support in collection converters, that has leaked into the JsonTypeInfo model. Removing it makes the contract model cleaner and makes the infrastructure compatible with polymorphic deserialization.
f165444
to
88cec71
Compare
Backports infrastructural changes introduced in the polymorphic serialization prototype branch.
JsonConverter.RuntimeType
is an implementation detail stemming from interface support in collection converters, that has leaked into theJsonTypeInfo
model. Removing it makes the contract model cleaner and makes the metadata infrastructure compatible with polymorphic deserialization.Related to #54420, #63747.