Integer Overflow Issue When Retrieving PR Reviews with Large PR Numbers [BUG]: #106
Closed
1 task done
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
What happened?
I am encountering an issue when attempting to retrieve a list of reviews for pull requests. Specifically, when using certain PR numbers that returns review id numbers that exceed the maximum value for a 32-bit integer, the SDK throws an integer overflow error.
code snippet that produce the error:
the error:
sample data that int that causes the issue: https://api.github.com/repos/microsoft/kiota/pulls/4602/reviews?page=2
the integer 2147902723 causes an overflow since MaxValue = 2147483647 represents the max int32 value.
the Kiota open API spec: [raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml]
(https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml)
defines the id of the review id
looking into this the id should be an int64.
Versions
0.0.23
Code of Conduct
The text was updated successfully, but these errors were encountered: