{"action":"created","issue":{"url":"https://api.github.com/repos/http4s/http4s/issues/1651","repository_url":"https://api.github.com/repos/http4s/http4s","labels_url":"https://api.github.com/repos/http4s/http4s/issues/1651/labels{/name}","comments_url":"https://api.github.com/repos/http4s/http4s/issues/1651/comments","events_url":"https://api.github.com/repos/http4s/http4s/issues/1651/events","html_url":"https://github.com/http4s/http4s/issues/1651","id":295523789,"number":1651,"title":"Uri JSON roundtrip failure","user":{"login":"Unisay","id":1009751,"avatar_url":"https://avatars1.githubusercontent.com/u/1009751?v=4","gravatar_id":"","url":"https://api.github.com/users/Unisay","html_url":"https://github.com/Unisay","followers_url":"https://api.github.com/users/Unisay/followers","following_url":"https://api.github.com/users/Unisay/following{/other_user}","gists_url":"https://api.github.com/users/Unisay/gists{/gist_id}","starred_url":"https://api.github.com/users/Unisay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unisay/subscriptions","organizations_url":"https://api.github.com/users/Unisay/orgs","repos_url":"https://api.github.com/users/Unisay/repos","events_url":"https://api.github.com/users/Unisay/events{/privacy}","received_events_url":"https://api.github.com/users/Unisay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-08T14:04:53Z","updated_at":"2018-02-09T08:33:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```scala\r\nimport _root_.io.circe.syntax._\r\nimport org.http4s.Uri\r\nimport org.scalacheck.Prop._\r\nimport org.specs2._\r\nimport org.http4s.circe._\r\nimport org.http4s.testing.ArbitraryInstances.arbitraryUri\r\n\r\nclass JsonSpec extends Specification with ScalaCheck { def is = s2\"\"\"\r\n  Uri roundtrip                                            $testUriRoundtrip\r\n  Uri equality                                             $testUriEquality\r\n  \"\"\"\r\n\r\n  // This test fails:\r\n  def testUriRoundtrip = forAll { uri: Uri => uri.asJson.as[Uri] must beRight(uri) }\r\n\r\n  // This test is fine:\r\n  def testUriEquality = forAll { uri: Uri => uri must_=== uri }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/http4s/http4s/issues/comments/364368734","html_url":"https://github.com/http4s/http4s/issues/1651#issuecomment-364368734","issue_url":"https://api.github.com/repos/http4s/http4s/issues/1651","id":364368734,"user":{"login":"Unisay","id":1009751,"avatar_url":"https://avatars1.githubusercontent.com/u/1009751?v=4","gravatar_id":"","url":"https://api.github.com/users/Unisay","html_url":"https://github.com/Unisay","followers_url":"https://api.github.com/users/Unisay/followers","following_url":"https://api.github.com/users/Unisay/following{/other_user}","gists_url":"https://api.github.com/users/Unisay/gists{/gist_id}","starred_url":"https://api.github.com/users/Unisay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unisay/subscriptions","organizations_url":"https://api.github.com/users/Unisay/orgs","repos_url":"https://api.github.com/users/Unisay/repos","events_url":"https://api.github.com/users/Unisay/events{/privacy}","received_events_url":"https://api.github.com/users/Unisay/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T08:33:31Z","updated_at":"2018-02-09T08:33:31Z","author_association":"CONTRIBUTOR","body":"If we are talking about `URI` **not** `URL` here, then we shouldn't refer to `URL` validators checking `URI`s, but rather to the [RFC 3986](https://tools.ietf.org/html/rfc3986#page-7)."}}
{"actor":{"display_login":"Unisay"}}