2f26a7edae
* feat(server): add album description * chore: open api * fix: tests * show and edit description on the web * fix test * remove unused code * type event * format fix --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
21 lines
475 B
TypeScript
21 lines
475 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
import { ValidateUUID } from '../../domain.util';
|
|
|
|
export class CreateAlbumDto {
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
@ApiProperty()
|
|
albumName!: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
description?: string;
|
|
|
|
@ValidateUUID({ optional: true, each: true })
|
|
sharedWithUserIds?: string[];
|
|
|
|
@ValidateUUID({ optional: true, each: true })
|
|
assetIds?: string[];
|
|
}
|