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

Add conventions and attributes to configure ObjectSerializer AllowedTypes

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Serialization
    • 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?

      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.

            Assignee:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: