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

Replace encoding/decoding strategies with property wrappers

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: bson-4.0.0
    • Component/s: bson
    • Labels:

      Description

      In Swift 5.1, the ability to define custom property wrappers was introduced. This functionality works particularly nicely with the Codable system, as it allows you to specify per field options for serialization/deserialization. For example, there is a CodableWrappers repository that has annotations for a number of the encoding/decoding strategies we currently implement. It may make sense to do away with our BSONEncoder/BSONDecoder-specific strategies and instead standardize on using property wrappers instead.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: