"Array of" as endpoint response
WeekendMan opened this issue · 0 comments
WeekendMan commented
"itemType" has to be added to response description too. For now it's impossible (or I can't find how to) set, for example, something like this:
@ApiOperationGet({
description: 'Blahblahblah',
path: '/some-path',
responses: {
200: {
description: 'Successful request',
type: SwaggerDefinitionConstant.Response.Type.ARRAY,
itemType: SwaggerDefinitionConstant.STRING
}
}
Response example:
[ 'a', 'b', 'c' ]