I'm trying to document my java APIs using Swagger plugin in gradle with : "compile "io.swagger:swagger-annotations:1.5.0". I am using @ApiModelProperty annotation to achieve attribute's description, in my static html document.
I have a common DTO for multiple projects to use, but the problem is that, in some projects a particular attribute is required, but for other projects, its not required. So, I am looking to put some condition for attribute based on other attribute in that same package.