Skip to content

Commit 3e565ed

Browse files
Merge pull request #2909 from melonges/master
fix(openapi): passed `PaginatedDto` to `ApiExtraModels` in `ApiPaginatedResponse` decorator
2 parents a12e8aa + 1917a19 commit 3e565ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/openapi/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export const ApiPaginatedResponse = <TModel extends Type<any>>(
258258
model: TModel,
259259
) => {
260260
return applyDecorators(
261-
ApiExtraModels(model),
261+
ApiExtraModels(PaginatedDto, model),
262262
ApiOkResponse({
263263
schema: {
264264
allOf: [

0 commit comments

Comments
 (0)