mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
uuid validation
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import { IsOptional, IsString } from 'class-validator';
|
import { IsOptional, IsUUID } from 'class-validator';
|
||||||
|
|
||||||
export class CreatedByUserDto {
|
export class CreatedByUserDto {
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsUUID()
|
||||||
userId?: string;
|
userId?: string;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsUUID()
|
||||||
spaceId?: string;
|
spaceId?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user