[CDRIVER-3731] Add a way for BSON validation to be configured at a wider scope Created: 01/Jul/20 Updated: 10/Feb/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Epic Link: | Improve Developer Experience | ||||
| Description |
|
Currently, many functions accept a way to configure bson validation by the bson_validate_flags_t: http://mongoc.org/libbson/current/bson_validate_with_error.html It would be convenient to set this as a client/database/collection option for applications that expect fields to not pass validation. Additionally, not all functions accept the validation option (e.g. the superseded mongoc_bulk_operation_insert and mongoc_collection_insert functions). |