Added additional type to enum of openapi

This commit is contained in:
Alex Tran 2022-10-07 14:26:16 -05:00
parent 1adc64a352
commit a2882a4908
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ export enum GetAssetThumbnailFormatEnum {
export class GetAssetThumbnailDto {
@IsOptional()
@ApiProperty({
type: String,
enum: GetAssetThumbnailFormatEnum,
default: GetAssetThumbnailFormatEnum.WEBP,
required: false,

View File

@ -14,6 +14,7 @@ export class GetJobDto {
message: `params must be one of ${Object.values(JobId).join()}`,
})
@ApiProperty({
type: String,
enum: JobId,
enumName: 'JobId',
})