Open martincostello opened 1 month ago
👋 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 Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Ooh, interesting find. I've confirmed this, and when you remove the if ("private-user".Equals(value, StringComparison.OrdinalIgnoreCase))
logic, the response gets populated exactly as you'd expect.
I'm going to file an issue with Kiota for this.
Reported upstream at https://github.com/microsoft/kiota/issues/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?
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