Skip to content

Commit 5c0c84e

Browse files
committed
Thread IDs are Strings, not Integer
The THREAD resource (used to document Notifications) states that the ID is returned as an Integer, where in fact is returned as a String. For instance, if I run curl -u [KEY]:x-oauth-basic https://api.github.com/notifications I obtain the following result (truncated): [ { "id": "18765913", "unread": true, "reason": "mention", "updated_at": "2013-10-21T15:52:16Z", "last_read_at": null, ... } ]
1 parent e68bb06 commit 5c0c84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resources.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ def text_html(response, status, head = {})
15351535
}
15361536

15371537
THREAD = {
1538-
:id => 1,
1538+
:id => "1",
15391539
:repository => SIMPLE_REPO,
15401540
:subject => {
15411541
:title => "Greetings",

0 commit comments

Comments
 (0)