[CSHARP-2877] Default BsonSerializationArgs sometimes has null NominalType Created: 16/Dec/19 Updated: 28/Oct/23 Resolved: 18/Dec/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | 2.10.0 |
| Fix Version/s: | 2.11.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
When BsonSerializationArgs is not provided the default value will sometimes have a null value for the NominalType. This can result in an undesired `_t` discriminator value. Reproduction:
Results in:
But the `_t` is not supposed to be there.
|
| Comments |
| Comment by Githook User [ 14/Oct/21 ] |
|
Author: {'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}Message: |
| Comment by Githook User [ 18/Dec/19 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |