Hi,
how can I set responseType attribute of @ApiOperation annotation as List of objects?
In swagger-core 1.2.x:
responseClass = "com.yourpackage.YourModel", multiValuedResponse=true
In swagger-core 1.3-x:
response = YourModel.class, responseContainer="List"
The advantage of the latter is that it's typesafe.
Hi, I'm using responseContainer = "List", but on swagger UI is showing List[$ObjectDesc]. any suggestion? the same case when I tried to use responseContainer="Array"
@vvicario - please open a separate issue if you have a problem.
Most helpful comment
In swagger-core 1.2.x:
In swagger-core 1.3-x:
The advantage of the latter is that it's typesafe.