title: Add Jackson ObjectMapper to Swagger
body: <p>We are using Swagger to document our REST API.</p>
  
  <p>We use the various swagger annotations in our Spring REST controllers</p>
  
  <pre><code>import io.swagger.annotations.Api;
  import io.swagger.annotations.ApiOperation;
  import io.swagger.annotations.ApiResponse;
  import io.swagger.annotations.ApiResponses;
  
  @RestController
  @RequestMapping("/api/blah")
  @Api("Blah")
  public class SomeRestController {
  
      @RequestMapping(path = "/some_endpoint", method = RequestMethod.POST)
      @ResponseStatus(HttpStatus.CREATED)
      @ApiOperation(code = CREATED, value = "Some operation",
          response = SomeResponseClass.class)
      @ApiResponses(value = {
          @ApiResponse(code = CREATED, message = "etc")
      })
      public DeferredResult&lt;SomeResponseClass&gt; doSomething(
          @RequestBody final SomeRequest req) {
  
          // do stuff
  
      }
  }
  </code></pre>
  
  <p>When the documentation is generated it includes all data objects we use and their definitions which include all the fields.  However we want to configure how the fields in our data objects are displayed in the Swagger documentation.  For example, we may want to camel case the field name.</p>
  
  <p>Putting Swagger to one side for the moment I know we can use Jackson annotations to configure the fields the way we want (using <code>@JsonProperty("")</code>).  We want to separate this from data objects using mixins and then register the mixins to the data object using a jackson ObjectMapper.</p>
  
  <p>My question is how to register this ObjectMapper with Swagger so that the documentation is generated as per the annotations?</p>
  
  <p>An answer from <a href="https://groups.google.com/forum/#!topic/swagger-swaggersocket/kKM546QXGY0" rel="nofollow noreferrer">this thread</a> looks promising but I have no idea where I should add this converter factory class that is mentioned in the answer.  I don't know how Swagger startup is configured.  Any ideas?</p>