Raw BSON serializer should return false in is_human_readable

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The raw BSON serializer currently does not implement the is_human_readable method from the Serializer trait, and the default implementation returns true. This is inaccurate, however, for raw BSON, which is not human readable, and it's also inconsistent with the raw BSON deserializer, which does return false from this method's equivalent. We should update the serializer to indicate that raw BSON is not human readable.

      According to the serde docs, changing this value should be considered a breaking change, so we'll need to do this for the 2.0.0 release.

              Assignee:
              Patrick Freed
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: