@rileytestut You should see this [unrelated] shitheap I'm in the midst of writing right now.
(Turns out Swift's Decodable is 😗👌🏻... until you have a heterogenous array, and then it gets real ugly real fast.)
@caseyliss oooof I can relate 😅 Was doing something similar recently (serializing NSError + userInfo via Codable) and ended up using an enum to represent heterogenous userInfo values…but it’s very boilerplate-y and doesn’t support arbitrary types https://github.com/rileytestut/AltStore/blob/0eeee699148d639d3fa4f9a061ac80d7850e5c38/Shared/Server%20Protocol/CodableError.swift#L24
If only `AnyCodable` was a thing 🙃
@rileytestut @caseyliss Funny you should say that! There is an “AnyCodable” library here. I think most apps I’ve built use it, via OpenAPI Generator.