Our great sponsors
-
scout
Reading and writing in JSON, Plist, YAML and XML data made simple when the data format is not known at build time. Swift library and command-line tool. (by ABridoux)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I have been working myself on Scout to work on data when the format is not known at build time (for instance with a generic command line tool). And I have never had the tuple decoding requested. Although this might be useful for some people.
From what I understand, you are not the only one trying those ideas. For instance BackedCodable uses property wrappers to use a custom strategy to decode a property. I myself had to implement a similar logic to decode a Plist configuration file where keys are sometime required only when another is not present. I similarly use property wrappers with mirroring.