{"action":"opened","issue":{"url":"https://api.github.com/repos/cloudwan/gohan/issues/64","labels_url":"https://api.github.com/repos/cloudwan/gohan/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/cloudwan/gohan/issues/64/comments","events_url":"https://api.github.com/repos/cloudwan/gohan/issues/64/events","html_url":"https://github.com/cloudwan/gohan/issues/64","id":121849096,"number":64,"title":"Broken schema handling","user":{"login":"pax0r","id":1170098,"avatar_url":"https://avatars.githubusercontent.com/u/1170098?v=3","gravatar_id":"","url":"https://api.github.com/users/pax0r","html_url":"https://github.com/pax0r","followers_url":"https://api.github.com/users/pax0r/followers","following_url":"https://api.github.com/users/pax0r/following{/other_user}","gists_url":"https://api.github.com/users/pax0r/gists{/gist_id}","starred_url":"https://api.github.com/users/pax0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pax0r/subscriptions","organizations_url":"https://api.github.com/users/pax0r/orgs","repos_url":"https://api.github.com/users/pax0r/repos","events_url":"https://api.github.com/users/pax0r/events{/privacy}","received_events_url":"https://api.github.com/users/pax0r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T11:17:44Z","updated_at":"2015-12-12T11:17:44Z","closed_at":null,"body":"When I've made a schema where in one of the fields `type` is missing Gohan exit with error:\r\n`\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n`\r\nwhich is not very helpful.\r\n\r\nI think Gohan should print some more meaningful error like \"property type is missing from field x on schema y\". In current situation on complicated schema is may take quite a while to find where the bug was."}}