[GODRIVER-363] BSON encode and decoder do not support time.Time, url.URL, or json.Number Created: 12/Apr/18  Updated: 02/May/18  Resolved: 02/May/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.2
Fix Version/s: 0.0.4

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Done Votes: 0
Labels: FreeMonitoring, evg
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
causes GODRIVER-300 Support constructing *Value from time... Closed
Related
related to GODRIVER-163 Design and write first-draft of bson.... Closed

 Description   

GODRIVER-163 stated that the Encoder must support time.Time, url.URL, and json.Number. Neither the Encoder nor the Decoder supports these types. Implement support for the time.Time, url.URL, and json.Number types within both the Encoder and Decoder implementations.



 Comments   
Comment by Githook User [ 02/May/18 ]

Author:

{'email': 'kris@mongodb.com', 'name': 'Kris Brandow', 'username': 'skriptble'}

Message: Add support for url, json number, and decimal

GODRIVER-363
GODRIVER-343

Change-Id: I3a7e4198beb878b7f38f0a296b3be7fab604148f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/ff5ad991913ea56c4609391ff190eaf83edf339b

Comment by Kristofer Brandow (Inactive) [ 01/May/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/409597.

Comment by Kristofer Brandow (Inactive) [ 01/May/18 ]

The time.Time support was added in this pull request: https://github.com/mongodb/mongo-go-driver/pull/40.

Comment by Kristofer Brandow (Inactive) [ 24/Apr/18 ]

Looks like we already support time.Time for decoding. We just need to add url.URL, json.Number, and decimal.Decimal128 (GODRIVER-343) for the decoder, and add time.Time, url.URL, json.Number, and decimal.Decimal128 for the encoder.

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