{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/674","labels_url":"https://api.github.com/repos/octokit/octokit.net/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.net/issues/674/comments","events_url":"https://api.github.com/repos/octokit/octokit.net/issues/674/events","html_url":"https://github.com/octokit/octokit.net/pull/674","id":53979291,"number":674,"title":"Adds truncated attribute to TreeResponse.","user":{"login":"Zoltu","id":886059,"avatar_url":"https://avatars.githubusercontent.com/u/886059?v=3","gravatar_id":"","url":"https://api.github.com/users/Zoltu","html_url":"https://github.com/Zoltu","followers_url":"https://api.github.com/users/Zoltu/followers","following_url":"https://api.github.com/users/Zoltu/following{/other_user}","gists_url":"https://api.github.com/users/Zoltu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoltu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoltu/subscriptions","organizations_url":"https://api.github.com/users/Zoltu/orgs","repos_url":"https://api.github.com/users/Zoltu/repos","events_url":"https://api.github.com/users/Zoltu/events{/privacy}","received_events_url":"https://api.github.com/users/Zoltu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shiftkey","id":359239,"avatar_url":"https://avatars.githubusercontent.com/u/359239?v=3","gravatar_id":"","url":"https://api.github.com/users/shiftkey","html_url":"https://github.com/shiftkey","followers_url":"https://api.github.com/users/shiftkey/followers","following_url":"https://api.github.com/users/shiftkey/following{/other_user}","gists_url":"https://api.github.com/users/shiftkey/gists{/gist_id}","starred_url":"https://api.github.com/users/shiftkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiftkey/subscriptions","organizations_url":"https://api.github.com/users/shiftkey/orgs","repos_url":"https://api.github.com/users/shiftkey/repos","events_url":"https://api.github.com/users/shiftkey/events{/privacy}","received_events_url":"https://api.github.com/users/shiftkey/received_events","type":"User","site_admin":true},"milestone":null,"comments":3,"created_at":"2015-01-11T02:30:44Z","updated_at":"2015-01-11T22:21:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/674","html_url":"https://github.com/octokit/octokit.net/pull/674","diff_url":"https://github.com/octokit/octokit.net/pull/674.diff","patch_url":"https://github.com/octokit/octokit.net/pull/674.patch"},"body":"See https://developer.github.com/v3/git/trees/#get-a-tree for details on the truncated attribute.\r\n\r\nI am operating under the assumption that if a property is missing from the json object then the property will be set to its default value (false in this case).\r\n\r\nI'm not sure how to test this.  If someone can point me at some existing tests that validate the json deserializer behaves correctly in certain scenarios (like when the property is missing) I can add some test coverage.  Though, if using an off-the-shelf deserializer then perhaps that wouldn't be testing anything meaningful in the library."},"comment":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/comments/69514740","html_url":"https://github.com/octokit/octokit.net/pull/674#issuecomment-69514740","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/674","id":69514740,"user":{"login":"shiftkey","id":359239,"avatar_url":"https://avatars.githubusercontent.com/u/359239?v=3","gravatar_id":"","url":"https://api.github.com/users/shiftkey","html_url":"https://github.com/shiftkey","followers_url":"https://api.github.com/users/shiftkey/followers","following_url":"https://api.github.com/users/shiftkey/following{/other_user}","gists_url":"https://api.github.com/users/shiftkey/gists{/gist_id}","starred_url":"https://api.github.com/users/shiftkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiftkey/subscriptions","organizations_url":"https://api.github.com/users/shiftkey/orgs","repos_url":"https://api.github.com/users/shiftkey/repos","events_url":"https://api.github.com/users/shiftkey/events{/privacy}","received_events_url":"https://api.github.com/users/shiftkey/received_events","type":"User","site_admin":true},"created_at":"2015-01-11T22:21:38Z","updated_at":"2015-01-11T22:21:38Z","body":"> I don't know of a public repo returns a truncated tree so that is difficult to integration test.\r\n\r\nDon't worry about it. Happy to leave this as-is.\r\n\r\n"}}