Merge pull request #1041 from Hexastack/1017-bug---nlp-entity-edit-dto-issue

fix(api): add missing field to NlpEntityUpdateDto
This commit is contained in:
Med Marrouchi 2025-05-26 18:01:02 +01:00 committed by GitHub
commit 3d6518307b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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