1 year ago

#345619

test-img

MML1357

Nestjs/swagger: Avoid some Dtos to be shown on list schemas

I'm using some auxiliary Dtos on my rest API, mainly when occurs some error and I use an @ApiResponse, but I don't want to show them as available schemas on the list at the end of the doc. I have for example:

@ApiConflictResponse({ 
  type: ResponsesDto
})

However, I would like to display on the schemas just those Dtos corresponding to Create or Update.

swagger

nestjs

nestjs-swagger

0 Answers

Your Answer

Accepted video resources