@ApiOperation( value="xxx" notes="yyy" responseClass="com.bar.Foo", multiValueResponse=true)
Internally the representation will be wrapped as List[Foo] after the fact but based on my reading you cannot declare it as such.
Writing the code to allow for responseClass="List[com.bar.Foo]" isn't super complex, two methods as per this pastebin would do it:
I'm not sure of the best way to write unit tests for swagger though, if there's interest in having this in the main version then happy to write same if some guidance can be given. Seems as if the only code that tests this is in the swagger-jaxrs module, though perhaps some should be in swagger-core given that that's where the trait resides?
Cheers
-Mike
get("/:petId", operation(apiOperation[Pet]("getPetById").summary("Find pet by ID").notes("Returns a pet based on ID")