File

src/albums/dto/update.dto.ts

Index

Properties

Properties

album
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@IsAlbumValid()
name
Type : string
Decorators :
@IsString()
@IsOptional()
@MaxLength(25)
public
Type : boolean
Decorators :
@IsOptional()
@IsBoolean()
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;
}

results matching ""

    No results matching ""