{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/897","labels_url":"https://api.github.com/repos/springfox/springfox/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/897/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/897/events","html_url":"https://github.com/springfox/springfox/issues/897","id":99323246,"number":897,"title":"Does springfox-swagger2:2.1.2 work with Scala?","user":{"login":"cer","id":246234,"avatar_url":"https://avatars.githubusercontent.com/u/246234?v=3","gravatar_id":"","url":"https://api.github.com/users/cer","html_url":"https://github.com/cer","followers_url":"https://api.github.com/users/cer/followers","following_url":"https://api.github.com/users/cer/following{/other_user}","gists_url":"https://api.github.com/users/cer/gists{/gist_id}","starred_url":"https://api.github.com/users/cer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cer/subscriptions","organizations_url":"https://api.github.com/users/cer/orgs","repos_url":"https://api.github.com/users/cer/repos","events_url":"https://api.github.com/users/cer/events{/privacy}","received_events_url":"https://api.github.com/users/cer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/26","html_url":"https://github.com/springfox/springfox/milestones/2.2.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/26/labels","id":1054752,"number":26,"title":"2.2.0","description":"Next incremental release","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":41,"closed_issues":14,"state":"open","created_at":"2015-04-06T17:11:14Z","updated_at":"2015-08-06T13:34:57Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-05T23:51:35Z","updated_at":"2015-08-06T16:05:37Z","closed_at":null,"body":"I have a Scala/Spring Boot application.\r\nJSon de/serialization is handled by an ObjectMapper configured with DefaultScalaModule along with JodaModule and some application specific customizations.\r\nI defined an ApplicationListener for the ObjectMapperConfigured that configures the supplied ObjectMapper.\r\n\r\nSpringfox Swagger finds the controller methods but has an empty `{}` model schema for the requests and responses.\r\n\r\nSuggestions?\r\n"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/128419805","html_url":"https://github.com/springfox/springfox/issues/897#issuecomment-128419805","issue_url":"https://api.github.com/repos/springfox/springfox/issues/897","id":128419805,"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-08-06T16:05:37Z","updated_at":"2015-08-06T16:05:37Z","body":"@cer I dug into this some. It seems like we've run into un-anticipated usage territory :) So everything you've done is perfectly correct to set it up. \r\n\r\nThe problem is the way scala sets these objects up. The expectation is that these are java beans in the library, but the scala objects these are coming through as parameters (not fields or accessor methods). Will add a chore to accommodate that exception. \r\n\r\nThanks for reporting this issue! One way to get around this is for now until we have a fix out define the `RegistrationRequest` and `RegistrationResponse` as you would a java bean if thats possible (sorry Im not super familiar with scala.)"}}