[GODRIVER-3044] Error when unmarshaling a BSON document if the document has unknown fields Created: 08/Nov/23 Updated: 08/Jan/24 Resolved: 08/Jan/24 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Unknown |
| Reporter: | Matt Dale | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||
| Description |
ContextSome users want the ability to configure a BSON decoder to return an error if the BSON document has fields that don't match fields in the decode destination struct. The Go "encoding/json" library supports a similar configuration called Decoder.DisallowUnknownFields . We should support something similar for the BSON decoder. Definition of done
Pitfalls
|