Closed OoLunar closed 2 months 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! 🚀
When attempting to deserialize a successful rest request response from
https://api.github.com/repos/{owner}/{repository}
toOctokit.Webhooks.Models.Repository
This library isn't designed to deserialize REST API Responses. I think you might be looking for https://github.com/octokit/octokit.net
@OoLunar I'm closing this for now, as I don't believe this library is the correct one for what you're doing. Please leave a comment if I've misunderstood and I can re-open the issue.
What happened?
When attempting to deserialize a successful rest request response from
https://api.github.com/repos/{owner}/{repository}
toOctokit.Webhooks.Models.Repository
, STJ will throw the following exception:I suspect this is because
Octokit.Webhooks.Models.Repository
should be of typeOctokit.Webhooks.Models.Organization
instead of astring
. When reproducing, ensure the repository you're calling the route on belongs to an organization, not a user.Versions
8.0.302
Octokit.Webhooks
NuGet package:2.2.2
Relevant log output
No response
Code of Conduct