File

src/shared/dto/cmsField.dto.ts

Index

Properties

Properties

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

export class CmsFieldDTO {
  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  @MaxLength(300)
  name: string;

  @IsOptional()
  value: unknown;
}

results matching ""

    No results matching ""