mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 08:11:10 +10:00
use uuid7
This commit is contained in:
@ -14,13 +14,13 @@ export class AddSpaceMembersDto extends SpaceIdDto {
|
||||
@ArrayMaxSize(25, {
|
||||
message: 'userIds must an array with no more than 25 elements',
|
||||
})
|
||||
@IsUUID(4, { each: true })
|
||||
@IsUUID('all', { each: true })
|
||||
userIds: string[];
|
||||
|
||||
@IsArray()
|
||||
@ArrayMaxSize(25, {
|
||||
message: 'userIds must an array with no more than 25 elements',
|
||||
})
|
||||
@IsUUID(4, { each: true })
|
||||
@IsUUID('all', { each: true })
|
||||
groupIds: string[];
|
||||
}
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
import { IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
|
||||
import {
|
||||
IsAlphanumeric,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MaxLength,
|
||||
MinLength,
|
||||
} from 'class-validator';
|
||||
|
||||
export class CreateSpaceDto {
|
||||
@MinLength(2)
|
||||
@ -12,6 +18,6 @@ export class CreateSpaceDto {
|
||||
|
||||
@MinLength(2)
|
||||
@MaxLength(50)
|
||||
@IsString()
|
||||
@IsAlphanumeric()
|
||||
slug: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user