AvdLee / appstoreconnect-swift-sdk

The Swift SDK to work with the App Store Connect API from Apple.
Other
1.48k stars 198 forks source link

Device entity status enum missing PROCESSING #250

Closed wang9262 closed 11 months ago

wang9262 commented 1 year ago

Xcode debug console output:

Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [StringCodingKey(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 4", intValue: 4), StringCodingKey(stringValue: "attributes", intValue: nil), StringCodingKey(stringValue: "status", intValue: nil)], debugDescription: "Cannot initialize Status from invalid String value PROCESSING", underlyingError: nil)).

the json is as below

{
    "type" : "devices",
    "id" : "xxxxxxxxx",
    "attributes" : {
      "addedDate" : "2023-10-15T05:58:37.000+00:00",
      "name" : "Device-name",
      "deviceClass" : "IPHONE",
      "model" : "iPhone 8",
      "udid" : "udid",
      "platform" : "IOS",
      "status" : "PROCESSING"
    },
    "links" : {
      "self" : "https://api.appstoreconnect.apple.com/v1/devices/xxxxx"
    }
}

maybe we should update the spec

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.