{"action":"created","issue":{"url":"https://api.github.com/repos/hkellaway/Gloss/issues/135","repository_url":"https://api.github.com/repos/hkellaway/Gloss","labels_url":"https://api.github.com/repos/hkellaway/Gloss/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/hkellaway/Gloss/issues/135/comments","events_url":"https://api.github.com/repos/hkellaway/Gloss/issues/135/events","html_url":"https://github.com/hkellaway/Gloss/issues/135","id":142790387,"number":135,"title":"Issue when using nested keypaths when compiling with optimization + Swift 2.2","user":{"login":"stuartervine","id":646331,"avatar_url":"https://avatars.githubusercontent.com/u/646331?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartervine","html_url":"https://github.com/stuartervine","followers_url":"https://api.github.com/users/stuartervine/followers","following_url":"https://api.github.com/users/stuartervine/following{/other_user}","gists_url":"https://api.github.com/users/stuartervine/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartervine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartervine/subscriptions","organizations_url":"https://api.github.com/users/stuartervine/orgs","repos_url":"https://api.github.com/users/stuartervine/repos","events_url":"https://api.github.com/users/stuartervine/events{/privacy}","received_events_url":"https://api.github.com/users/stuartervine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hkellaway/Gloss/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hkellaway/Gloss/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-03-22T21:47:17Z","updated_at":"2016-09-20T12:13:31Z","closed_at":"2016-09-20T12:13:31Z","body":"With Swift 2.2, I've run into an issue when decoding deep json using the dot syntax. The decoding crashes with the error: \r\n\r\n```\r\nGloss was compiled with optimization - stepping may behave oddly; variables may not be available.\r\n(lldb) \r\n```\r\n\r\nThe following test case fails with the above error:\r\n\r\n```\r\nimport XCTest\r\nimport Gloss\r\n\r\nclass GlossTestTests: XCTestCase {\r\n    \r\n    func testExample() {\r\n        let json = [\r\n            \"foo\":[\"bar\":\"woo\"]\r\n        ]\r\n        let woo = FooBar(json: json)?.woo ?? \"none\"\r\n        print(woo)\r\n    }\r\n    \r\n}\r\n\r\nclass FooBar: Decodable {\r\n    let woo: String?\r\n    \r\n    required init?(json: JSON) {\r\n        self.woo = \"foo.bar\" <~~ json\r\n    }\r\n}\r\n\r\n```\r\n\r\nI'm not sure if I'm missing something, but everything seemed ok with Swift 2.1."},"comment":{"url":"https://api.github.com/repos/hkellaway/Gloss/issues/comments/248283527","html_url":"https://github.com/hkellaway/Gloss/issues/135#issuecomment-248283527","issue_url":"https://api.github.com/repos/hkellaway/Gloss/issues/135","id":248283527,"user":{"login":"hkellaway","id":5456481,"avatar_url":"https://avatars.githubusercontent.com/u/5456481?v=3","gravatar_id":"","url":"https://api.github.com/users/hkellaway","html_url":"https://github.com/hkellaway","followers_url":"https://api.github.com/users/hkellaway/followers","following_url":"https://api.github.com/users/hkellaway/following{/other_user}","gists_url":"https://api.github.com/users/hkellaway/gists{/gist_id}","starred_url":"https://api.github.com/users/hkellaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkellaway/subscriptions","organizations_url":"https://api.github.com/users/hkellaway/orgs","repos_url":"https://api.github.com/users/hkellaway/repos","events_url":"https://api.github.com/users/hkellaway/events{/privacy}","received_events_url":"https://api.github.com/users/hkellaway/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T12:13:31Z","updated_at":"2016-09-20T12:13:31Z","body":"i just released `1.0.0`, which is compatible with Swift 3.0 🎉  however, i was not comfortable including a feature that caused crashes at runtime - and had yet to figure out an implementation. therefore, nested keypaths have been removed.\r\n\r\napologies to those who have a lot of nested keypaths! models should be updated before moving to `1.0.0` (or `0.8.0` if you're using Swift 2.3). See more here https://github.com/hkellaway/Gloss#nested-keypaths-deprecation"}}
{"actor":{"display_login":"hkellaway"}}