refactor(server): more consistent param validation (#2166)

This commit is contained in:
Michel Heusschen
2023-04-05 00:24:08 +02:00
committed by GitHub
parent ad680b6a35
commit d5f2e3e45c
18 changed files with 136 additions and 63 deletions

View File

@@ -0,0 +1,9 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsUUID } from 'class-validator';
export class UserIdDto {
@IsNotEmpty()
@IsUUID('4')
@ApiProperty({ format: 'uuid' })
userId!: string;
}