Files
cloud-v3/src/current/dto/get-current.dto.ts
Первов Артем 05a9e0e535 first commit
2026-06-19 08:18:52 +03:00

16 lines
407 B
TypeScript

import { Transform } from 'class-transformer';
import { IsArray, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { parseCommaSeparatedList } from '../../common/query-list';
export class GetCurrentDto {
@IsNotEmpty()
@IsString()
edge!: string;
@IsOptional()
@Transform(({ value }) => parseCommaSeparatedList(value))
@IsArray()
@IsString({ each: true })
tags?: string[];
}