The SDK return a List of String when it should return a List of Label [BUG]: #112
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 while trying to retrieve Label objects for an issue on GitHub.
https://github.dev/octokit/dotnet-sdk/blob/main/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs
The GitHub.Models.Issue class defines the label property as a List. Based on the API response it should be a
List<Label>
Here is the API call I used:
response from the API call (taken from postman)
I want to get the Labels field of this issue which is a
List<Label>
.Here I am trying to get the Labels field of an issue. The type of the label field is a
List<String>
but I expect the labels field to be a List where each label object is structured as follows:on line 3 I get the following error message
I am currently receiving a List where the size is 2(for example) and both string [0] and string [1] are null even when [0] has a value and [1] has a value. This is contrary to the actual values in the response. Why is the labels field from the API returning a List instead of a List? what is the datatype of labels field in an issue object.
Versions
0.0.24
Code of Conduct
The text was updated successfully, but these errors were encountered: