Skip to content

Commit

Permalink
SPSH-1001: Fixed the missing property after merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
phaelcg committed Sep 9, 2024
1 parent 249548d commit a31b130
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsString, MinLength, ValidateNested } from 'class-validator';
import { IsDate, IsNotEmpty, IsOptional, IsString, MinLength, ValidateNested } from 'class-validator';
import { IsDIN91379A } from '../../../../shared/util/din-91379-validation.js';
import { DbiamCreatePersonenkontextBodyParams } from './dbiam-create-personenkontext.body.params.js';
import { Type } from 'class-transformer';
Expand All @@ -22,6 +22,11 @@ export class DbiamCreatePersonWithPersonenkontexteBodyParams {
@ApiProperty({ required: false })
public readonly personalnummer?: string;

@IsDate()
@IsOptional()
@ApiProperty({ required: false })
public readonly befristung?: Date;

@ApiProperty({ type: [DbiamCreatePersonenkontextBodyParams], required: true, nullable: false })
@Type(() => DbiamCreatePersonenkontextBodyParams)
@ValidateNested({ each: true })
Expand Down

0 comments on commit a31b130

Please sign in to comment.