revert CreateAssetDto assetType enum

This commit is contained in:
Michel Heusschen
2023-02-10 18:54:51 +01:00
parent 853f23be19
commit 0a58280f3d
6 changed files with 20 additions and 24 deletions
@@ -12,7 +12,7 @@ export class CreateAssetDto {
@IsNotEmpty()
@IsEnum(AssetType)
@ApiProperty({ enum: Object.values(AssetType) })
@ApiProperty({ enumName: 'AssetTypeEnum', enum: AssetType })
assetType!: AssetType;
@IsNotEmpty()
@@ -34,6 +34,8 @@ export class CreateAssetDto {
@IsOptional()
duration?: string;
// The properties below are added to correctly generate the API docs
// and client SDKs. Validation should be handled in the controller.
@ApiProperty({ type: 'string', format: 'binary' })
assetData!: any;