[GODRIVER-2124] Audit the primitive package for encoding.Text(Un)Marshaler impls Created: 10/Aug/21  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: JSON & ExtJSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-2119 Implement encoding.Text(Un)Marshaler ... Closed

 Description   

GODRIVER-2119 brought up the point that marshaling from and unmarshaling to instances of map[primitive.ObjectID]string causes an error because primitive.ObjectID does not implement encoding.TextMarshaler nor encoding.TextUnmarshaler for JSON.

We should audit the primitive package to ensure that all types implement these functions.


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