[GODRIVER-181] Add depth tracking to bson.Document, bson.Reader, bson.ReaderElement, and bson.Element types Created: 18/Dec/17  Updated: 27/Jul/20  Resolved: 27/Jul/20

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

Type: New Feature Priority: Minor - P4
Reporter: Kristofer Brandow (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: Stitch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-180 Add support for maxdepth when validat... Closed
Gantt Dependency
has to be done after GODRIVER-164 Write full implementation of the bson... Closed
has to be done after GODRIVER-165 Write full implementation of the bson... Closed
has to be done after GODRIVER-168 Write full implementation of the bson... Closed
has to be done after GODRIVER-169 Write full implementation of the bson... Closed
Epic Link: Add Depth Tracking to BSON library

 Description   

Add depth tracking to the bson.Document, bson.Reader, bson.ReaderElement, and bson.Element types. This will enable users to specify a maximum nested subdocument or array depth.

There is already a validate method with depth tracking parameters on each of these types, it needs to be implemented and then any method that would have called the previous validation methods should call this one now, e.g. bson.Reader.Validate should call bson.Reader.validate, which should now contain the logic of bson.Reader.Validate. Any validation methods that are called across types should use the new depth tracking validate methods instead of the top level Validate methods.


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