-
Notifications
You must be signed in to change notification settings - Fork 10
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
[BUG]: Users[].GetAsync() does not return correct data #87
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
Ooh, interesting find. I've confirmed this, and when you remove the I'm going to file an issue with Kiota for this. |
Reported upstream at microsoft/kiota#4844! |
The upstream issue seems to have been closed due to a lack of activity. Looks like they say the OpenAPI schema is wrong as it doesn't have a discriminator? |
Yep, they're correct. We need to update the schema internally; our team just hasn't had the time yet. We'll keep this open and return to it when we can! |
Kiota v1.20.0 was released yesterday, and that looks like it contains the bug fix you needed to be able to resolve this? |
Wanted to chime in and mention I see the same behavior with the API call to get the currently authenticated user of the client (i.e. |
What happened?
Using the
GitHubClient.Users[].GetAsync()
returns a value with a null value for thePublicUser
andPrivateUser
properties.The generated code to call
/users/{login}
appears to not be expecting the correct payload:I would expect it to just return the user as-is:
Versions
0.0.16
Code of Conduct
The text was updated successfully, but these errors were encountered: