I have a struct like -
struct Attachment : Codable {
var reviewA : [String]?
var reviewB : String?
}
Now earlier the API was returning string only which I can set in reviewB
but now it has 3 cases. It can either be empty string (""), array of strings(["",""]) or single string ("dummy"). Now, my console gives error - Expected to decode String but found an array instead
How should I resolve it?