Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4767

Automatic known types based on dotnet 7+ JsonDerivedTypeAttribute

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      Is it possible to implement logic to automatically populate known types based on already defined polymorphism using System.Text.Json.Serialization attributes?

       

      Simple example that we are using:

      Attachments

        Activity

          People

            james.kovacs@mongodb.com James Kovacs
            miroljub.tomic@mydesigns.io Miroljub Tomic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: