authentication authorization
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsNotEmpty } from 'class-validator';
|
||||
import { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsNotEmpty, IsOptional } from 'class-validator';
|
||||
|
||||
export class GetRaceDetailParamsDTO {
|
||||
@ApiProperty()
|
||||
@@ -7,8 +7,8 @@ export class GetRaceDetailParamsDTO {
|
||||
@IsNotEmpty()
|
||||
raceId!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiPropertyOptional()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
driverId!: string;
|
||||
@IsOptional()
|
||||
driverId?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user