{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/tozny/e3db-swift/pulls/14","id":176318093,"html_url":"https://github.com/tozny/e3db-swift/pull/14","diff_url":"https://github.com/tozny/e3db-swift/pull/14.diff","patch_url":"https://github.com/tozny/e3db-swift/pull/14.patch","issue_url":"https://api.github.com/repos/tozny/e3db-swift/issues/14","number":14,"state":"closed","locked":false,"title":"Make EAKInfo and internals conform to Codable","user":{"login":"gstro","id":730235,"avatar_url":"https://avatars0.githubusercontent.com/u/730235?v=4","gravatar_id":"","url":"https://api.github.com/users/gstro","html_url":"https://github.com/gstro","followers_url":"https://api.github.com/users/gstro/followers","following_url":"https://api.github.com/users/gstro/following{/other_user}","gists_url":"https://api.github.com/users/gstro/gists{/gist_id}","starred_url":"https://api.github.com/users/gstro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstro/subscriptions","organizations_url":"https://api.github.com/users/gstro/orgs","repos_url":"https://api.github.com/users/gstro/repos","events_url":"https://api.github.com/users/gstro/events{/privacy}","received_events_url":"https://api.github.com/users/gstro/received_events","type":"User","site_admin":false},"body":"- This allows easy serialization for storing the eak to disk\r\n  via Swift's `Encodable` and `Decodable` protocols\r\n- Chose to expose the internal members as public to match Java a bit\r\n- Users cannot create `EAKInfo` structs directly, but they can `getReaderKey`\r\n  or use some decoder, e.g.\r\n```swift\r\n// assuming eakData was stored with JSONEncoder()\r\nlet eakFromDisk = try JSONDecoder().decode(EAKInfo.self, eakData)\r\n```","created_at":"2018-03-20T20:48:32Z","updated_at":"2018-03-20T23:09:22Z","closed_at":"2018-03-20T23:09:22Z","merged_at":"2018-03-20T23:09:22Z","merge_commit_sha":"1a656619cd944254e7fa611d36d4eabcd454526e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tgjamin","id":3444589,"avatar_url":"https://avatars1.githubusercontent.com/u/3444589?v=4","gravatar_id":"","url":"https://api.github.com/users/tgjamin","html_url":"https://github.com/tgjamin","followers_url":"https://api.github.com/users/tgjamin/followers","following_url":"https://api.github.com/users/tgjamin/following{/other_user}","gists_url":"https://api.github.com/users/tgjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgjamin/subscriptions","organizations_url":"https://api.github.com/users/tgjamin/orgs","repos_url":"https://api.github.com/users/tgjamin/repos","events_url":"https://api.github.com/users/tgjamin/events{/privacy}","received_events_url":"https://api.github.com/users/tgjamin/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tozny/e3db-swift/pulls/14/commits","review_comments_url":"https://api.github.com/repos/tozny/e3db-swift/pulls/14/comments","review_comment_url":"https://api.github.com/repos/tozny/e3db-swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tozny/e3db-swift/issues/14/comments","statuses_url":"https://api.github.com/repos/tozny/e3db-swift/statuses/f88f503286ea3eaa24522c852910afd744ad261c","head":{"label":"tozny:gstro/encodable-eak","ref":"gstro/encodable-eak","sha":"f88f503286ea3eaa24522c852910afd744ad261c","user":{"login":"tozny","id":4185639,"avatar_url":"https://avatars2.githubusercontent.com/u/4185639?v=4","gravatar_id":"","url":"https://api.github.com/users/tozny","html_url":"https://github.com/tozny","followers_url":"https://api.github.com/users/tozny/followers","following_url":"https://api.github.com/users/tozny/following{/other_user}","gists_url":"https://api.github.com/users/tozny/gists{/gist_id}","starred_url":"https://api.github.com/users/tozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tozny/subscriptions","organizations_url":"https://api.github.com/users/tozny/orgs","repos_url":"https://api.github.com/users/tozny/repos","events_url":"https://api.github.com/users/tozny/events{/privacy}","received_events_url":"https://api.github.com/users/tozny/received_events","type":"Organization","site_admin":false},"repo":{"id":99860897,"name":"e3db-swift","full_name":"tozny/e3db-swift","owner":{"login":"tozny","id":4185639,"avatar_url":"https://avatars2.githubusercontent.com/u/4185639?v=4","gravatar_id":"","url":"https://api.github.com/users/tozny","html_url":"https://github.com/tozny","followers_url":"https://api.github.com/users/tozny/followers","following_url":"https://api.github.com/users/tozny/following{/other_user}","gists_url":"https://api.github.com/users/tozny/gists{/gist_id}","starred_url":"https://api.github.com/users/tozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tozny/subscriptions","organizations_url":"https://api.github.com/users/tozny/orgs","repos_url":"https://api.github.com/users/tozny/repos","events_url":"https://api.github.com/users/tozny/events{/privacy}","received_events_url":"https://api.github.com/users/tozny/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tozny/e3db-swift","description":"Client SDK in Swift for Tozny's E3DB.","fork":false,"url":"https://api.github.com/repos/tozny/e3db-swift","forks_url":"https://api.github.com/repos/tozny/e3db-swift/forks","keys_url":"https://api.github.com/repos/tozny/e3db-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tozny/e3db-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tozny/e3db-swift/teams","hooks_url":"https://api.github.com/repos/tozny/e3db-swift/hooks","issue_events_url":"https://api.github.com/repos/tozny/e3db-swift/issues/events{/number}","events_url":"https://api.github.com/repos/tozny/e3db-swift/events","assignees_url":"https://api.github.com/repos/tozny/e3db-swift/assignees{/user}","branches_url":"https://api.github.com/repos/tozny/e3db-swift/branches{/branch}","tags_url":"https://api.github.com/repos/tozny/e3db-swift/tags","blobs_url":"https://api.github.com/repos/tozny/e3db-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tozny/e3db-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tozny/e3db-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/tozny/e3db-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tozny/e3db-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/tozny/e3db-swift/languages","stargazers_url":"https://api.github.com/repos/tozny/e3db-swift/stargazers","contributors_url":"https://api.github.com/repos/tozny/e3db-swift/contributors","subscribers_url":"https://api.github.com/repos/tozny/e3db-swift/subscribers","subscription_url":"https://api.github.com/repos/tozny/e3db-swift/subscription","commits_url":"https://api.github.com/repos/tozny/e3db-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/tozny/e3db-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/tozny/e3db-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/tozny/e3db-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/tozny/e3db-swift/contents/{+path}","compare_url":"https://api.github.com/repos/tozny/e3db-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tozny/e3db-swift/merges","archive_url":"https://api.github.com/repos/tozny/e3db-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tozny/e3db-swift/downloads","issues_url":"https://api.github.com/repos/tozny/e3db-swift/issues{/number}","pulls_url":"https://api.github.com/repos/tozny/e3db-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/tozny/e3db-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/tozny/e3db-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tozny/e3db-swift/labels{/name}","releases_url":"https://api.github.com/repos/tozny/e3db-swift/releases{/id}","deployments_url":"https://api.github.com/repos/tozny/e3db-swift/deployments","created_at":"2017-08-09T23:29:01Z","updated_at":"2018-03-20T19:05:30Z","pushed_at":"2018-03-20T23:09:22Z","git_url":"git://github.com/tozny/e3db-swift.git","ssh_url":"git@github.com:tozny/e3db-swift.git","clone_url":"https://github.com/tozny/e3db-swift.git","svn_url":"https://github.com/tozny/e3db-swift","homepage":null,"size":1058,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"tozny:master","ref":"master","sha":"1949b5a4d5f1ef7d30c08fddb590d252e39a6b90","user":{"login":"tozny","id":4185639,"avatar_url":"https://avatars2.githubusercontent.com/u/4185639?v=4","gravatar_id":"","url":"https://api.github.com/users/tozny","html_url":"https://github.com/tozny","followers_url":"https://api.github.com/users/tozny/followers","following_url":"https://api.github.com/users/tozny/following{/other_user}","gists_url":"https://api.github.com/users/tozny/gists{/gist_id}","starred_url":"https://api.github.com/users/tozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tozny/subscriptions","organizations_url":"https://api.github.com/users/tozny/orgs","repos_url":"https://api.github.com/users/tozny/repos","events_url":"https://api.github.com/users/tozny/events{/privacy}","received_events_url":"https://api.github.com/users/tozny/received_events","type":"Organization","site_admin":false},"repo":{"id":99860897,"name":"e3db-swift","full_name":"tozny/e3db-swift","owner":{"login":"tozny","id":4185639,"avatar_url":"https://avatars2.githubusercontent.com/u/4185639?v=4","gravatar_id":"","url":"https://api.github.com/users/tozny","html_url":"https://github.com/tozny","followers_url":"https://api.github.com/users/tozny/followers","following_url":"https://api.github.com/users/tozny/following{/other_user}","gists_url":"https://api.github.com/users/tozny/gists{/gist_id}","starred_url":"https://api.github.com/users/tozny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tozny/subscriptions","organizations_url":"https://api.github.com/users/tozny/orgs","repos_url":"https://api.github.com/users/tozny/repos","events_url":"https://api.github.com/users/tozny/events{/privacy}","received_events_url":"https://api.github.com/users/tozny/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tozny/e3db-swift","description":"Client SDK in Swift for Tozny's E3DB.","fork":false,"url":"https://api.github.com/repos/tozny/e3db-swift","forks_url":"https://api.github.com/repos/tozny/e3db-swift/forks","keys_url":"https://api.github.com/repos/tozny/e3db-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tozny/e3db-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tozny/e3db-swift/teams","hooks_url":"https://api.github.com/repos/tozny/e3db-swift/hooks","issue_events_url":"https://api.github.com/repos/tozny/e3db-swift/issues/events{/number}","events_url":"https://api.github.com/repos/tozny/e3db-swift/events","assignees_url":"https://api.github.com/repos/tozny/e3db-swift/assignees{/user}","branches_url":"https://api.github.com/repos/tozny/e3db-swift/branches{/branch}","tags_url":"https://api.github.com/repos/tozny/e3db-swift/tags","blobs_url":"https://api.github.com/repos/tozny/e3db-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tozny/e3db-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tozny/e3db-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/tozny/e3db-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tozny/e3db-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/tozny/e3db-swift/languages","stargazers_url":"https://api.github.com/repos/tozny/e3db-swift/stargazers","contributors_url":"https://api.github.com/repos/tozny/e3db-swift/contributors","subscribers_url":"https://api.github.com/repos/tozny/e3db-swift/subscribers","subscription_url":"https://api.github.com/repos/tozny/e3db-swift/subscription","commits_url":"https://api.github.com/repos/tozny/e3db-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/tozny/e3db-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/tozny/e3db-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/tozny/e3db-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/tozny/e3db-swift/contents/{+path}","compare_url":"https://api.github.com/repos/tozny/e3db-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tozny/e3db-swift/merges","archive_url":"https://api.github.com/repos/tozny/e3db-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tozny/e3db-swift/downloads","issues_url":"https://api.github.com/repos/tozny/e3db-swift/issues{/number}","pulls_url":"https://api.github.com/repos/tozny/e3db-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/tozny/e3db-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/tozny/e3db-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tozny/e3db-swift/labels{/name}","releases_url":"https://api.github.com/repos/tozny/e3db-swift/releases{/id}","deployments_url":"https://api.github.com/repos/tozny/e3db-swift/deployments","created_at":"2017-08-09T23:29:01Z","updated_at":"2018-03-20T19:05:30Z","pushed_at":"2018-03-20T23:09:22Z","git_url":"git://github.com/tozny/e3db-swift.git","ssh_url":"git@github.com:tozny/e3db-swift.git","clone_url":"https://github.com/tozny/e3db-swift.git","svn_url":"https://github.com/tozny/e3db-swift","homepage":null,"size":1058,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tozny/e3db-swift/pulls/14"},"html":{"href":"https://github.com/tozny/e3db-swift/pull/14"},"issue":{"href":"https://api.github.com/repos/tozny/e3db-swift/issues/14"},"comments":{"href":"https://api.github.com/repos/tozny/e3db-swift/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/tozny/e3db-swift/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/tozny/e3db-swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tozny/e3db-swift/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/tozny/e3db-swift/statuses/f88f503286ea3eaa24522c852910afd744ad261c"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"gstro","id":730235,"avatar_url":"https://avatars0.githubusercontent.com/u/730235?v=4","gravatar_id":"","url":"https://api.github.com/users/gstro","html_url":"https://github.com/gstro","followers_url":"https://api.github.com/users/gstro/followers","following_url":"https://api.github.com/users/gstro/following{/other_user}","gists_url":"https://api.github.com/users/gstro/gists{/gist_id}","starred_url":"https://api.github.com/users/gstro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstro/subscriptions","organizations_url":"https://api.github.com/users/gstro/orgs","repos_url":"https://api.github.com/users/gstro/repos","events_url":"https://api.github.com/users/gstro/events{/privacy}","received_events_url":"https://api.github.com/users/gstro/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":58,"deletions":13,"changed_files":4}}
{"actor":{"display_login":"gstro"}}