[GODRIVER-663] Extend the Marshal* and Unmarshal* family functions with *WithContext functions Created: 28/Nov/18  Updated: 28/Oct/23  Resolved: 07/Dec/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 0.2.0

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Githook User [ 07/Dec/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com', 'username': 'iwysiu'}

Message: GODRIVER-663 Extend the Marshal* and Unmarshal* family functions with *WithContext functions

Change-Id: I261c3276a78b897039d8e9629b6eab22d608eedf
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/1e8b9e58279efba71da5a527538bea48a72107f6

Generated at Thu Feb 08 08:34:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.