{"action":"opened","issue":{"url":"https://api.github.com/repos/Orange-OpenSource/angular-swagger-ui/issues/42","repository_url":"https://api.github.com/repos/Orange-OpenSource/angular-swagger-ui","labels_url":"https://api.github.com/repos/Orange-OpenSource/angular-swagger-ui/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Orange-OpenSource/angular-swagger-ui/issues/42/comments","events_url":"https://api.github.com/repos/Orange-OpenSource/angular-swagger-ui/issues/42/events","html_url":"https://github.com/Orange-OpenSource/angular-swagger-ui/issues/42","id":139122402,"number":42,"title":"Enum Objects","user":{"login":"yeshodhan","id":2785164,"avatar_url":"https://avatars.githubusercontent.com/u/2785164?v=3","gravatar_id":"","url":"https://api.github.com/users/yeshodhan","html_url":"https://github.com/yeshodhan","followers_url":"https://api.github.com/users/yeshodhan/followers","following_url":"https://api.github.com/users/yeshodhan/following{/other_user}","gists_url":"https://api.github.com/users/yeshodhan/gists{/gist_id}","starred_url":"https://api.github.com/users/yeshodhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeshodhan/subscriptions","organizations_url":"https://api.github.com/users/yeshodhan/orgs","repos_url":"https://api.github.com/users/yeshodhan/repos","events_url":"https://api.github.com/users/yeshodhan/events{/privacy}","received_events_url":"https://api.github.com/users/yeshodhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T23:11:29Z","updated_at":"2016-03-07T23:11:29Z","closed_at":null,"body":"Enum objects are rendered and treated as objects.\r\n\r\nEg:\r\n\r\n```json\r\n\"definitions\":{\r\n   \"Gender\" : {\r\n      \"enum\" : [\"Male\", \"Female\"],\r\n      \"type\" : \"string\",\r\n      \"title\" : \"Gender\"\r\n   },\r\n   \"Person\" : {\r\n      \"type\" : \"object\",\r\n      \"title\" : \"Person\",\r\n      \"properties\":{\r\n            \"gender\":{\r\n\t\t\t\t\"$ref\" : \"#/definitions/Gender\"\t\t\t\t\r\n\t    }\r\n      }\r\n   }\r\n}\r\n```\r\n\r\nWhen this is rendered and the object is generated for person, enum property is being rendered as:\r\n```json\r\n{\r\n   \"gender\":{}\r\n}\r\n```\r\n   \r\n"}}