{"action":"created","issue":{"url":"https://api.github.com/repos/tattn/MoreCodable/issues/3","repository_url":"https://api.github.com/repos/tattn/MoreCodable","labels_url":"https://api.github.com/repos/tattn/MoreCodable/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tattn/MoreCodable/issues/3/comments","events_url":"https://api.github.com/repos/tattn/MoreCodable/issues/3/events","html_url":"https://github.com/tattn/MoreCodable/issues/3","id":326365026,"node_id":"MDU6SXNzdWUzMjYzNjUwMjY=","number":3,"title":"Type 'Any' does not conform to protocol 'Decodable'","user":{"login":"d-date","id":20222809,"node_id":"MDQ6VXNlcjIwMjIyODA5","avatar_url":"https://avatars3.githubusercontent.com/u/20222809?v=4","gravatar_id":"","url":"https://api.github.com/users/d-date","html_url":"https://github.com/d-date","followers_url":"https://api.github.com/users/d-date/followers","following_url":"https://api.github.com/users/d-date/following{/other_user}","gists_url":"https://api.github.com/users/d-date/gists{/gist_id}","starred_url":"https://api.github.com/users/d-date/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-date/subscriptions","organizations_url":"https://api.github.com/users/d-date/orgs","repos_url":"https://api.github.com/users/d-date/repos","events_url":"https://api.github.com/users/d-date/events{/privacy}","received_events_url":"https://api.github.com/users/d-date/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-25T03:04:34Z","updated_at":"2018-06-14T01:20:53Z","closed_at":null,"author_association":"NONE","body":"In `DictionaryDecoder`, we found some build errors, which are caused from the `type 'Any' does not conform to protocol 'Decodable'` . Please check and fix these if you don't mind.\r\n\r\n```swift\r\nopen func container<Key: CodingKey>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> {\r\n        let container = try lastContainer(forType: [String: Any].self)\r\n        return KeyedDecodingContainer(KeyedContainer<Key>(decoder: self, codingPath: [], container: container)) // <- error: Type `Any` does not conform to protocol `Decodable`\r\n    }\r\n\r\n    open func unkeyedContainer() throws -> UnkeyedDecodingContainer {\r\n        let container = try lastContainer(forType: [Any].self) // <- error: Type `Any` does not conform to protocol `Decodable`\r\n        return UnkeyedContanier(decoder: self, container: container)\r\n    }\r\n\r\n...\r\n\r\nfunc nestedContainer<NestedKey>(keyedBy type: NestedKey.Type, forKey key: Key) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey {\r\n    decoder.codingPath.append(key)\r\n    defer { decoder.codingPath.removeLast() }\r\n\r\n     let value = try find(forKey: key)\r\n     let dictionary = try decoder.unbox(value, as: [String: Any].self) // <- error: Type `Any` does not conform to protocol `Decodable`\r\n     return KeyedDecodingContainer(KeyedContainer<NestedKey>(decoder: decoder, codingPath: [], container: dictionary))\r\n}\r\n\r\nfunc nestedUnkeyedContainer(forKey key: Key) throws -> UnkeyedDecodingContainer {\r\n    decoder.codingPath.append(key)\r\n    defer { decoder.codingPath.removeLast() }\r\n\r\n     let value = try find(forKey: key)\r\n     let array = try decoder.unbox(value, as: [Any].self) // <- error: Type `Any` does not conform to protocol `Decodable`\r\n      return UnkeyedContanier(decoder: decoder, container: array)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/tattn/MoreCodable/issues/comments/397136992","html_url":"https://github.com/tattn/MoreCodable/issues/3#issuecomment-397136992","issue_url":"https://api.github.com/repos/tattn/MoreCodable/issues/3","id":397136992,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzEzNjk5Mg==","user":{"login":"tattn","id":8188636,"node_id":"MDQ6VXNlcjgxODg2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/8188636?v=4","gravatar_id":"","url":"https://api.github.com/users/tattn","html_url":"https://github.com/tattn","followers_url":"https://api.github.com/users/tattn/followers","following_url":"https://api.github.com/users/tattn/following{/other_user}","gists_url":"https://api.github.com/users/tattn/gists{/gist_id}","starred_url":"https://api.github.com/users/tattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tattn/subscriptions","organizations_url":"https://api.github.com/users/tattn/orgs","repos_url":"https://api.github.com/users/tattn/repos","events_url":"https://api.github.com/users/tattn/events{/privacy}","received_events_url":"https://api.github.com/users/tattn/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T01:20:53Z","updated_at":"2018-06-14T01:20:53Z","author_association":"OWNER","body":"@d-date @garsdle  Thanks for the issue and support!\r\nOh, conditional conformance seems to be causing a build error...\r\n\r\n`AnyCodable` is good idea! I'll refer to it in the future :D\r\nThis time, I fixed it in another way https://github.com/tattn/MoreCodable/commit/d8d69ff2411940cb897e98cfefd0b299c603a169.  But it is not cool, so I refactor it later."}}
{"actor":{"display_login":"tattn"}}