forked from Shared/esg
database migrated to POSTGRESQL
This commit is contained in:
@@ -9,8 +9,13 @@ export class PersonInquiryRequestDto {
|
||||
@Matches(/^\d{10}$/, { message: 'nationalCode must be exactly 10 digits' })
|
||||
nationalCode!: string;
|
||||
|
||||
@ApiProperty({ example: '1378-11-24', description: 'Jalali birth date (YYYY-MM-DD)' })
|
||||
@Matches(/^\d{4}-\d{2}-\d{2}$/, { message: 'birthDate must be in YYYY-MM-DD format' })
|
||||
@ApiProperty({
|
||||
example: '1378-11-24',
|
||||
description: 'Jalali birth date (YYYY-MM-DD) or Jalali birth year (YYYY)',
|
||||
})
|
||||
@Matches(/^\d{4}(-\d{2}-\d{2})?$/, {
|
||||
message: 'birthDate must be in YYYY or YYYY-MM-DD format',
|
||||
})
|
||||
@IsNotEmpty()
|
||||
birthDate!: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user