Skip to content

Commit

Permalink
Updated @nestjs/swagger to v8 (#1030)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: updated @nestjs/swagger to v8
  • Loading branch information
Alsdrouf authored Nov 22, 2024
1 parent db51a6a commit 981d98b
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 44 deletions.
107 changes: 66 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"peerDependencies": {
"@nestjs/common": "^10.0.0",
"@nestjs/swagger": "^7.0.0",
"@nestjs/swagger": "^8.0.7",
"express": "^4.0.0",
"fastify": "^4.0.0",
"typeorm": "^0.3.17"
Expand Down
6 changes: 4 additions & 2 deletions src/swagger/paginated-swagger.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ export class PaginatedMetaDocumented<T> {

@ApiProperty({
title: 'Filters that applied to the query',
required: false,
selfRequired: true,
isArray: false,
type: 'object',
additionalProperties: false,
})
filter?: {
[p: string]: string | string[]
Expand All @@ -126,9 +127,10 @@ export class PaginatedMetaDocumented<T> {
export class PaginatedDocumented<T> extends Paginated<T> {
@ApiProperty({
isArray: true,
required: true,
selfRequired: true,
title: 'Array of entities',
type: 'object',
additionalProperties: false,
})
override data!: T[]

Expand Down

0 comments on commit 981d98b

Please sign in to comment.