serhii-londar / GithubAPI

Swift implementation of Github REST API v3
MIT License
86 stars 23 forks source link

RepositoriesAPI parse error #11

Open skywinder opened 4 years ago

skywinder commented 4 years ago
            let authentication = AccessTokenAuthentication(access_token: GITHUB_TOKEN)
            RepositoriesAPI(authentication: authentication).repositories(user: "skywinder", type: .all) { (response, error) in
                if response != nil {
                    print(response!)
                } else {
                    print(error ?? "empty response")
                }
                sema.signal()
            }

gets error:

typeMismatch(Swift.Array, Swift.DecodingError.Context(codingPath: [], debugDescription: "Expected to decode Array but found a dictionary instead.", underlyingError: nil))

Line 37

image