Extend the Marshal* and Unmarshal* family functions with *WithContext functions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.2.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The UnmarshalWithRegistry and MarshalWithRegistry family of functions takes a bsoncodec.Registry currently, but that limits user's ability to configure how other factors during encoding or decoding function, e.g. MinSize, Truncate, etc...

      Add MarshalAppendWithContext, MarshalExtJSONAppedWithContext, MarshalExtJSONWithContext, UnmarshalWithContext, and UnmarshalExtJSONWithContext.

      The Marshal* functions should take a bsoncodec.EncodeContext and the Unmarshal* functions should take a bsoncodec.DecodeContext.

            Assignee:
            Isabella Siu (Inactive)
            Reporter:
            Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: