I have one class in which there is one property which is List
List
public class MyClass { .... @ApiModelProperty(position = 2)
I changed my example to the code below and it worked.
public class MyClass { .... @ApiModelProperty( position = 2, datatype="List", example = "'[''{''PRD1''}','{''PRD2''}'']" ) private List productIdentifiers; .... }