File

src/wallet/dto/create-wallet.dto.ts

Index

Properties

Properties

walletLabel
Type : string
Decorators :
@ApiProperty({type: 'string', required: false})
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
@IsOptional()
import { ApiProperty } from "@nestjs/swagger";
import {
  IsNotEmpty,
  IsString,
  MaxLength,
  MinLength,
  IsOptional,
} from "class-validator";

export class CreateWalletDto {
  @ApiProperty({
    type: "string",
    required: false,
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  @IsOptional()
  walletLabel: string;
}

results matching ""

    No results matching ""