-
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
How to handle files
in a gist response
#215
Comments
related to #216 |
I'm going to bet we don't handle that at all, but I haven't tried it. We might need to customize this case. Either "files" is a dynamic object OR files deserializes into a dictionary. The dictionary approach is my preference. |
If "files" is a |
I may have time to look into this on the weekend. |
@haacked but while we are here what is the value in returning a response like that? would not a simple list be better? |
@SimonCropp it would be better but for the sake of not overcomplicating the deserializing hooks (or breaking things completely) you can just enumerate the dictionary:
|
@shiftkey r u sure you would not prefer
and handle the fact that it is a dictionary internally? |
I guess it depends on whether it's useful to look up files by name. If not, then an |
well u can still look up by name since the name is also on the file. would just need a linq statement instead of a dictionary lookup. I think in this case there will be little perf difference. unless people have 1000s of files a gist... is this likely? |
Not likely so i agree with the list. :) |
collaboration FTW :) |
BTW is there any other place where you guys are doing custom deserialization so i can follow the same approach/conventions? |
ok so i noticed you guys already support dictionary. so i am being lazy and leaving it as that for now :) before i do a PR i have a couple of questions.
|
On Wed, Nov 13, 2013 at 5:48 PM, Simon Cropp notifications@github.comwrote:
|
Ah, let's make sure we're requesting the v3 media type then. |
Fairly certain we've sorted this with #225. Closing. |
From here
http://developer.github.com/v3/gists/#get-a-single-gist
the response will be
Note that each file node is named based on the name of the file. In this case the name is
ring.erl
.How would this be handled by the octokit deserializer?
The text was updated successfully, but these errors were encountered: