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

XMLWordPrintableJSON

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

      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
              Reporter:
              Neal Beeken
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: