- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.3k
Closed
Milestone
Description
Beginning with .NET 7, System.Text.Json supports polymorphic type hierarchy serialization and deserialization with attribute annotations.
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism
But if we configure swagger to use polymorphism it does not add information about derived type to docs.
As I think, the problem is that [JsonDerivedType] adds implicit discriminator property which can be seen in json string only.
So, it is interesting to know the plans for support of this feature in library.
maffelbaffel, Bastian-ss-net, devgavrilov, lukaogadze, Patrik-Lundqvist and 28 morepetefox
Metadata
Metadata
Assignees
Labels
No labels