From 1917a19aae07875713294bbac872bc36ff4bdbcc Mon Sep 17 00:00:00 2001 From: melonges Date: Mon, 27 Nov 2023 13:01:27 +0300 Subject: [PATCH] fix(openapi): passed `PaginatedDto` to `ApiExtraModels` in `ApiPaginatedResponse` decorator --- content/openapi/operations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/openapi/operations.md b/content/openapi/operations.md index 96d98a6811..c4edcbf301 100644 --- a/content/openapi/operations.md +++ b/content/openapi/operations.md @@ -258,7 +258,7 @@ export const ApiPaginatedResponse = >( model: TModel, ) => { return applyDecorators( - ApiExtraModels(model), + ApiExtraModels(PaginatedDto, model), ApiOkResponse({ schema: { allOf: [