Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null exams field leads to decoding issue #185

Open
Archichil opened this issue Aug 9, 2024 · 0 comments
Open

Null exams field leads to decoding issue #185

Archichil opened this issue Aug 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Archichil
Copy link

Archichil commented Aug 9, 2024

The API response contains "exams": null (ex.451001 451001.json), which results in valueNotFound(Swift.Array<Any>, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "exams", intValue: nil)], debugDescription: "Cannot get unkeyed decoding container -- found null value instead", underlyingError: nil)). This group is new to uni and don't have a schedule yet, so some fields are unexpectedly null. This problem can be solved by setting public let examSchedules: [Pair] optional. Is it worth doing this? I don't know :) Another unusual move made by ЦИИР.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant