routing-controllers-openapi
routing-controllers-openapi copied to clipboard
How to describe a response with array of strings?
I need to return an array of strings. Is there something similar to @ResponseSchema that accepts basic types? I'm looking for this type of output:
@OpenAPI({
summary: 'Returns a list of countries',
responses: {
'200': {
content: {
'application/json': {
'schema': {
'type': 'array',
'items': {
'type': 'string'
}
}
}
}
}
}
})