Merge branch 'release/1.2.2'
This commit is contained in:
@@ -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