{"action":"created","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/541","repository_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/541/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/541/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/pull/541","id":170301327,"number":541,"title":"Resort to a separate protocol for failable initializer","user":{"login":"andrebraga","id":39256,"avatar_url":"https://avatars.githubusercontent.com/u/39256?v=3","gravatar_id":"","url":"https://api.github.com/users/andrebraga","html_url":"https://github.com/andrebraga","followers_url":"https://api.github.com/users/andrebraga/followers","following_url":"https://api.github.com/users/andrebraga/following{/other_user}","gists_url":"https://api.github.com/users/andrebraga/gists{/gist_id}","starred_url":"https://api.github.com/users/andrebraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrebraga/subscriptions","organizations_url":"https://api.github.com/users/andrebraga/orgs","repos_url":"https://api.github.com/users/andrebraga/repos","events_url":"https://api.github.com/users/andrebraga/events{/privacy}","received_events_url":"https://api.github.com/users/andrebraga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-10T00:19:45Z","updated_at":"2016-09-06T00:11:32Z","closed_at":"2016-09-05T23:46:41Z","pull_request":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/pulls/541","html_url":"https://github.com/Hearst-DD/ObjectMapper/pull/541","diff_url":"https://github.com/Hearst-DD/ObjectMapper/pull/541.diff","patch_url":"https://github.com/Hearst-DD/ObjectMapper/pull/541.patch"},"body":"It is effectively impossible to conveniently implement ObjectMapper for NSManagedObject subclasses with the initializer being part of the protocol. So I'm repeating the same trick of separating the part of the protocol with the initializer into a protocol of its own."},"comment":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/comments/244823816","html_url":"https://github.com/Hearst-DD/ObjectMapper/pull/541#issuecomment-244823816","issue_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/541","id":244823816,"user":{"login":"andrebraga","id":39256,"avatar_url":"https://avatars.githubusercontent.com/u/39256?v=3","gravatar_id":"","url":"https://api.github.com/users/andrebraga","html_url":"https://github.com/andrebraga","followers_url":"https://api.github.com/users/andrebraga/followers","following_url":"https://api.github.com/users/andrebraga/following{/other_user}","gists_url":"https://api.github.com/users/andrebraga/gists{/gist_id}","starred_url":"https://api.github.com/users/andrebraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrebraga/subscriptions","organizations_url":"https://api.github.com/users/andrebraga/orgs","repos_url":"https://api.github.com/users/andrebraga/repos","events_url":"https://api.github.com/users/andrebraga/events{/privacy}","received_events_url":"https://api.github.com/users/andrebraga/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T00:11:32Z","updated_at":"2016-09-06T00:11:32Z","body":"Notice, the exactly same problem will happen for each and every class that must derive from another class and has \"delicate\" initialisation requirements. It is similarly difficult to adopt OM for Realm objects. It is effectively impossible to  adopt OM unless you have control over the implementation. The proposed changes allow adopting it via an extension."}}
{"actor":{"display_login":"andrebraga"}}