Skip to content

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

Merged

Conversation

eiriktsarpalis
Copy link
Member

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 the JsonTypeInfo model. Removing it makes the contract model cleaner and makes the metadata infrastructure compatible with polymorphic deserialization.

Related to #54420, #63747.

@ghost
Copy link

ghost commented Feb 11, 2022

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

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 the JsonTypeInfo model. Removing it makes the contract model cleaner and makes the metadata infrastructure compatible with polymorphic deserialization.

Related to #54420, #63747.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json

Milestone: 7.0.0

@eiriktsarpalis eiriktsarpalis requested a review from krwq February 11, 2022 22:30
@krwq
Copy link
Member

krwq commented Feb 15, 2022

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.
@eiriktsarpalis eiriktsarpalis force-pushed the jsonconverter-runtimetype branch from f165444 to 88cec71 Compare February 15, 2022 13:52
@eiriktsarpalis eiriktsarpalis merged commit 8356c8a into dotnet:main Feb 15, 2022
@eiriktsarpalis eiriktsarpalis deleted the jsonconverter-runtimetype branch February 15, 2022 18:20
@ghost ghost locked as resolved and limited conversation to collaborators Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants