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()