Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4952

EJSON does not validate the _bsontype field the same way that BSON does

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON, EJSON
    • Not Needed

      What problem are you facing?

      EJSON.stringify when encountering objects with an _bsontype field does not validate the string that it returns, instead it assumes that the toExtendedJSON hook exists and calls it.

      AC

      • Consider improving the alignment with BSON
      • Which is the source of truth toExtendedJSON hook or _bsontype

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: