Skip to content

Commit

Permalink
fix: change PropertyLifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Oct 15, 2024
1 parent 1c930e3 commit b9c5144
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions mobile/openapi/lib/api/search_api.dart

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

4 changes: 2 additions & 2 deletions open-api/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4541,7 +4541,7 @@
"name": "page",
"required": false,
"in": "query",
"description": "This property was added in v118.0.0",
"description": "This property was added in v119.0.0",
"schema": {
"minimum": 1,
"default": 1,
Expand All @@ -4552,7 +4552,7 @@
"name": "size",
"required": false,
"in": "query",
"description": "This property was added in v118.0.0",
"description": "This property was added in v119.0.0",
"schema": {
"minimum": 1,
"maximum": 1000,
Expand Down
4 changes: 2 additions & 2 deletions server/src/dtos/search.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ export class SearchPeopleDto {

/** Page number for pagination */
@ApiPropertyOptional()
@PropertyLifecycle({ addedAt: 'v118.0.0' })
@PropertyLifecycle({ addedAt: 'v119.0.0' })
@IsInt()
@Min(1)
@Type(() => Number)
page: number = 1;

/** Number of items per page */
@ApiPropertyOptional()
@PropertyLifecycle({ addedAt: 'v118.0.0' })
@PropertyLifecycle({ addedAt: 'v119.0.0' })
@IsInt()
@Min(1)
@Max(1000)
Expand Down

0 comments on commit b9c5144

Please sign in to comment.