import { Expose } from 'class-transformer';
import { IsOptional, IsString, MinLength } from 'class-validator';
import { MandatoryComposedCursorPaginableVC } from './mandatoryCursorPagination';

export class FilterableMandatoryCursorPaginableVC extends MandatoryComposedCursorPaginableVC {
    @IsOptional()
    @Expose()
    @IsString()
    @MinLength(1)
    q?: string;
}
