ApiModelProperty doesn't support example for arrays / Lists
By default array or List of integers is generated in UI with example:
"eventTypes": [0],
I've tried to add "example" property, but that:
@ApiModelProperty(required = true, example = "[2, 3]")
private int[] lorem;
generates example values as string:
"eventTypes": "[2, 3]",
Other options like "2, 3" don't work neither. In result to have valid json in example it has to have only one value, zero.
+1
+1
+1
+1
+1
It looks like a lot of people are looking for this feature. This is great. If anyone wants to try and submit a PR to add the functionality, that would be appreciated.
+1
+1
+1
+1
+1
+1
This takes a major refactoring of the models, which is on the way.
+1
+1 : it's quite bothering since arrays are pretty common in REST API...
+1
+1
Will be supported in 3.0.0 support, please see the feature/3.0.0-rc2 branch for details.
+1
When is the release due for this version?