forked from Shared/esg
update the esg
This commit is contained in:
@@ -2,6 +2,11 @@ import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString, Matches } from 'class-validator';
|
||||
|
||||
export class PolicyByPlateRequestDto {
|
||||
@ApiProperty({ example: '4311402422', description: 'Owner national code (10 digits)' })
|
||||
@IsString()
|
||||
@Matches(/^\d{10}$/, { message: 'nationalCode must be exactly 10 digits' })
|
||||
nationalCode!: string;
|
||||
|
||||
@ApiProperty({ example: '12', description: 'Two digits on the left side of the plate' })
|
||||
@IsString()
|
||||
@Matches(/^\d{2}$/, { message: 'plk1 must be exactly 2 digits' })
|
||||
|
||||
Reference in New Issue
Block a user