Store BSON strings as byte sequences

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a developer
      I want strings in BSON to be stored as a sequence of bytes.
      So that my app does not error with invalid UTF8 strings.

      User Experience

      • Users can opt-in to using a new BSONString type that stores the raw byte sequence.

      Dependencies

      • Any downstream projects that can have invalid UTF8 in their strings.

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Create a new BSONString class that users can opt in to deserialize to.
      • Allow users to instantiate a BSONString with a byte sequence.
      • Allow BSONStrings to be serialized
      • Add EJSON support for BSONStrings

      Testing Requirements

      • Unit tests

      Documentation Requirements

      • DOCSP ticket for new BSON type.

      Follow Up Requirements

      • None

            Assignee:
            Unassigned
            Reporter:
            Durran Jordan
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: