diff --git a/libs/nest/swagger/src/lib/documentation.decorator.ts b/libs/nest/swagger/src/lib/documentation.decorator.ts index ad61294f117b..0bf491d76ad3 100644 --- a/libs/nest/swagger/src/lib/documentation.decorator.ts +++ b/libs/nest/swagger/src/lib/documentation.decorator.ts @@ -1,5 +1,6 @@ import { applyDecorators, HttpCode } from '@nestjs/common' import { + ApiAcceptedResponse, ApiBadRequestResponse, ApiConflictResponse, ApiCreatedResponse, @@ -58,6 +59,8 @@ const getResponseDecorators = ({ ApiCreatedResponse(response), ApiConflictResponse({ type: HttpProblemResponse }), ] + case 202: + return [ApiAcceptedResponse(response)] case 204: return [ApiNoContentResponse(response)] default: