[DRIVERS-612] Add documentation warning against the use of duplicate key names Created: 22/Feb/19 Updated: 29/Aug/23 |
|
| Status: | Implementing |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Bernie Hackett | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | newdriver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Drivers that provide low level control over the creation of BSON (for example, the BSON writer in the Java and other drivers) MUST warn against the use of duplicate key names in documentation. The documentation MUST mention that the server's behavior related to duplicate key names is undefined and MUST document what the driver does when a document with duplicate key names is decoded (first one wins, last one wins, etc.) and that storing such a document will cause the other value(s) to be lost. |
| Comments |
| Comment by Daniel Aprahamian (Inactive) [ 22/Feb/19 ] |
|
Good point. Removing validation. |
| Comment by Daniel Aprahamian (Inactive) [ 22/Feb/19 ] |
|
NodeJS driver does not allow this |