Merge pull request #32 from TouchInstinct/fix/default_api_response

Updated typical api response
This commit is contained in:
Pavel 2017-12-07 19:30:34 +03:00 committed by GitHub
commit 126a68aa81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 0.1.3
- **Update**: Typical api response keys naming
## 0.1.2
- **Update**: Access modifiers of `ValidationService`

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.1.2"
s.version = "0.1.3"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions"
s.license = "Apache License, Version 2.0"

View File

@ -34,8 +34,8 @@ public class ApiResponse: ApiResponseProtocol, ImmutableMappable {
public required init(map: Map) throws {
result = try? map.value("result")
errorCode = try map.value("error_code")
errorMessage = try? map.value("error_message")
errorCode = try map.value("errorCode")
errorMessage = try? map.value("errorMessage")
}
}