Skip to content

Commit

Permalink
fix(openapi): passed PaginatedDto to ApiExtraModels in `ApiPagina…
Browse files Browse the repository at this point in the history
…tedResponse` decorator
  • Loading branch information
melonges authored Nov 27, 2023
1 parent 6a373ad commit 1917a19
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 1917a19

Please sign in to comment.