From ff716ab47b06013a184d736d28b17d7be9ad9570 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 26 May 2025 08:26:27 +0100 Subject: [PATCH] fix(api): add missing field to NlpEntityUpdateDto --- api/src/nlp/dto/nlp-entity.dto.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/src/nlp/dto/nlp-entity.dto.ts b/api/src/nlp/dto/nlp-entity.dto.ts index c986a707..c49e1fc3 100644 --- a/api/src/nlp/dto/nlp-entity.dto.ts +++ b/api/src/nlp/dto/nlp-entity.dto.ts @@ -63,6 +63,14 @@ export class NlpEntityCreateDto { } export class NlpEntityUpdateDto { + @ApiPropertyOptional({ description: 'Name of the nlp entity', type: String }) + @Matches(/^[a-zA-Z0-9_]+$/, { + message: 'Only alphanumeric characters and underscores are allowed.', + }) + @IsString() + @IsOptional() + name?: string; + @ApiPropertyOptional({ type: String }) @IsString() @IsOptional()