mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): add missing field to NlpEntityUpdateDto
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user