You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public struct ListAllMyBucketsResult: Codable {
public let buckets: [Bucket]
public let owner: Owner
public struct Bucket: Codable {
public let name: String
public let creationDate: Date
enum CodingKeys: String, CodingKey {
case name = "Name"
case creationDate = "CreationDate"
}
}
public struct Owner: Codable {
public let id: String
public let displayName: String
enum CodingKeys: String, CodingKey {
case id = "ID"
case displayName = "DisplayName"
}
}
enum CodingKeys: String, CodingKey {
case buckets = "Buckets"
case owner = "Owner"
}
}
I am getting this error:
debugDescription : "No attribute or element found for key CodingKeys(stringValue: \"Name\", intValue: nil) (\"Name\")."
Thanks for helping,sorry if this is not allowed here.
The text was updated successfully, but these errors were encountered:
Hey! How're you decoding this? Normally I'd expect a different error message if you're decoding ListAllMyBucketsResult. I'm missing the path to the Name key specifically, which should include the parent Buckets
I am trying to decode this response
My structure looks like this.
I am getting this error:
debugDescription : "No attribute or element found for key CodingKeys(stringValue: \"Name\", intValue: nil) (\"Name\")."
Thanks for helping,sorry if this is not allowed here.
The text was updated successfully, but these errors were encountered: