forked from loafle/openapi-generator-original
[swift] Validate response; return error in case if non 2xx status.
This commit is contained in:
@@ -75,7 +75,7 @@ class AlamofireRequestBuilder<T>: RequestBuilder<T> {
|
||||
request.authenticate(usingCredential: credential)
|
||||
}
|
||||
|
||||
request.responseJSON(options: .AllowFragments) { response in
|
||||
request.validate().responseJSON(options: .AllowFragments) { response in
|
||||
managerStore.removeValueForKey(managerId)
|
||||
|
||||
if response.result.isFailure {
|
||||
|
||||
Reference in New Issue
Block a user