{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/420","repository_url":"https://api.github.com/repos/ruby-grape/grape-swagger","labels_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/420/comments","events_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/420/events","html_url":"https://github.com/ruby-grape/grape-swagger/pull/420","id":154344714,"number":420,"title":"Avoid empty hashes","user":{"login":"Bugagazavr","id":683590,"avatar_url":"https://avatars.githubusercontent.com/u/683590?v=3","gravatar_id":"","url":"https://api.github.com/users/Bugagazavr","html_url":"https://github.com/Bugagazavr","followers_url":"https://api.github.com/users/Bugagazavr/followers","following_url":"https://api.github.com/users/Bugagazavr/following{/other_user}","gists_url":"https://api.github.com/users/Bugagazavr/gists{/gist_id}","starred_url":"https://api.github.com/users/Bugagazavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bugagazavr/subscriptions","organizations_url":"https://api.github.com/users/Bugagazavr/orgs","repos_url":"https://api.github.com/users/Bugagazavr/repos","events_url":"https://api.github.com/users/Bugagazavr/events{/privacy}","received_events_url":"https://api.github.com/users/Bugagazavr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-11T21:14:55Z","updated_at":"2016-05-13T18:59:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/pulls/420","html_url":"https://github.com/ruby-grape/grape-swagger/pull/420","diff_url":"https://github.com/ruby-grape/grape-swagger/pull/420.diff","patch_url":"https://github.com/ruby-grape/grape-swagger/pull/420.patch"},"body":"**Problem**: \r\n\r\ncurrently returned empty hash if model parser doesn't registered, swagger-ui doesn't check json object, for empty, and get a null, swagger-ui with swagger 2.0 spec doesn't support null's and not loaded.\r\n\r\n**Solution**:\r\n\r\nraise exception if parser for current model not registered or model parsing result contains empty hash, to specify this problem for developer"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/comments/219131306","html_url":"https://github.com/ruby-grape/grape-swagger/pull/420#issuecomment-219131306","issue_url":"https://api.github.com/repos/ruby-grape/grape-swagger/issues/420","id":219131306,"user":{"login":"Bugagazavr","id":683590,"avatar_url":"https://avatars.githubusercontent.com/u/683590?v=3","gravatar_id":"","url":"https://api.github.com/users/Bugagazavr","html_url":"https://github.com/Bugagazavr","followers_url":"https://api.github.com/users/Bugagazavr/followers","following_url":"https://api.github.com/users/Bugagazavr/following{/other_user}","gists_url":"https://api.github.com/users/Bugagazavr/gists{/gist_id}","starred_url":"https://api.github.com/users/Bugagazavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bugagazavr/subscriptions","organizations_url":"https://api.github.com/users/Bugagazavr/orgs","repos_url":"https://api.github.com/users/Bugagazavr/repos","events_url":"https://api.github.com/users/Bugagazavr/events{/privacy}","received_events_url":"https://api.github.com/users/Bugagazavr/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T18:59:47Z","updated_at":"2016-05-13T18:59:47Z","body":"@dblock i'l merge this, ok?"}}