{"action":"opened","issue":{"url":"https://api.github.com/repos/alexarchambault/argonaut-shapeless/issues/6","labels_url":"https://api.github.com/repos/alexarchambault/argonaut-shapeless/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/alexarchambault/argonaut-shapeless/issues/6/comments","events_url":"https://api.github.com/repos/alexarchambault/argonaut-shapeless/issues/6/events","html_url":"https://github.com/alexarchambault/argonaut-shapeless/issues/6","id":65926953,"number":6,"title":"Optional Fields not handled in a manner consistent with casecodec","user":{"login":"AlecZorab","id":470247,"avatar_url":"https://avatars.githubusercontent.com/u/470247?v=3","gravatar_id":"","url":"https://api.github.com/users/AlecZorab","html_url":"https://github.com/AlecZorab","followers_url":"https://api.github.com/users/AlecZorab/followers","following_url":"https://api.github.com/users/AlecZorab/following{/other_user}","gists_url":"https://api.github.com/users/AlecZorab/gists{/gist_id}","starred_url":"https://api.github.com/users/AlecZorab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlecZorab/subscriptions","organizations_url":"https://api.github.com/users/AlecZorab/orgs","repos_url":"https://api.github.com/users/AlecZorab/repos","events_url":"https://api.github.com/users/AlecZorab/events{/privacy}","received_events_url":"https://api.github.com/users/AlecZorab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T13:37:09Z","updated_at":"2015-04-02T13:37:09Z","closed_at":null,"body":"```scala\r\n\r\n  import argonaut._, Argonaut._\r\n  case class OI(oi: Option[Int])\r\n  val json = Parse.parseOption(\"{}\").get\r\n\r\n  locally {\r\n    import argonaut.Shapeless._\r\n    val oi = json.as[OI]\r\n    oi $ println // DecodeResult(-\\/((Attempt to decode value on failed cursor.,CursorHistory([*.--\\(oi)]))))\r\n  }\r\n\r\n  locally {\r\n    implicit val isitdecode = casecodec1(OI.apply, OI.unapply)(\"oi\")\r\n    val oi = json.as[OI]\r\n    oi $ println // DecodeResult(\\/-(OI(None)))\r\n  }\r\n```"}}