mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-01-30 02:49:05 +01:00
clean up validation, still not happy
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import {
|
||||
IsArray,
|
||||
IsNotEmpty,
|
||||
IsString
|
||||
IsArray, IsString
|
||||
} from 'class-validator';
|
||||
import { CombinePDecorators } from '../util/decorator';
|
||||
|
||||
export const IsStringList = CombinePDecorators(
|
||||
IsArray(),
|
||||
IsString({ each: true }),
|
||||
IsNotEmpty({ each: true }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user