Yes – in the latest version of swagger-core we added a `type` property to the @ApiParam annotation, where you can override the parameter type.
From: <[email protected]> on behalf of Alexander Terekhov <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, 4 January 2017 at 1:54 To: Swagger <[email protected]> Subject: How to document implicitly dto usage, when we use entity class as api param? There are a problem, when we use Jersey2 resource with implicitly dto usage. Example: @POST @ApiOperation(value = "Create pet", response = PetDTO.class) public Pet create(Pet pet) throws IOException { return this.petService.save(pet); } In this example we implicitly get petDto as param, and than map it to entity. The question is, is the way to how to configure swagger to document PetDTO as api param, not Pet? -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
