{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/801","labels_url":"https://api.github.com/repos/springfox/springfox/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/801/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/801/events","html_url":"https://github.com/springfox/springfox/issues/801","id":88982414,"number":801,"title":"Allowable Values for enumerations on response models do not render options","user":{"login":"GitVhaos","id":9606099,"avatar_url":"https://avatars.githubusercontent.com/u/9606099?v=3","gravatar_id":"","url":"https://api.github.com/users/GitVhaos","html_url":"https://github.com/GitVhaos","followers_url":"https://api.github.com/users/GitVhaos/followers","following_url":"https://api.github.com/users/GitVhaos/following{/other_user}","gists_url":"https://api.github.com/users/GitVhaos/gists{/gist_id}","starred_url":"https://api.github.com/users/GitVhaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitVhaos/subscriptions","organizations_url":"https://api.github.com/users/GitVhaos/orgs","repos_url":"https://api.github.com/users/GitVhaos/repos","events_url":"https://api.github.com/users/GitVhaos/events{/privacy}","received_events_url":"https://api.github.com/users/GitVhaos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/feature","name":"feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/30","html_url":"https://github.com/springfox/springfox/milestones/2.0.3","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/30/labels","id":1167876,"number":30,"title":"2.0.3","description":"","creator":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2015-06-17T03:37:56Z","updated_at":"2015-06-19T14:40:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-17T10:45:39Z","updated_at":"2015-06-23T13:20:07Z","closed_at":null,"body":"I`m not shure if this has to be adressed for swagger-spec or springfox-swagger:\r\n\r\nWhen returning an Java-Enum it would be nice to see the \"allowable Values\" of this enum as possible results in the generated json-output. For using enums as Parameters this is already working, but not for using enums as response-object.\r\n\r\nWhere do I need to adress this feature?\r\n\r\n<b>Example:</b>\r\n```java\r\n@RequestMapping(value = \"/someResource\", method = RequestMethod.GET)\r\n  public ResponseEntity<SomeEnum> readResource()\r\n```"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/114497962","html_url":"https://github.com/springfox/springfox/issues/801#issuecomment-114497962","issue_url":"https://api.github.com/repos/springfox/springfox/issues/801","id":114497962,"user":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T13:20:07Z","updated_at":"2015-06-23T13:20:07Z","body":"That would be awesome! For sure, swagger 1.2 doesn't support this notion. Swagger 2.0 does. \r\n\r\nHaven't really seen what the effort to support this is. If I remember right, it's a matter of having either the model ref expose allowable values or introduce this in the mapping layer for 2.0 such that it doesn't break the case where enums or list of enums are properties of input parameters. Will provide more details when I look at the code\r\n\r\n "}}