10 lines
257 B
TypeScript
10 lines
257 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { IsNotEmpty, IsString } from "class-validator";
|
|
|
|
export class CreateGroupDto {
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
@ApiProperty({ description: "Group name", example: "Navigation Icons" })
|
|
name: string;
|
|
}
|