Compare commits
3 Commits
1.2.1
...
f93230cba7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f93230cba7 | ||
|
|
b78cda8f32 | ||
|
|
985853100b |
@@ -127,7 +127,10 @@ public struct Hermes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let result = try? JSONDecoder().decode(resource.modelType, from: data) else {
|
let decoder = JSONDecoder()
|
||||||
|
decoder.keyDecodingStrategy = .convertFromSnakeCase
|
||||||
|
|
||||||
|
guard let result = try? decoder.decode(resource.modelType, from: data) else {
|
||||||
throw NetworkError.decodingError
|
throw NetworkError.decodingError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user