{"action":"opened","issue":{"url":"https://api.github.com/repos/Anviking/Decodable/issues/50","labels_url":"https://api.github.com/repos/Anviking/Decodable/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Anviking/Decodable/issues/50/comments","events_url":"https://api.github.com/repos/Anviking/Decodable/issues/50/events","html_url":"https://github.com/Anviking/Decodable/issues/50","id":113591983,"number":50,"title":"Missing keys and optionals","user":{"login":"raulriera","id":24159,"avatar_url":"https://avatars.githubusercontent.com/u/24159?v=3","gravatar_id":"","url":"https://api.github.com/users/raulriera","html_url":"https://github.com/raulriera","followers_url":"https://api.github.com/users/raulriera/followers","following_url":"https://api.github.com/users/raulriera/following{/other_user}","gists_url":"https://api.github.com/users/raulriera/gists{/gist_id}","starred_url":"https://api.github.com/users/raulriera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulriera/subscriptions","organizations_url":"https://api.github.com/users/raulriera/orgs","repos_url":"https://api.github.com/users/raulriera/repos","events_url":"https://api.github.com/users/raulriera/events{/privacy}","received_events_url":"https://api.github.com/users/raulriera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T14:12:24Z","updated_at":"2015-10-27T14:12:24Z","closed_at":null,"body":"Hi,\r\n\r\nWhat is the best practice for missing keys? I find it strange (I'm sure I'm wrong here) that the decoding process fails when it founds a missing key and this property is marked as Optional. Is it normal for API responses to not include all the information in their entities for every single call?\r\n\r\nI am trying to consume an \"index\" action that returns some data about the model and a \"show\" action that shows all the data, but since the \"index\" is a trimmed down version of the \"show\" it always fails."}}