//
//  AppleMusicAPIError.swift
//  Cider
//
//  Created by Scott Hoyt on 8/9/17.
//  Copyright © 2017 Scott Hoyt. All rights reserved.
//

import Foundation

struct AppleMusicAPIError: Error, Codable {
    let id: String
    let about: String?
    let status: String
    let code: String
    let title: String
    let detail: String
    // let source: Source
    // let meta: Meta
}

//
//  AppleMusicAPIError.swift
//  Cider
//
//  Created by Scott Hoyt on 8/9/17.
//  Copyright © 2017 Scott Hoyt. All rights reserved.
//

import Foundation

struct AppleMusicAPIError: Error, Codable {
    let id: String
    let about: String
    let status: String
    let code: String
    let title: String
    let detail: String
    // let source: Source
    // let meta: Meta
}

--- 
+++ 
@@ -10,7 +10,7 @@
 
 struct AppleMusicAPIError: Error, Codable {
     let id: String
-    let about: String
+    let about: String?
     let status: String
     let code: String
     let title: String
Make about field in error object optional since it is not always present.
