Closed briviere closed 2 years ago
Did you extend a User
type in any way? I'm seeing a similar error when I attempt to decode Date
without passing a decoding strategy. I'll provide a way to inject the strategy.
I think the reason here is that User
response doesn't follow GitHub API definition. For the mentioned briviere
user hireable
field is null. See #5
Thanks, #5 has resolved this issue.
If I try to lookup a different api.github.com/users/briviere the test fails with the following within the APIClient.Serializer.decode actor:
test case:
final class APIClientIntegrationTests: XCTestCase { var sut: APIClient!
}
Exception:
Printing description of data: ▿ 1282 bytes