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

Add conventions and attributes to configure ObjectSerializer AllowedTypes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Serialization
    • 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

      ObjectSerializer was recently changed to have an AllowedTypes filter that defaults to a set of framework types that are deemed to be safe.

      While an application can reconfigure the AllowedTypes by registering a suitably configured ObjectSerializer, in many cases it could be more convenient to register a convention or use attributes to annotate the POCO.

      Details to be determined.

      Attachments

        Activity

          People

            Unassigned Unassigned
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: