{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/1324","repository_url":"https://api.github.com/repos/springfox/springfox","labels_url":"https://api.github.com/repos/springfox/springfox/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/1324/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/1324/events","html_url":"https://github.com/springfox/springfox/issues/1324","id":156481607,"number":1324,"title":"Swagger UI not displaying Model and Model Schema when using Map <>","user":{"login":"amitkawatra","id":13707963,"avatar_url":"https://avatars.githubusercontent.com/u/13707963?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkawatra","html_url":"https://github.com/amitkawatra","followers_url":"https://api.github.com/users/amitkawatra/followers","following_url":"https://api.github.com/users/amitkawatra/following{/other_user}","gists_url":"https://api.github.com/users/amitkawatra/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkawatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkawatra/subscriptions","organizations_url":"https://api.github.com/users/amitkawatra/orgs","repos_url":"https://api.github.com/users/amitkawatra/repos","events_url":"https://api.github.com/users/amitkawatra/events{/privacy}","received_events_url":"https://api.github.com/users/amitkawatra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/36","html_url":"https://github.com/springfox/springfox/milestones/2.5.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/36/labels","id":1480753,"number":36,"title":"2.5.0","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":0,"closed_issues":122,"state":"closed","created_at":"2016-01-03T01:45:14Z","updated_at":"2016-06-19T02:16:32Z","due_on":"2016-06-01T05:00:00Z","closed_at":"2016-06-07T00:27:57Z"},"comments":15,"created_at":"2016-05-24T11:15:16Z","updated_at":"2016-06-29T16:19:50Z","closed_at":"2016-06-02T01:01:44Z","body":"Hi All, \r\nI am having an application in Spring Boot having dependency\r\n  springfox-swagger2 - version 2.2.2\r\n\r\nSwagger UI not displaying Model and Model Schema when using Map <>, \r\nit shows empty schema {}\r\n\r\n```java\r\n@ApiOperation(value = \"hello\", nickname = \"hello\", notes=\"description\")\r\npublic @ResponseBody Map <`String`>, <`Object`> greeting(@RequestParam(value = \"name\") String name) {\r\n     Map<String, String> m = Maps.newHashMap();\r\n     m.put(\"1\", name);\r\n     return m;\r\n}`\r\n\r\npublic class TestApplication {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tSpringApplication.run(TestApplication.class, args);\r\n\t}\r\n\t@Bean\r\n    public Docket newsApi() {\r\n        return new Docket(DocumentationType.SWAGGER_2)\r\n                .groupName(\"greetings\")\r\n                .apiInfo(apiInfo())\r\n                .select()\r\n                .paths(Predicates.not(PathSelectors.regex(\"/error.*\")))\r\n                .build();\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/229408922","html_url":"https://github.com/springfox/springfox/issues/1324#issuecomment-229408922","issue_url":"https://api.github.com/repos/springfox/springfox/issues/1324","id":229408922,"user":{"login":"ChrisDeath","id":6153218,"avatar_url":"https://avatars.githubusercontent.com/u/6153218?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisDeath","html_url":"https://github.com/ChrisDeath","followers_url":"https://api.github.com/users/ChrisDeath/followers","following_url":"https://api.github.com/users/ChrisDeath/following{/other_user}","gists_url":"https://api.github.com/users/ChrisDeath/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisDeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisDeath/subscriptions","organizations_url":"https://api.github.com/users/ChrisDeath/orgs","repos_url":"https://api.github.com/users/ChrisDeath/repos","events_url":"https://api.github.com/users/ChrisDeath/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisDeath/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T16:19:50Z","updated_at":"2016-06-29T16:19:50Z","body":"I tested it with your boot-swagger demo project and made the Category to be a class and have the structure of my Payment DTO. And also here you just get \"object\" but the resulting response body is different:\r\n`{\r\n  \"paymentProvider\": null,\r\n  \"parameters\": {\r\n    \"test2\": \"test2Val\",\r\n    \"test1\": \"test1Val\"\r\n  }\r\n}`\r\n\r\nI think i need to check the config of our frame work here :("}}
{"actor":{"display_login":"ChrisDeath"}}