I have one class in which there is one property which is List
List
public class MyClass { .... @ApiModelProperty(position = 2)
Try to initialize @ApiModelProperty as follows:
@ApiModelProperty
public class MyClass { .... @ApiModelProperty( position = 2, datatype="List", example = "PRD1, PRD2, PRD3" ) private List productIdentifiers; .... }