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

Add capability of pass metadata to serializers on Serialize/Deserialize methods

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.4
    • Serialization
    • None
    • Fully Compatible

    Description

      I'd like to be able to write smart serializers, where I can share information whit the invoked sub-serializers. Currently, for example on deserialization process, there are the "context" and "args" arguments, but I can't add arbitrary data as metadata about current model and document. An invoked serializer could have need to access, for example, to a document version metadata stored on the root of the document. The simpliest way to share this information, is to pass it with the call.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmm360 Mirko Da Corte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: