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?
It can be done next way: