src/shared/dto/cmsField.dto.ts
Properties |
| name |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/shared/dto/cmsField.dto.ts:16
|
| value |
Decorators :
@IsOptional()
|
|
Defined in src/shared/dto/cmsField.dto.ts:19
|
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;
}