title: How to hide remove extra request body parameters in Swagger with Springfox
body: <p>I have very big UserDto having many fields as below:</p>
  
  <pre><code>public class UserDto implements Serializable {
      private Long id;
      @Column
      private String username;
      @Column
      private String emailId;
      @Column
      private String password;
  
      .... many other columns like above with getter/setter
  }
  </code></pre>
  
  <p>I have defined authenticate method as below:</p>
  
  <pre><code>    @RequestMapping(value = "authenticate", consumes = "application/json", produces = "application/json", method = RequestMethod.POST)
          @ApiOperation(value="authenticate user",notes="authenticate user for all roles")
          @ApiResponses( {
              @ApiResponse( code = 403, message = "BAD_CREDENCIAL_EXCEPTION",response=ExceptionMsgDto.class),
              @ApiResponse( code = 404, message = "USERNAME_NOT_FOUND_EXCEPTION",response=ExceptionMsgDto.class)
          } )
          public ResponseEntity&lt;Object&gt; authenticate(@RequestBody UserDto userDto, HttpServletRequest request)
                  throws Exception {
    /* business logic */
  }
  </code></pre>
  
  <p>when I generate swagger it shows all the properties of Userdto inside request model but I want to show only username/password and want to hide others. but at the same point for createUser method I want to show all properties from UserDto.</p>
  
  <p>I tried to find solution but didn't get any, is this possible to do? Please suggest me some way to achieve this.</p>
  
  <p>Thanks in advance.</p>