You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using typestack with routing controller and class-validator and so on...
And my models are mostly arrays.
e.g. @Body({ type: User }) users: User[],
And in my generated documentation, I get as type of body an "Array".
I tried to add @openapi decorator with:
$ref: '#/components/schemas/User'
But then I get a blank body type.
How can I make the Array to appear in the docs as an array of users ?
The text was updated successfully, but these errors were encountered:
Hi,
I'm using typestack with routing controller and class-validator and so on...
And my models are mostly arrays.
e.g. @Body({ type: User }) users: User[],
And in my generated documentation, I get as type of body an "Array".
I tried to add @openapi decorator with:
$ref: '#/components/schemas/User'
But then I get a blank body type.
How can I make the Array to appear in the docs as an array of users ?
The text was updated successfully, but these errors were encountered: