[BUG]: The SDK returns a List of String for an issue where the values are null even when the values exist #116
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
What happened?
I am trying to get the labels from a GitHub issue . I am calling the GetAllIssuesAsync endpoint which returns all issues for a repository. Here each Issue contains the label field which is a type
List<string>
so I expect it to return a List of string where each string is the name of the label. something likestring[0] = "bug"
string[1] = "needs-triage"
but I am getting a List where the count = # of strings present in the list for that issue but I don't get the actual string. Each index is null in this list.
For example calling this api
https://api.github.com/repos/microsoftgraph/microsoft-graph-toolkit/issues/3172
on the browser I getHere we have two labels.
when I fetched this issue using kiota it returns
why is the two index null here?
After calling the endpoint GetAllIssuesAsync I create an Issue object
Notice that I am trying to retrieve the labels by calling issue.labels and I expect it to be list with the name of the labels as a string. But it returns a list of the size of the number of strings present in the list but each index is null.
Versions
0.0.24
Code of Conduct
The text was updated successfully, but these errors were encountered: