We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue has been moved from a ticket on Developer Community.
.NET 7 provide polymophic deserialisation. Works fine but the way it is implemented has some drawbacks.
change requests
(private comment, text removed)
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis See info in area-owners.md if you want to be subscribed.
area-System.Text.Json, untriaged
area-System.Text.Json
untriaged
Sorry, something went wrong.
it only looks for the $Type property in a json object
The actual name of type discriminator property can be configured using the JsonPolymorphic attribute.
JsonPolymorphic
$Type must be the first property in a json object
This is tracked by #72604. We expect a fix to make its way in .NET 9.
rename typeDiscriminator to typeDiscriminatorValue
Renaming APIs that have already shipped is a breaking change that we couldn't consider, unfortunately.
Hope this answers your questions.
No branches or pull requests
This issue has been moved from a ticket on Developer Community.
.NET 7 provide polymophic deserialisation. Works fine but the way it is implemented has some drawbacks.
change requests
Original Comments
Feedback Bot on 6/20/2023, 08:31 PM:
(private comment, text removed)
The text was updated successfully, but these errors were encountered: