I have one class in which there is one property which is List
public class MyClass {
....
@ApiModelProperty(position = 2)
An ugly workaround until we have this feature properly supported, which produces examples for lists with only one element, but at least allows to show something more useful than just "string" is by using allowableValues:
@ApiModelProperty(position = 2, allowableValues = "PRD1")
// This generates -> "productIdentifiers": ["PRD1"]