diff --git a/server/apps/immich/src/api-v1/asset/dto/get-asset-thumbnail.dto.ts b/server/apps/immich/src/api-v1/asset/dto/get-asset-thumbnail.dto.ts index a0df22d238..547281b221 100644 --- a/server/apps/immich/src/api-v1/asset/dto/get-asset-thumbnail.dto.ts +++ b/server/apps/immich/src/api-v1/asset/dto/get-asset-thumbnail.dto.ts @@ -9,6 +9,7 @@ export enum GetAssetThumbnailFormatEnum { export class GetAssetThumbnailDto { @IsOptional() @ApiProperty({ + type: String, enum: GetAssetThumbnailFormatEnum, default: GetAssetThumbnailFormatEnum.WEBP, required: false, diff --git a/server/apps/immich/src/api-v1/job/dto/get-job.dto.ts b/server/apps/immich/src/api-v1/job/dto/get-job.dto.ts index 38289ed134..95d037e670 100644 --- a/server/apps/immich/src/api-v1/job/dto/get-job.dto.ts +++ b/server/apps/immich/src/api-v1/job/dto/get-job.dto.ts @@ -14,6 +14,7 @@ export class GetJobDto { message: `params must be one of ${Object.values(JobId).join()}`, }) @ApiProperty({ + type: String, enum: JobId, enumName: 'JobId', })