[Backend] API Inscription Parent - REFONTE Workflow 6 etapes (#72)

Co-authored-by: Julien Martin <julien.martin@ptits-pas.fr>
Co-committed-by: Julien Martin <julien.martin@ptits-pas.fr>
This commit was merged in pull request #72.
This commit is contained in:
2025-12-01 21:43:36 +00:00
committed by jmartin
parent 9aea26805d
commit 579b6cae90
10 changed files with 861 additions and 14 deletions
@@ -29,10 +29,10 @@ export class CreateEnfantsDto {
@MaxLength(100)
last_name?: string;
@ApiProperty({ enum: GenreType, required: false })
@IsOptional()
@ApiProperty({ enum: GenreType })
@IsEnum(GenreType)
gender?: GenreType;
@IsNotEmpty()
gender: GenreType;
@ApiProperty({ example: '2018-06-24', required: false })
@ValidateIf(o => o.status !== StatutEnfantType.A_NAITRE)