-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement GetAllAsync so we can inspect the status code #240
Comments
Let's see if I have understood this one correctly... For example in the ReferencesClient we have GetAll and GetAllForSubNamespace, which call ApiConnection.GetAll<>. And this should be done for all the GetAll type methods? |
It's kinda fiddly, which is why I put it aside but here's the abridged version:
octokit.net/Octokit/Http/ApiConnection.cs Line 112 in bc82697
Perhaps we should have a consistent response inside The example I'd like to get passing as part of this is #242 - because when you specify a namespace that is not valid, you should get a specific error message rather than an empty collection. |
OK, I'll see if I can come up with some ingenious solution to said problem 😆 |
We could pass in the URI being called to the That would at least inform the user specifically what was not found, instead of just _Not Found_. New signature of
So the example test for #242 would look like:
Happy to discuss, I have made changes locally with the above scenario in mind, I can send it through PR for review if you like. |
@alfhenrik I like it |
Some parts of the API should show a specific error message when you:
Relates to #238
The text was updated successfully, but these errors were encountered: