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.Attributes.Status is missing case `PROCESSING` #284

Open JJdeGroot opened 2 months ago

JJdeGroot commented 2 months ago

The Device.Attributes.Status enum is missing the case PROCESSING

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

Response:

{
  "data" : {
    "type" : "devices",
    "id" : "XXX",
    "attributes" : {
      "addedDate" : "2024-08-22T14:48:45.638+00:00",
      "name" : "XXX",
      "deviceClass" : "IPAD",
      "model" : "XXX",
      "udid" : "XXX",
      "platform" : "XXX",
      "status" : "PROCESSING"
    },
    "links" : {
      "self" : "https://api.appstoreconnect.apple.com/v1/devices/XXX"
    }
  },
  "links" : {
    "self" : "https://api.appstoreconnect.apple.com/v1/devices"
  }
}
JJdeGroot commented 2 months ago

It's not listed on https://developer.apple.com/documentation/appstoreconnectapi/list_devices and I guess it's also not in the OpenAPI specification...

JJdeGroot commented 2 months ago

OpenAPI specification is also missing the value.

{
  "name" : "filter[status]",
  "in" : "query",
  "description" : "filter by attribute 'status'",
  "schema" : {
    "type" : "array",
    "items" : {
      "type" : "string",
      "enum" : [ "ENABLED", "DISABLED" ]
    }
  },

Filed a bug report at Apple: FB14889763

github-actions[bot] commented 1 month 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.

JJdeGroot commented 1 month ago

Issue is not Stale

github-actions[bot] commented 3 weeks 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.

JJdeGroot commented 3 weeks ago

Issue is not Stale