title: Manually specify POST request body in spring boot swagger
body: <p>I wrote the piece of code below:</p>
  
  <pre><code>@PostMapping(path = "/process", produces = MediaType.APPLICATION_JSON_VALUE)
  @ApiOperation(value = "Get process with given ID", produces = MediaType.APPLICATION_JSON_VALUE,
          response = ProcessType.class)
  public ResponseEntity&lt;ProcessType&gt; createProcessType(
          @RequestBody
          @DTO(ProcessTypeDto.class) ProcessType processType
  ) {
      log.info("POST called on /process");
  
      ProcessType processTypeResult;
  ...
  ...
  }
  </code></pre>
  
  <p>which works great. But my problem is with swagger. I made a custom annotation <code>@DTO</code> which automatically maps one class to another. But, swagger sees my <code>ProcessType</code> request body and shows examples in the UI of that class rather than <code>ProcessTypeDto</code>. If I delete what swagger shows and POST <code>ProcessTypeDto</code> the code works I would just like swagger to show <code>ProcessTypeDto</code> as the default example for this endpoint as it would break codegen.</p>
  
  <p>Is there a way to manually specify what request body I would like from swaggers POV overriding what my<code>@Requestbody</code> is?</p>