Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-181

Add depth tracking to bson.Document, bson.Reader, bson.ReaderElement, and bson.Element types

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: