Validate BSON type to be array when parsing BSON object to Array

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0-alpha3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • Repl 2021-02-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We allow BSON representation of an Array to be parsed to array without checking the type of the BSON object , ex: *

      {“0” : “hello”, “1” : “world” }

      * is accepted as array<string> => [“hello”, “world”]

      As we adding more strict rules to our inputs/outputs for our command, we will enforce that BSON should be of array type to be parsed as array, to prevent future confusion if we start accepting (Object, array) types for the same field.

       

              Assignee:
              Moustafa Maher
              Reporter:
              Moustafa Maher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: