Skip to content

Commit

Permalink
Merge pull request nestjs#2909 from melonges/master
Browse files Browse the repository at this point in the history
fix(openapi): passed `PaginatedDto` to `ApiExtraModels` in `ApiPaginatedResponse` decorator
  • Loading branch information
kamilmysliwiec authored Nov 29, 2023
2 parents a12e8aa + 1917a19 commit 3e565ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/openapi/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const ApiPaginatedResponse = <TModel extends Type<any>>(
model: TModel,
) => {
return applyDecorators(
ApiExtraModels(model),
ApiExtraModels(PaginatedDto, model),
ApiOkResponse({
schema: {
allOf: [
Expand Down

0 comments on commit 3e565ed

Please sign in to comment.