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
Missing information
The documentation does not mention anything about nested objects.
Consider the following code:
[JsonPolymorphic] [JsonDerivedType(typeof(Derived1), typeDiscriminator: "Derived1")] [JsonDerivedType(typeof(Derived2), typeDiscriminator: "Derived2")]
This only appears to work at the root level model.
Current version: System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism
https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/polymorphism.md
17511810-6572-ad88-6eaf-4f9bded720b7
@gewarren
Related Issues
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type of issue
Missing information
Description
The documentation does not mention anything about nested objects.
Consider the following code:
This only appears to work at the root level model.
Current version:
System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Page URL
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism
Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/polymorphism.md
Document Version Independent Id
17511810-6572-ad88-6eaf-4f9bded720b7
Article author
@gewarren
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: