src/albums/dto/update.dto.ts
Properties |
| album |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/albums/dto/update.dto.ts:18
|
| name |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/albums/dto/update.dto.ts:23
|
| public |
Type : boolean
|
Decorators :
@IsOptional()
|
|
Defined in src/albums/dto/update.dto.ts:13
|
import {
IsBoolean,
IsNotEmpty,
IsOptional,
IsString,
MaxLength,
} from 'class-validator';
import { IsAlbumValid } from '../../common/decorators/albumvalid.decorator';
export class UpdateDto {
@IsOptional()
@IsBoolean()
public: boolean;
@IsString()
@IsNotEmpty()
@IsAlbumValid()
album: string;
@IsString()
@IsOptional()
@MaxLength(25)
name: string;
}