src/albums/dto/create.dto.ts
Properties |
| name |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/albums/dto/create.dto.ts:11
|
| public |
Type : boolean
|
Decorators :
@IsBoolean()
|
|
Defined in src/albums/dto/create.dto.ts:6
|
import { IsBoolean, IsNotEmpty, IsString, MaxLength } from 'class-validator';
export class CreateDto {
@IsBoolean()
@IsNotEmpty()
public: boolean;
@IsString()
@IsNotEmpty()
@MaxLength(25)
name: string;
}