Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-332

Throw an error when non-BSONDecoder is used in init(from: decoder) for BSONValue types

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:

      Description

      For BSONValue types that we created (not Swift types we extend), we should throw errors when you try to decode them using a non-BSON decoder, as the synthesized implementations are often incorrect.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: