{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/comments/244829897","pull_request_review_id":188783310,"id":244829897,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDgyOTg5Nw==","diff_hunk":"@@ -680,4 +680,81 @@ final class DocumentTests: MongoSwiftTestCase {\n         expect(doc[\"autoclosure test\", default: \"\\(stringVal) and \\(floatVal)\" + stringVal])\n             .to(bsonEqual(\"\\(stringVal) and \\(floatVal)\" + stringVal))\n     }\n+\n+    func testDateEncodingStrategies() throws {\n+        // swiftlint:disable nesting\n+        struct DateWrapper: Codable {\n+            let date: Date\n+        }\n+        // swiftlint:enable nesting\n+\n+        let date = Date(timeIntervalSince1970: 123)\n+        let dateStruct = DateWrapper(date: date)\n+\n+        let encoder = BSONEncoder()\n+\n+        let defaultEncoding = try encoder.encode(dateStruct)\n+        expect(defaultEncoding[\"date\"] as? Date).to(equal(date))\n+\n+        encoder.dateEncodingStrategy = .bsonDate\n+        let bsonDate = try encoder.encode(dateStruct)\n+        expect(bsonDate[\"date\"] as? Date).to(equal(date))\n+\n+        encoder.dateEncodingStrategy = .secondsSince1970\n+        let secondsSince1970 = try encoder.encode(dateStruct)\n+        expect(secondsSince1970[\"date\"] as? TimeInterval).to(equal(date.timeIntervalSince1970))\n+\n+        encoder.dateEncodingStrategy = .millisecondsSince1970\n+        let millisecondsSince1970 = try encoder.encode(dateStruct)\n+        expect(millisecondsSince1970[\"date\"] as? Int64).to(equal(date.msSinceEpoch))\n+\n+        if #available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *) {\n+            encoder.dateEncodingStrategy = .iso8601\n+            let iso = try encoder.encode(dateStruct)\n+            expect(iso[\"date\"] as? String).to(equal(BSONEncoder.iso8601Formatter.string(from: date)))\n+        }\n+\n+        let formatter = DateFormatter()\n+        formatter.timeStyle = .full\n+        formatter.dateStyle = .short\n+\n+        encoder.dateEncodingStrategy = .formatted(formatter)\n+        let formatted = try encoder.encode(dateStruct)\n+        expect(formatted[\"date\"] as? String).to(equal(formatter.string(from: date)))\n+\n+        encoder.dateEncodingStrategy = .deferToDate\n+        let deferred = try encoder.encode(dateStruct)\n+        expect(deferred[\"date\"] as? TimeInterval).to(equal(date.timeIntervalSinceReferenceDate))\n+\n+        encoder.dateEncodingStrategy = .custom({ d in Int64(d.timeIntervalSince1970 + 12) })\n+        let custom = try encoder.encode(dateStruct)\n+        expect(custom[\"date\"] as? Int64).to(equal(Int64(date.timeIntervalSince1970 + 12)))\n+    }\n+\n+    func testUUIDEncodingStrategies() throws {\n+        // swiftlint:disable nesting\n+        struct UUIDWrapper: Encodable {\n+            let uuid: UUID\n+        }\n+        // swiftlint:enable nesting\n+\n+        guard let uuid = UUID(uuidString: \"26cd7610-fd5a-4253-94b7-e8c4ea97b6cb\") else {","path":"Tests/MongoSwiftTests/DocumentTests.swift","position":62,"original_position":62,"commit_id":"e586643b910794a472a3b248677b0ba097565624","original_commit_id":"e586643b910794a472a3b248677b0ba097565624","user":{"login":"kmahar","id":5976377,"node_id":"MDQ6VXNlcjU5NzYzNzc=","avatar_url":"https://avatars0.githubusercontent.com/u/5976377?v=4","gravatar_id":"","url":"https://api.github.com/users/kmahar","html_url":"https://github.com/kmahar","followers_url":"https://api.github.com/users/kmahar/followers","following_url":"https://api.github.com/users/kmahar/following{/other_user}","gists_url":"https://api.github.com/users/kmahar/gists{/gist_id}","starred_url":"https://api.github.com/users/kmahar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmahar/subscriptions","organizations_url":"https://api.github.com/users/kmahar/orgs","repos_url":"https://api.github.com/users/kmahar/repos","events_url":"https://api.github.com/users/kmahar/events{/privacy}","received_events_url":"https://api.github.com/users/kmahar/received_events","type":"User","site_admin":false},"body":"I'm fine with leaving this as throwing an error, but just as an FYI, in cases like this in tests where you are passing in a valid constant and know initialization will succeed it's fine to just force unwrap the result (force-unwrap rule is disabled for tests for this reason). ","created_at":"2019-01-02T19:30:05Z","updated_at":"2019-01-02T19:56:20Z","html_url":"https://github.com/mongodb/mongo-swift-driver/pull/178#discussion_r244829897","pull_request_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/comments/244829897"},"html":{"href":"https://github.com/mongodb/mongo-swift-driver/pull/178#discussion_r244829897"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178","id":240336119,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMzM2MTE5","html_url":"https://github.com/mongodb/mongo-swift-driver/pull/178","diff_url":"https://github.com/mongodb/mongo-swift-driver/pull/178.diff","patch_url":"https://github.com/mongodb/mongo-swift-driver/pull/178.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/178","number":178,"state":"open","locked":false,"title":"SWIFT-282 Allow .uuidEncodingStrategy and .dateEncodingStrategy to be set on BSONEncoder","user":{"login":"patrickfreed","id":936020,"node_id":"MDQ6VXNlcjkzNjAyMA==","avatar_url":"https://avatars0.githubusercontent.com/u/936020?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickfreed","html_url":"https://github.com/patrickfreed","followers_url":"https://api.github.com/users/patrickfreed/followers","following_url":"https://api.github.com/users/patrickfreed/following{/other_user}","gists_url":"https://api.github.com/users/patrickfreed/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickfreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickfreed/subscriptions","organizations_url":"https://api.github.com/users/patrickfreed/orgs","repos_url":"https://api.github.com/users/patrickfreed/repos","events_url":"https://api.github.com/users/patrickfreed/events{/privacy}","received_events_url":"https://api.github.com/users/patrickfreed/received_events","type":"User","site_admin":false},"body":"[SWIFT-282](https://jira.mongodb.org/browse/SWIFT-282)\r\n\r\nThis PR adds the ability to specify encoding strategies for `Date`s and `UUID`s. The strategies for both match their corresponding decoding strategies defined in #176 . \r\n\r\nHowever, for the `.custom` strategy, I deviated from the implementation that `JSONEncoder` chose. Ours is defined as `.custom((Date) throws -> BSONValue)`, whereas theirs is `.custom((Date, Encoder) throws -> Void)`. \r\nFrom our perspective, it makes more sense due to the context in which the closure is used (i.e. within `box(...) -> BSONValue`). In `JSONEncoder`, they use it in a similar context, so they just pop whatever the user added to the encoder and return it to be added on later anyways. If the user didn't add anything, they return an empty `NSContainer`. For us, we would have to either return a `BSONNull` or throw, both of which I think are unsavory. Also, in the event that the closure throws, they manually clean up the encoder state, which I think is needless overhead.\r\nFrom the user's perspective, it is also nice that they simply need to supply a closure that translates a `Date` to a `BSONValue` instead of having to deal with encoder logic themselves, and this is closer to the whole point of `.custom` anyways.\r\n\r\nThe same arguments apply for the decoding version of `.custom` as well. I think, for decoding, `.custom((BSONValue) throws -> Date)` would make more sense than the current `.custom((Decoder) throws -> Date)`, and it would parallel what I've proposed here nicely.\r\n\r\ne.g. the following would hold\r\n```\r\nlet date = Date()\r\nlet wrapper = DateWrapper(date: date)\r\nlet decoding: (BSONValue) -> Date = { bv in Date(msSinceEpoch: bv as! Int64) }\r\nlet encoding: (Date) -> BSONValue = { date in date.msSinceEpoch }\r\ndecoder.dateDecodingStrategy = .custom(decoding)\r\nencoder.dateEncodingStrategy = .custom(encoding)\r\n\r\nexpect(decoding(encoding(date)).to(equal(date))\r\nexpect(try decoder.decode(DateWrapper.self, from: try encoder.encode(wrapper)).date).to(equal(date))\r\n```  \r\n\r\nThoughts on this? I know we generally try to stick to what `JSONDecoder` does, but I think this way has both more value and less headache.\r\n\r\nAlso, this PR has some missing comments and has some duplication from the preceding one. Once the other merges, I will rebase this off that and put the pieces together. All of the important implementation is complete.","created_at":"2018-12-21T00:00:16Z","updated_at":"2019-01-02T19:56:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83e41f736496f1ae9ef469f8e3290f0cdd4e309e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mbroadst","id":312966,"node_id":"MDQ6VXNlcjMxMjk2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/312966?v=4","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/178/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/statuses/e586643b910794a472a3b248677b0ba097565624","head":{"label":"mongodb:SWIFT-282","ref":"SWIFT-282","sha":"e586643b910794a472a3b248677b0ba097565624","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":118030974,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgwMzA5NzQ=","name":"mongo-swift-driver","full_name":"mongodb/mongo-swift-driver","private":false,"owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mongodb/mongo-swift-driver","description":"The Swift driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-swift-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/deployments","created_at":"2018-01-18T19:55:11Z","updated_at":"2018-12-31T13:09:37Z","pushed_at":"2019-01-02T19:54:20Z","git_url":"git://github.com/mongodb/mongo-swift-driver.git","ssh_url":"git@github.com:mongodb/mongo-swift-driver.git","clone_url":"https://github.com/mongodb/mongo-swift-driver.git","svn_url":"https://github.com/mongodb/mongo-swift-driver","homepage":"","size":8205,"stargazers_count":64,"watchers_count":64,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":7,"watchers":64,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"06b8f46665209c55d53f85b5da68d8d1301a78c2","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":118030974,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgwMzA5NzQ=","name":"mongo-swift-driver","full_name":"mongodb/mongo-swift-driver","private":false,"owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mongodb/mongo-swift-driver","description":"The Swift driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-swift-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-swift-driver/deployments","created_at":"2018-01-18T19:55:11Z","updated_at":"2018-12-31T13:09:37Z","pushed_at":"2019-01-02T19:54:20Z","git_url":"git://github.com/mongodb/mongo-swift-driver.git","ssh_url":"git@github.com:mongodb/mongo-swift-driver.git","clone_url":"https://github.com/mongodb/mongo-swift-driver.git","svn_url":"https://github.com/mongodb/mongo-swift-driver","homepage":"","size":8205,"stargazers_count":64,"watchers_count":64,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":7,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178"},"html":{"href":"https://github.com/mongodb/mongo-swift-driver/pull/178"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/178"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-swift-driver/statuses/e586643b910794a472a3b248677b0ba097565624"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kmahar"}}