{"action":"created","issue":{"url":"https://api.github.com/repos/Gild/ruby-swagger/issues/32","labels_url":"https://api.github.com/repos/Gild/ruby-swagger/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Gild/ruby-swagger/issues/32/comments","events_url":"https://api.github.com/repos/Gild/ruby-swagger/issues/32/events","html_url":"https://github.com/Gild/ruby-swagger/pull/32","id":113246235,"number":32,"title":"Don't allow a Swagger property description to be null","user":{"login":"jhollinger","id":81826,"avatar_url":"https://avatars.githubusercontent.com/u/81826?v=3","gravatar_id":"","url":"https://api.github.com/users/jhollinger","html_url":"https://github.com/jhollinger","followers_url":"https://api.github.com/users/jhollinger/followers","following_url":"https://api.github.com/users/jhollinger/following{/other_user}","gists_url":"https://api.github.com/users/jhollinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jhollinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhollinger/subscriptions","organizations_url":"https://api.github.com/users/jhollinger/orgs","repos_url":"https://api.github.com/users/jhollinger/repos","events_url":"https://api.github.com/users/jhollinger/events{/privacy}","received_events_url":"https://api.github.com/users/jhollinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-25T19:32:37Z","updated_at":"2016-01-24T21:34:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Gild/ruby-swagger/pulls/32","html_url":"https://github.com/Gild/ruby-swagger/pull/32","diff_url":"https://github.com/Gild/ruby-swagger/pull/32.diff","patch_url":"https://github.com/Gild/ruby-swagger/pull/32.patch"},"body":"Currently, if you're using response documentation and your Grape entity omits `desc` from `documentation`:\r\n\r\n    class Entities::Widget < Grape::Entity\r\n      expose :id, documentation: {type: 'integer'} # some properties are just super obvious\r\n      ...\r\n    end\r\n\r\nthat property is rendered to this JSON:\r\n\r\n    \"properties\": {\r\n      \"id\": {\r\n        \"type\": \"integer\",\r\n        \"description\": null\r\n      },\r\n      ...\r\n    }\r\n\r\nand Swagger UI chokes on it with:\r\n\r\n    Uncaught TypeError: Swagger 2.0 does not support null types ([object Object]).  See https://github.com/swagger-api/swagger-spec/issues/229.\r\n\r\nIMHO the `description` field should be omitted in these cases."},"comment":{"url":"https://api.github.com/repos/Gild/ruby-swagger/issues/comments/174343587","html_url":"https://github.com/Gild/ruby-swagger/pull/32#issuecomment-174343587","issue_url":"https://api.github.com/repos/Gild/ruby-swagger/issues/32","id":174343587,"user":{"login":"oliverzeyen","id":851269,"avatar_url":"https://avatars.githubusercontent.com/u/851269?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverzeyen","html_url":"https://github.com/oliverzeyen","followers_url":"https://api.github.com/users/oliverzeyen/followers","following_url":"https://api.github.com/users/oliverzeyen/following{/other_user}","gists_url":"https://api.github.com/users/oliverzeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverzeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverzeyen/subscriptions","organizations_url":"https://api.github.com/users/oliverzeyen/orgs","repos_url":"https://api.github.com/users/oliverzeyen/repos","events_url":"https://api.github.com/users/oliverzeyen/events{/privacy}","received_events_url":"https://api.github.com/users/oliverzeyen/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T21:34:37Z","updated_at":"2016-01-24T21:34:37Z","body":" #46 fixed this"}}